Subject: Re: Variable names *as* variables From: "John E. Simpson" <simpson@xxxxxxxxxxx> Date: Thu, 12 Oct 2000 19:26:35 -0400 |
> I have a feeling that what I'm trying to do can't be done without > extensions, like Saxon's eval. Unfortunately I can't use an extension > function for this case, and thought I'd fly it past the list to see if any > of you have a brainstorm.
Yet it can be done without any extensions. Try to apply the following stylesheet
to your <someroot> sample. The key idea is that document('') returns the root of
the stylesheet itself; in this way, you can address pieces of the stylesheet as
if they were elements in the source document.
However, I think it isn't a good idea to intersperse style with data. IMO, you
should better put your location data into a separate XML file, marking them with
normal markup instead of xsl:variables. Then you can access them using
document() function, in the same way that I used to extract these data from the
stylesheet.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Variable names *as* variables, Nikolai Grigoriev | Thread | Re: Variable names *as* variables, Nikolai Grigoriev |
RE: Using XSLT for SAP R/3 IDocs Tr, Kaganovich, Yevgeniy | Date | XML -> Java Properties -> XML, Dylan Parker |
Month |