S
shailesh_gaikar
All,
Please help in the following.
I am new to XML and XSL.
I have written one XSL as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:USOURCE="USOURCE.DICT">
<xsl:template match="UNIFACE/TABLE/OCC[USOURCE:UTEXT]">
<html>
<h2>Y_WRITE</h2>
<xsl:value-of select="USOURCE:UTEXT" />
</html>
</xsl:template></xsl:stylesheet>
This is to extract UTEXT element contents from one xml file. But these
contents consist of multiple lines. When I run the xml using the above
XSL, multiple lines on in USOURCE:UTEXT get printed on single line.
That is, all the newlines get removed.
Is there any way in which I can preserve the newlines in the text of
XML element and give the same output?
Please help in the following.
I am new to XML and XSL.
I have written one XSL as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:USOURCE="USOURCE.DICT">
<xsl:template match="UNIFACE/TABLE/OCC[USOURCE:UTEXT]">
<html>
<h2>Y_WRITE</h2>
<xsl:value-of select="USOURCE:UTEXT" />
</html>
</xsl:template></xsl:stylesheet>
This is to extract UTEXT element contents from one xml file. But these
contents consist of multiple lines. When I run the xml using the above
XSL, multiple lines on in USOURCE:UTEXT get printed on single line.
That is, all the newlines get removed.
Is there any way in which I can preserve the newlines in the text of
XML element and give the same output?