This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: doctype
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: doctype
- From: "John Power" <john dot power at net800 dot co dot uk>
- Date: Mon, 27 Nov 2000 13:04:01 -0000
- Reply-To: xsl-list at mulberrytech dot com
Gerhard,
Thanks but I'm a bit confused. What version of Xalan are you using? I am
using Xalan 1.2 and when I define the two variables just inside the
stylesheet, I get the following error:
"Transforming...
XSL Error: pattern = 'document(concat($DocType,'else.xml'))'
VariableReference given for variable out of context or without definition!
Name = DocType, source tree node: #document."
This, as far as I can understand it, happens because I call 'DocType' in
'RecordLayout'. If I define 'RecordLayout' in the template, no such error
occurs.
I have also found that, if I define a variable or parameter IN a template in
terms of another on the same level as it - as you want them to be here,
except outside any template - then Xalan has no problem.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list