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.
Rob Tice
begin 600 foo1.xsl
M/#]X;6P@=F5R<VEO;CTB,2XP(C\^#0H\>'-L.G-T>6QE<VAE970@>&UL;G,Z
M>'-L/2)H='1P.B\O=W=W+G<S+F]R9R\Q.3DY+UA33"]4<F%N<V9O<FTB('9E
M<G-I;VX](C$N,"(^#0H@(#QX<VPZ=&5M<&QA=&4@;F%M93TB9&]C(CX-"B @
M(" \;W5T/@T*(" @(" @(#QX<VPZ=F%L=64M;V8@<V5L96-T/2(N(B\^#0H@
M(" @(" @/&%D9&ET:6]N86P^#0H@(" @(" @(" \>'-L.G9A;'5E+6]F('-E
M;&5C=#TB+B(O/@T*(" @(" @(#PO861D:71I;VYA;#X-"B @(" @/"]O=70^
H#0H@(#PO>'-L.G1E;7!L871E/@T*/"]X<VPZ<W1Y;&5S:&5E=#X-"B]O
`
end
begin 600 fooX.xml
M/#]X;6P@=F5R<VEO;CTB,2XP(C\^#0H\/WAM;"US='EL97-H965T('1Y<&4]
M(G1E>'0O>'-L(B!H<F5F/2)F;V\Q+GAS;"(_/B -"CP_>&UL+7-T>6QE<VAE
M970@='EP93TB=&5X="]X<VPB(&AR968](F9O;RYX<VPB/SX-"CQD;V,^1V]O
*9&)Y93PO9&]C/F5X
`
end
begin 600 foo.xsl
M/#]X;6P@=F5R<VEO;CTB,2XP(C\^#0H\>'-L.G-T>6QE<VAE970@>&UL;G,Z
M>'-L/2)H='1P.B\O=W=W+G<S+F]R9R\Q.3DY+UA33"]4<F%N<V9O<FTB('9E
M<G-I;VX](C$N,"(^#0H\(2TM/'AS;#II;7!O<G0@:')E9CTB9F]O,2YX<VPB
M+SXM+3X-"B @(" \>'-L.G1E;7!L871E(&UA=&-H/2(O(CX-"B @(" @(" @
M/'AS;#IC86QL+71E;7!L871E(&YA;64](F1O8R(O/@T*(" @(#PO>'-L.G1E
:;7!L871E/@T*/"]X<VPZ<W1Y;&5S:&5E=#YO
`
end