DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9449>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9449

Stylesheet included using setInclude can't see other templates

           Summary: Stylesheet included using setInclude can't see other
                    templates
           Product: XalanJ2
           Version: 2.0.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.templates
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am trying to include an additional xsl stylesheet into a stylesheet that is 
already being processed by using
stylesheet.setInclude(myStylesheet);

I am calling recompose on each of the templates in my new stylesheet.

This works except that I am not able to call templates in the original 
stylesheet as it can't find them.  Is this a bug?  Or is there something that I 
am not doing.

I want to end up with a single stylesheet being processed but need to include 
part of it dynamically after the first part has already been read in.

The main stylesheet is read in using TransformerFactory.newTemplates which 
seems to resolve all the includes etc at the time it is read in.  I just want 
to add an additional xsl:include after that but have it behave the same as any 
normal one.

If I use <xsl:include> in my new stylesheet to include the templates that I 
want then they end up being duplicated and this causes a problem too.

A solution to either of these options would be great.

Thanks, Damon

Reply via email to