|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Comparing with a variable position
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template><xsl:template match="container/text()">
<sub-container>
<xsl:value-of select="."/>
</sub-container>
</xsl:template><xsl:template match="separator"/> If "thus several node are possible" instead of text "mixed content" means that there can be written any element or nodes in general, you have to use a grouping method, which groups the nodes in <container/> by their preceding or following sibling separator. There are a few examples in the archives, I would search for "adding hierarchy" or "structure". Regards, Joerg Louis Meigret wrote: I would like to convert some legacy data of this format : XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








