Wrong namesp. with strip-space elements
The Saxon XSLT and XQuery processor, developed by Saxonica
Brought to you by:
mhkay
With the appended files minimal.xsl and minimal.xml,
the command "saxon minimal.xml minimal.xsl" produces
(book:
(section: (heading:Hallo!)
(p:(em:Look here) (em:and here)). ) )
but it should produce
(book:(section:(heading:Hallo!)(p:(em:Look here)
(em:and here)).
))
If you remove the namespace from the xsl:stylesheet
element, you get the correct result, however, it
mustn't have any effect.
A minimal example
Logged In: YES
user_id=251681
Saxon is behaving correctly.
Please don't raise bug reports by making entries in this
section. As the information on the page makes clear, the
bugs section of this site is intended for confirmed bugs
only, not for suspected bugs.
When you say <xsl:strip-space element="section"/>,
the "section" is a QName that here refers to the element
with local name section in the default namespace. If the
default namespace in the stylesheet is different from the
default namespace in the source document, the name doesn't
match and therefore whitespace is not stripped.
Mike Kay