|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: exsl:document help
Hi Greg,
is seems like you generate the the document "a2" twice. The second time you generate it you overwrite the contents of the first run. <xsl:template match="CCC">
<exsl:document href="{../../@id}" method="text">
<xsl:for-each select='../..//CCC'>
<xsl:value-of select="."/>
</xsl:for-each>
</exsl:document>
</xsl:template>That should do the job. I'd rewrite the templates so you don't have to step up two levels each time: <xsl:template match="/">
<xsl:apply-templates select="AAA"/>
</xsl:template> <xsl:template match="AAA">
<exsl:document href="{@id}" method="text">
<xsl:for-each select='descendant::CCC'>
<xsl:value-of select="."/>
</xsl:for-each>
</exsl:document>
</xsl:template>Regards, Wolfgang
|
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








