[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Abbreviated form of XSLT?

Subject: RE: Abbreviated form of XSLT?
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: 09 Oct 2002 22:25:36 +0200
abbreviated forms
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.