|
Subject: Re: [xsl] selecting into an included stylesheet From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Tue, 31 Jan 2006 07:10:48 +1100 |
On 1/31/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> If you know the URI of the stylesheet you want to access -- which you do,
> because you included it -- you can get it using the document() function
just
> like any other XML document. (That's all that document('') is doing).
A more user-friendly way that does not require remembering all those
file-names (which, btw could change in time) is to have in every
stylesheet a global variable with easy to remember name:
<xsl:variable name="vdocThisStylesheet" select="document('')"/>
Then, this document is accessible within every other stylesheet of the
import tree by simply:
$vdocThisStylesheet
--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] selecting into an include, Michael Kay | Thread | RE: [xsl] selecting into an include, Ingersoll, Utah |
| Re: [xsl] Find and change an attrib, Rick Quatro | Date | Re: [xsl] Find and change an attrib, Jon Gorman |
| Month |