Hi,
Am converting HTML to XML using java, XSLT. The HTML contains element having attribute value with white spaces, for example
<span name="There is double space here">some text</span>
The name value contains two white spaces. When I convert this to XSLT, the extra white space is stripped. I tried to use the
Code:
<xsl:preserve-space elements="*"/>
but this is not working.
Actually I want to preserve whitespace only for attribute values. How can I preserve extra whitespaces for attribute value for all elements.
Thanks,
Kapil