Hi
I have the following XML File
<root>
<TAG>some value</TAG>
<TAG>another value</TAG>
</root>
the i wrote a XSLT Script
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="/root">
<NEWTAG><xsl:value-of select="TAG"</NEWTAG>
<xsl:foreach/>
</xsl:template >
</xsl:stylesheet>
The ouput is
<NEWTAG>some value</NEWTAG><NEWTAG>another value</NEWTAG>
The formation get lost.
this is for the XML Parser ok - but for Humand its really hard to read when ther are more TAGS - the will be written all in one line
but i want the output to be
<NEWTAG>some value</NEWTAG>
<NEWTAG>another value</NEWTAG>/pre>
how ca i do that ?
by the way , if i use DOM and
Java to create new elements the ouput is allright -but this has nothing to do with my question i think
Bye,
Holger
[This message has been edited by Holger Prause (edited January 18, 2001).]
[This message has been edited by Holger Prause (edited January 18, 2001).]