#66 Wrong namesp. with strip-space elements

v6.5.1
closed
Michael Kay
5
2012-10-08
2002-03-08
Torsten Bronger
No

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.

Discussion

  • A minimal example

     
    Attachments
  • Michael Kay
    Michael Kay
    2002-03-09

    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