[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] A little cross referencing problem


Subject: Re: [xsl] A little cross referencing problem
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Wed, 22 Aug 2001 18:40:13 +0200

Jeni Tennison <mail@xxxxxxxxxxxxxxxx> wrote:
> Very sweet :) You could do the same kind of thing for decimal formats
> to use with format-number().
> 
> Of course the only slight drawback is that the document('') call will
> only get the current stylesheet document, and therefore won't search
> for keys defined in imported or included stylesheets (or indeed
> stylesheets in which this one is imported or included).
> 
> Perhaps functions like key-available() and decimal-format-available()
> would be handy.

Yes. Either this or having something like document(/..) meaning the
whole compiled style sheet... or, for more fun, document('xsl:this')...

Really hard-core XSLers will, of course, use recursive templates
to search all included and imported files. Bonus points for buildung
a global variable which holds all top-level xsl elements from the
transitive closure as a node set. :-)

Regards
J.Pietschmann

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



Current Thread
Keywords
xsl