Subject: [xsl] NEW !!!showing HTML data in XML files using XSL!!! From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx> Date: Fri, 30 Mar 2001 17:26:10 +1000 |
sorry I forgot to mention before that the XML should be like this <root> <text value="<I><B>here is some info</B></I>"/> </root> how can I get the HTML format to work in this one? -----Original Message----- From: Rosa I-Ting Cheng Sent: Friday, 30 March 2001 5:06 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: [xsl] !!!showing HTML data in XML files using XSL!!! I did the XSL at the end, but what I'd get back if the xml is like this: <root> <text><I><B>here is some info</B></I></text> </root> is this <I><B>here is some info</B></I> instead of having the text italiced or bolded... XSL: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="@*"> <xsl:copy> <xsl:apply-templates select="@*"/> </xsl:copy> </xsl:template> <xsl:template match="root"> <html> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match="text"> <xsl:apply-templates /> </xsl:template> </xsl:stylesheet> How can I fix that? Thanks in advance! Rosa XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
AW: [xsl] !!!showing HTML data in X, Marcus Klinge | Thread | Re: [xsl] NEW !!!showing HTML data , David Carlisle |
[xsl] !!!showing HTML data in XML f, Rosa I-Ting Cheng | Date | RE: [xsl] !!!showing HTML data in X, Chris Bayes |
Month |