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 |
Cheers, Wendell
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XSLT, Version 1] Stylesh, bryan rasmussen | Thread | Re: [xsl] [XSLT, Version 1] Stylesh, Florent Georges |
RE: [xsl] Using attributes with XPa, Wendell Piez | Date | RE: [xsl] Using attributes with XPa, Michael Kay |
Month |