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

RE: xslt 2.0, use case wanted.

Subject: RE: xslt 2.0, use case wanted.
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 6 Apr 2004 08:55:10 +0100
michael use case
> I feel it will on occasion, be necessary to know this.
> The use case I arrived at, which failed to convince Mike,
> was that if I'm only processing 1 sect2 element, then I should
> number things from that node, not from the source document root node
> as would normally be the case.
> 
> Can you think of a better use case for knowing where your stylesheet
> started processing?

The initial node is in fact available, you can make it a global variable by
writing

<xsl:variable name="start" select="."/>

It's the initial template and initial mode that aren't available. Template
names and mode names are not things that a stylesheet normally manipulates
at run-time, and I think if we made them available it would quickly lead to
demands to specify modes and template names dynamically in call-template and
apply-templates (not that such demands would be new).

Michael Kay

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.