Hello,
I'm using XSLT to manipulate the data inside of an XML file (I'm taking the guts of one XML file and putting them into a new shell in another XML file). I'm only using some of the data in the first file, and the data from the parts that I don't use is being concatenated to the end of the new file. How do I keep XSLT from doing this?
Thanks!
EDIT: Here's some pseudocode, I can't post the actual code:
<xsl:output method="xml"/>
<xsl:template match="foo">
<xsl:element name="bar">
<!--... makes elements and traverses some of the other file ...-->
</xsl:element>
</xsl:template>
And the output:
<foo>
<bar>
<!-- ... -->
</bar>
</foo>
<!-- junk at the end of the file that matches up with the content of the unused data tags -->
0
N
N
Y
00000148
ASDF