RE: [xsl] Abbreviated form of XSLT?

Subject: RE: [xsl] Abbreviated form of XSLT?
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: 09 Oct 2002 22:25:36 +0200
On Wed, 2002-10-09 at 21:39, McNally, David wrote:
> I quite like the idea of an abbreviated syntax if it is easy to use.
> Ideally I'd like 
> 
> 	<xsl:template match="p">
> 		<xsl:apply-templates>
> 	</xsl:template>
> 
> to be represented as
> 
> 	element p
> 		output "%c"

I don't get the mapping between the two forms... If you want it to be a
different expression of the same language, there needs to be a mapping.

In XSLScript, your template would be something like:

X:template = "p" { 
	X:apply-templates;
}

That's not *very* different from the XML form, the difference being more
obvious when you start using xsl:if or parameters...

Eric 
-- 
Rendez-vous a Paris (Forum XML).
                          http://www.technoforum.fr/integ2002/index.html
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread