On Feb 15, 2008, at 22:03, Andrejus Chaliapinas wrote:
Hi
My XSL has entries like these:
<xsl:copy-of
select="xalan:nodeset(ext:generateSubtree())" />
Where generateSubtree() is external Java class method and returns
result in
form of org.w3c.dom.NodeList and inside that nodes list I have
nodes like
<fo:page-number/> and whole XSL has such attribute specified:
xmlns:fo="http://www.w3.org/1999/XSL/Format"
Now when I run whole transformation process - I get:
org.xml.sax.SAXException: Mismatch: page-number
(http://www.w3.org/1999/XSL/Format) vs. page-number ()
This is weird... So, if I interpret correctly, the input
<fo:page-number />
leads to a SAX startElement() event *with* the proper namespace, but
somewhere in between (by Xalan, I presume) the namespace dissolves so
that null is passed to the endElement() event...
<snip />
So, which part cannot determine that proper namespace? Is it Xalan not
populating result tree fragment with correct namespaces? Anything
to check
(version, nodes list, etc).
Also, I think I had this working before in different environment,
but not
sure what has changed since that.
Be sure to check very thoroughly which version of Xalan is being
used, and try to play with different versions.
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]