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">
<<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>>
<xsl:apply-templates mode="code"/> </<xsl:value-of
select="name()"/>>
</xsl:template>
something like that above. could be improved a bit.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--