RE: [xsl] Output source XML structure as escaped HTML

Subject: RE: [xsl] Output source XML structure as escaped HTML
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 23 Jan 2002 09:45:18 +0200
Hi,

> Is there an easy way to do this in XSL, or do I have to 
> monkey around with reading values from every 
> element/attribute and manually parse and position them all somehow?

Use an XML serializer implemented in XSLT, e.g.

<xsl:import href="http://xmlportfolio.com/xml-to-string/xml-to-string.xsl"; />

<xsl:template match="/">
  <xsl:call-template name="xml-to-string">
    <xsl:with-param name="node-set" select="." />
  </xsl:call-template>  
</xsl:template>

Santtu

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread