Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to preserve whitespace from source document in output html ?

From: "Erming Pei" <erming.pei@----.-->
To: NULL
Date: 7/5/2004 8:49:00 AM
I'd like to output the following line from XML document to HTML:

<detail_data>Missing DNs:
==============================================
&quot;dn: GlueCEUniqueID=&quot;
&quot;dn: GlueSEUniqueID=&quot;
&quot;dn: GlueCESEBindSEUniqueID=&quot;
&quot;dn: GlueSARoot=&quot;</detail_data>

But it turn out to be this:
Missing DNs: ============================================== "dn:
GlueCEUniqueID=" "dn: GlueSEUniqueID=" "dn: GlueCESEBindSEUniqueID=" "dn:
GlueSARoot="

the white spaces are all getting away!


I have tried the tags such as <xsl:apply-templates/>, <xsl:preserve
element="*"/>, <xsl:value-of disable-output-escaping="no"
select="detail_data"/>,
but none of these worked!

I'm using XML-SPY. but in MS-IEXPLORER6,which contains the MSXML, the output
still have no whitespace remains.

Could anyone tell me what should I do?
Thanks!

Pei.




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent