[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xml to html paragraphing
David, > I resolved the problem by writing a small, >client-side JavaScript function that takes the "escaped" HTML and converted >it to valid HTML using the client-side DHTML DOM. You shouldn't need to do that. <?xml version="1.0" encoding="UTF-8"?> <doc> <text> <![CDATA[ <p> para 1 </p> <p> para 2 </p> ]]> </text> </doc> <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="doc"> <doc> <xsl:apply-templates /> </doc> </xsl:template> <xsl:template match="text"> <xsl:value-of disable-output-escaping="yes" select="." /> </xsl:template> </xsl:stylesheet> Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|