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" { 

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

Rendez-vous a Paris (Forum XML).
Eric van der Vlist  
(W3C) XML Schema ISBN:0-596-00252-1

 XSL-List info and archive:

Current Thread