D
David Carlisle
The attributes on xslutput are merged according to import precedence,
you only have one lineariser active in any given transformation.
In your case the system will output XML, which is presumably what you
want, as the method attribute on xslutput in the first stylesheet has
higher import precedence.
the templates in transform2.xsl will still fire, but the text will be
output using XML conventions so < as < this is anyway what you want
as you are outputting the child text of an element and if you generated
unquoted < or & (as the text output method would produce) the whole
result file would not be well formed XML.
Presently, the declarations in the imported xsl are ignored.
If this is so, the problem is unrelated to any of the code you have
posted, you may need to be more explict, make a small example with one
template in each stylesheet, and an explict input file and say what
output you wanted and what output you got.
David
you only have one lineariser active in any given transformation.
In your case the system will output XML, which is presumably what you
want, as the method attribute on xslutput in the first stylesheet has
higher import precedence.
the templates in transform2.xsl will still fire, but the text will be
output using XML conventions so < as < this is anyway what you want
as you are outputting the child text of an element and if you generated
unquoted < or & (as the text output method would produce) the whole
result file would not be well formed XML.
Presently, the declarations in the imported xsl are ignored.
If this is so, the problem is unrelated to any of the code you have
posted, you may need to be more explict, make a small example with one
template in each stylesheet, and an explict input file and say what
output you wanted and what output you got.
David