Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - RE: Crazy idea: loopback namespace
>Thread Next - Re: Crazy idea: loopback namespace
RE: Crazy idea: loopback namespace
To:
Date: 2/28/2000 4:24:00 PM
Actually, it seems it would be an interesting test to write an XSLT stylesheet that translates XSLT to TLSX. Might be useful for documenting existing XSLTs... -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Kay Michael Sent: Friday, February 25, 2000 12:38 PM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: RE: Crazy idea: loopback namespace > I am finding the param/call-template syntax of XSL to be > quite clumsy. It does work, it is just very verbose. I toyed around recently with devising an abbreviated syntax for XSLT - I thought of calling it The Lazy Syntax for XSLT, or TLSX. It would not be an XML syntax, but would be trivially transformable into the current syntax. Examples: (1) <xsl:variable name="x" select="$y * 2"/> becomes var x = $y * 2; (2) <xsl:variable name="x"><xsl:text>Z</xsl:text></xsl:variable> becomes var x = {text {Z}} (3) <xsl:variable name="y"> <xsl:call-template name="f"> <xsl:with-param name="x" select="3"/> </xsl:call-template> </xsl:variable> becomes var y = {call f {with x=3;}} (4) <xsl:template name="fred"> This is Fred <tr> <xsl:for-each select="joe"> <td valign="top"><xsl:value-of select="jane"/></td> </xsl:for-each> </tr> </xsl:template> becomes template name=fred { put "This is Fred"; put tr att="1" { for-each joe { put td valign=top {get jane} } } } Any takers? Any students wanting an interesting project? (Don't ask for the full spec - it doesn't exist!) Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

