|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Abbreviated form of XSLT?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








