#458 Unexpected result when there is xmlns attribute in XML doc

v8.6.1
closed
Michael Kay
5
2012-10-08
2006-01-07
Domenico Pontari
No

XSV use as default attribute of <xsv> tag:
xmlns='http://www.w3.org/2000/05/xsv'

when there is this attribute XSLT result is wrong, but
when I delete the attribute that's ok. The same thing
happends using XQuery.

I attach:

1) XSLT doc I used
2) old_err.xml -> that produces the unexpected result
3) new_err.xml -> that produces the correct result, but
without xmlns attribute

Discussion

  • files to reproduce the bug

     
    Attachments
  • Michael Kay
    Michael Kay
    2006-01-07

    Logged In: YES
    user_id=251681

    Firstly, please note the highlighted text on the "Submit New
    Bug" screen: the "bugs" tracker is for confirmed bugs only,
    not for support requests. The latter should be directed to
    the saxon-help forum or to the support-requests tracker.
    However, for basic XSLT coding questions that aren't
    Saxon-specific, you should use the xsl-list at mulberrytech.com

    Secondly, this is not a bug. Your element is in a namespace
    but your path expression is asking for elements not in a
    namespace. To get more information, google for "FAQ XSLT
    default namespace".

    Michael Kay