L Duperval schrieb am 19.03.2010 um 20:01:55 (+0000):
> <xsl:template match="DATAFILE">
> <DATAFILE LANG="en">
> <xsl:for-each select="SITE">
> <xsl:variable name="filename"
> select="concat('output/',@LOCATIONID,'.xml')" />
> <redirect:write select="$filename" indent="yes">
> <xsl:copy>
> <xsl:value-of select="*" />
The above line looks odd. I think you don't want or need that.
> <xsl:apply-templates select="@*|node()" />
> </xsl:copy>
If you want to copy <SITE> with everything it contains and without
changes, you could just say:
<xsl:copy-of select="."/>
> </redirect:write>
> </xsl:for-each>
> </DATAFILE>
> </xsl:template>
> Thanks for your comments and if there are obvious improvements I could
> make, I'm all ears... errr... eyes. :)
Well, I didn't get what you really want to do but maybe my comments are
helpful nonetheless :-)
--
Michael Ludwig