Subject: RE: [xsl] Jeni reminds me..... From: "McKeever, Marty" <marty.mckeever@xxxxxxxxxxxxxxxxx> Date: Mon, 19 Nov 2001 09:21:35 -0500 |
> It seems you want to launch an obfuscated XSLT contest... ;-) > > http://www.dpawson.co.uk/xsl/sect2/N3773.html > > Any more ;-) > I can't remember where i found this one, but it's kinda fun: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:variable name="abc">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</xsl:variabl e> <xsl:variable name="rot13">NOPQRSTUVWXYZABCDEFGHIJKLMnopqrstuvwxyzabcdefghijklm</xsl:varia ble> <xsl:template match="*"> <xsl:element name="{translate(name(),$abc,$rot13)}"> <xsl:for-each select="@*"> <xsl:attribute name="{translate(name(),$abc,$rot13)}"> <xsl:value-of select="translate(.,$abc,$rot13)"/> </xsl:attribute> </xsl:for-each> <xsl:for-each select="text()"> <xsl:value-of select="translate(.,$abc,$rot13)"/> </xsl:for-each> <xsl:apply-templates select="*"/> </xsl:element> </xsl:template> </xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Jeni reminds me....., DPawson | Thread | RE: [xsl] Jeni reminds me....., Chris Bayes |
RE: [xsl] xslt on server-side vs. c, Hunsberger, Peter | Date | Re: [xsl] xslt on server-side vs. c, cutlass |
Month |