Re: XSL template priority problem in SAX processing stream.

2004-11-05 Thread david_n_bertoni
> Okay, but all of the templates were imported. The template it eventually selected to execute > was also an imported template. Why did it select imported template B with a lower priority > versus imported template C? The one it ultimately selected was the last template imported; > I moved t

Re: XSL template priority problem in SAX processing stream.

2004-11-05 Thread david_marston
>...Why did it select imported template B with a lower priority versus imported template C? If they were imported from different places, then their import precedence differs. But it appears that you really want to switch over to xsl:include, since you want to avoid the effects of import precede

Re: XSL template priority problem in SAX processing stream.

2004-11-05 Thread Edward L. Knoll
Okay, but all of the templates were imported.  The template it eventually selected to execute was also an imported template.  Why did it select imported template B with a lower priority versus imported template C?   The one it ultimately selected was the last template imported; I moved them aro

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread david_marston
Edward Knoll writes: >The templates at issues are actually distributed across multiple files. >A master XSL file references these templates using . If I >change the to an , the prioritization works. >...should I expect this behavior? Yes, import precedence outweighs template priority. We have a

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread Joseph Kesselman
Yes, you should expect that behavior. Include treats the other file as part of the same stylesheet source document. Import brings it in at reduced priority -- "lower Importance", if you need a mnemonic. See the XSLT spec for details. __ Joe Kesselman, IBM N

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread Edward L. Knoll
The templates at issues are actually distributed across multiple files. A master XSL file references these templates using . If I change the to an , the prioritization works. I've never been entirely sure of the difference between xsl:import and xsl:include, should I expect this behavior?

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread Edward L. Knoll
Please disregard this. A misedited file appeared to resolve the problem; taking the mode attribute off did not fix the problem. Edward L. Knoll wrote: I have isolated the problem further: the templates where priorities are not working also have mode attributes. If I take the mode attributes

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread Edward L. Knoll
I have isolated the problem further: the templates where priorities are not working also have mode attributes. If I take the mode attributes off, the templates work correctly. Unfortunately, company policy regarding software/confidential material will not allow me to post the input/source I'm

Re: XSL template priority problem in SAX processing stream.

2004-11-04 Thread Morris Kwan
I believe template priority should work in all modes of transformation, without any code change from the user side. Please open a bug in the JIRA database (http://nagoya.apache.org/jira/secure/Dashboard.jspa) and attach the input xml, stylesheet and the Java code to reproduce the problem. Morr

XSL template priority problem in SAX processing stream.

2004-11-04 Thread Edward L. Knoll
We have a XSL stylesheet which has prioritized templates. It was working as expected when we were using org.apache.xalan.xslt.Process to process it. We've since changed our processing to be handled by a chain of SAX content handlers with the core XSL processing being handled by a Transformer