Altova Mailing List Archives

Re: xsl:import and xsl:apply_import

From: David Carlisle <davidc@---.--.-->
Date: 12/16/2004 1:48:00 PM
The attributes on xsl:output 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  xsl:output 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 &lt; 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.



These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.