Tammam --

Would you please add this to bugzilla at
http://nagoya.apache.org/bugzilla/enter_bug.cgi?product=XalanJ2 and
attach your input XML, input XSLT, actual output, and expected output. 
I have a fix for this that I am just testing and I expect to commit it
soon.

BTW, I don't know if you're testing some kind of automated tool or this
is a manually coded stylesheet.  I just wanted to let you know that most
people would not code like this but would use Literal Result Elements
instead.  In fact, the xsl:namespace-alias is not even used when
generating elements with xsl:element like you are doing.  Also, the
"exclude-result-prefixes" attribute is ignored for the xsl:copy element
so you'll get the tgh namespace declared in your output whether you want
it or not.  There is no way to prevent this when using xsl:copy.

Also, many people like to stay away from xsl:for-each and use
xsl:apply-templates instead except in the very few cases where
xsl:for-each is absolutely necessary.  Of course it works fine so take
that comment for what it's worth.

If you'd like further details before experimenting on your own, please
let us know.

Gary

Gary L Peskin wrote:
> 
> Tammam --
> 
> Just to let you know that I'm still working on this.  This example has
> revealed a number of problems with the current XalanJ and I am isolating
> those and correcting them.  Some are pretty fundamental so I'm trying to
> rejuvenate my comprehensive testing environment using Shane's new
> Ant-based testing stuff just to make sure there are no regressions.
> 
> I have one more problem to actually find and then I'll run the
> regression tests and committ the changes.
> 
> Thanks,
> Gary
> 
> [EMAIL PROTECTED] wrote:
> >
> > Hi Gary,
> >
> > Attached is my xslt, the input, the actual output, and the expected output.
> > Notice the output has the needed namespaces.
> >
> > (See attached file: dyn_output.txt)(See attached file: dyn_input.xml)(See
> > attached file: dyn_expected_output.txt)(See attached file: dyn.xsl)
> >
> > Cheers,
> >
> > Tammam
> >
> >   ------------------------------------------------------------------------
> >                      Name: dyn_output.txt
> >    dyn_output.txt    Type: Plain Text (text/plain)
> >                  Encoding: base64
> >
> >                     Name: dyn_input.xml
> >    dyn_input.xml    Type: BizTalk Schema (text/xml)
> >                 Encoding: base64
> >
> >                               Name: dyn_expected_output.txt
> >    dyn_expected_output.txt    Type: Plain Text (text/plain)
> >                           Encoding: base64
> >
> >               Name: dyn.xsl
> >    dyn.xsl    Type: BizTalk Schema (text/xml)
> >           Encoding: base64

Reply via email to