John,
>I'm a bit unsure which variable you want to have global scope. If it's
>"DocType", then you can get the top-level element name like this: ..
I wanted both...
>...
>This can now be used wherever you want to create "RecordLayout". But you
>need to create "RecordLayout" inside a template.
Just for the records:
At least with the Xalan/Xerces combination it works also outside of
templates ...
>...
>Alternatively, if you want BOTH variables to be top-level(so that the
>external XML document will be available to every template), I'm afraid I
>don't know how to do that.
see above
>But I hope this helps,
Yes, thank you too ... Gerhard
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|