xml:base unsupported when parsing XML

Bug #1134002 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Nicolae Brinza

Bug Description

Given an XML file foo.xml containing

  <a xml:base="http://www.oracle.com/"/>

the query

  fn:base-uri(fn:doc("foo.xml"))

should return "http://www.oracle.com/".

Likewise, the query

  import module namespace x = "http://www.zorba-xquery.com/modules/xml";
  let $d := x:parse("<a xml:base='http://www.oracle.com/'/>", ())
  return fn:base-uri($d)

should return "http://www.oracle.com/".

However, both queries return "file:///tmp/foo.xq" or whatever the path to the query file is (which is the default value for the base-uri of a new document - that's a separate issue).

Tags: xml-parser
Chris Hillery (ceejatec)
Changed in zorba:
importance: Undecided → Medium
assignee: nobody → Nicolae Brinza (nbrinza)
tags: added: xml-parser
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.