Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!-- root -->
- <xsl:template match="/">
- <artistes>
- <xsl:apply-templates select="/ART/ARTISTS/artist"/>
- </artistes>
- </xsl:template>
- <!-- artist -->
- <xsl:template match="artist">
- <artiste>
- <nom>
- <xsl:value-of select="text()"/>
- </nom>
- <xsl:apply-templates select="@id"/>
- </artiste>
- </xsl:template>
- <!-- @id -->
- <xsl:template match="@id">
- <peintures>
- <xsl:apply-templates select="/ART/PAINTINGS/painting[artist/@id = current()]/title"/>
- </peintures>
- <fresques>
- <xsl:apply-templates select="/ART/FRESCOS/fresco[artist/@id = current()]/title"/>
- </fresques>
- </xsl:template>
- <!-- titre -->
- <xsl:template match="title">
- <titre>
- <xsl:value-of select="text()"/>
- </titre>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement