Click to See Complete Forum and Search --> : html code


amel
09-03-2003, 12:54 PM
hello; I have a problem which relates to code HTML in a document XML; to have the outline of code HTML I use a style sheet xsl but that succeeded not: for example when I have the data:
<data> <p>hello</p><strong> world </strong> <br/> </data>
with the sheet xsl, the apperçu will be:
<p>hello</p><strong> world </strong> <br/>
but it is not the code which I want me! if you have an idea, thank you.

Khalid Ali
09-03-2003, 01:49 PM
I am sorry,but I am not able to make much sense out of your question can you please elaborate?

lillu
09-08-2003, 06:32 AM
Hi Amel,

As I said earlier, if you're working with special characters which xml would parse, you can use CDATA sections or do this:

<xsl:value-of select="." disable-output-escaping="yes"/>

This will preserve any HTML tags you have in your node. Please note though that this will not produce well-formed xml (or in this case xhtml).

If this is what you're looking for, I can send you a simple but complete example on this.

You might as well just check out some French site on xml.
Or you can email me in French about your xml questions, I can deal with it.

:cool:

Lillu