xml to html using xsl: How to preserve xml encoding ?

xml to html using xsl: How to preserve xml encoding ?

Post by Andrzej Fili » Sun, 19 May 2002 04:24:00

How to make xsl stylesheet preserve encoding of source xml
document in generated html document ?

<xsl:output method="html" encoding="..."/>

I would like to use us-asci as default encoding but
some pages require iso-8859-1 or iso-8859-2.


366A 5DD7 7707 379C 9251  32AE C948 0BD2 7D99 688A  expires: 2003-01-25
I may disagree with the following *random epigram* :
The road to hell is paved with NAND gates.
                -- J. Gooding


1. How can I preserve HTML using XSL?


I'm having the following problem:

I'm using XSL to transform XML into HTML.
One of the XML fields I use contains (well-formed) HTML.

The XML is as follows:

- <ID>1</ID>
- <TITLE>Some Title</TITLE>
- <BODY>
<p>This contains HTML</p>
<p><a href="somelink.asp">More.</a></p>

When using the following XSL,

<xsl:value-of select="BODY"/>

I get the following output

&lt;p&gt;This contains...

How can I avoid this?
I've already tried to use the attribute disable-output-escaping, but it makes no difference...

Can anyone help me out on this?


2. Intrusion Detection in Cluster Networks

3. transforming XML to HTML using ISO-8859-1 encoding

4. Adding a second SCSI disk

5. XSL problem: preserve HTML tags?

6. extraxting

7. preserve entities (after XSL->HTML transformation)

8. penftpd *DOES NOT* work with VMS Multinet 3.0

9. XML -"Switch from current encoding to specified encoding not supported."...????using hebrew

10. Keyword xsl:preserve-space may not be used here.

11. Preserving literal hex encoding of enties for diacretic symbols

12. HTML Encoding using SQLProcessor (Cocoon)

13. Probs with automatic HTML encoding using Text property of node