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=6149>. 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=6149 problem with getAssociatedStylesheet Summary: problem with getAssociatedStylesheet Product: XalanJ2 Version: 2.2.0 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am currently trying to create the effect of dynamically changing the imports within a stylesheet by creating processing instruction nodes in a DOM which refer to different stylesheets. To run a quick test on this feature I expanded the stylesheets used in the example 'useStylesheetPI' to use multiple stylesheets. I do not appear to get the following behaviour (quoted from the documentation) "An XML document may include more than one xml-stylesheet processing instruction, hence the support for working with multiple stylesheets. If more than one stylesheet is returned, the other stylesheets are imported into the first stylesheet." This expected behaviour is further reinforced by the description in the API The behaviour that I appear to be getting is that only the last stylesheet processing instruction encountered is used and all other stylesheet processing instructions are ignored. Can this be investigated as I really need this feature. I hope this is the correct forum for this bug (if indeed that is what it is as opposed to my lack of understanding). I am using xalan-j 2_2_0 and xerces 2_0_0. The java is as per useStylesheetPI.
