Re: [xsl] [XSLT, Version 1] Stylesheet to embed a chunk of XML into HTML?

Subject: Re: [xsl] [XSLT, Version 1] Stylesheet to embed a chunk of XML into HTML?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 24 Aug 2006 12:22:53 -0400
Just the other day I pointed to Evan Lenz's module at

http://xmlportfolio.com/xml-to-string/

where he shares his (complete) solution to this problem.

Cheers,
Wendell

At 08:16 AM 8/24/2006, was written:
for example:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                    version="1.0">

<xsl:output method="html"/>

  <xsl:template match="/">
    <html>
      <body>
         <xsl:apply-templates select="//Member[1]" mode="code"/>

                </body>
    </html>
  </xsl:template>

<xsl:template match="*" mode="code">
&lt;<xsl:value-of select="name()"/>  <xsl:for-each
select="@*"><xsl:text> </xsl:text><xsl:value-of
select="name()"/>="<xsl:value-of select="."/>"</xsl:for-each>&gt;
<xsl:apply-templates mode="code"/> &lt;/<xsl:value-of
select="name()"/>&gt;
</xsl:template>

something like that above. could be improved a bit.

Current Thread