This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Output source XML structure as escaped HTML


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]