Implementation of fn:parse and fn:serialize planned?

Bug #867344 reported by noone
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Gabriel Petrovay

Bug Description

Are there plans to implement functions to parse and serialize XML according to the W3C standard? That would be great!
http://www.w3.org/TR/xpath-functions-11/#func-parse
http://www.w3.org/TR/xpath-functions-11/#func-serialize

Best regards
Mike

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Hi,
 we have a parse and also a serialize implemented but they are not 100 % according to the spec.
We are planning to make the necessary changes but, in the meantime here are some pointers to what we have at the moment:

http://www.zorba-xquery.com/doc/zorba-latest/zorba/html/util.html#parse_util
http://www.zorba-xquery.com/doc/zorba-latest/zorba/html/util.html#serialize_util
http://www.zorba-xquery.com/doc/zorba-latest/zorba/xqdoc/xhtml/com/zorba-xquery/www/modules/serialize.html

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

fn:parse will be shipped with the upcoming Zorba 1.4 release.

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Mike, can we close this feature request?

Changed in zorba:
assignee: nobody (nobody-users) → Nicolae Brinza (nbrinza)
assignee: Nicolae Brinza (nbrinza) → nobody
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Gabriel, can you please verify and close this bug if this is fixed?

The fn:parse-xml seems to be implemented according to the spec.

I have attached a working example for fn:serialize.
The only difference between the spec:
http://www.w3.org/TR/xpath-functions-30/#func-serialize

and the implementation in Zorba is the way the parameters are set:

In the spec they are suppose to be set with:
<output:serialization-parameters>
  <output:omit-xml-declaration>yes</output:omit-xml-declaration>
</output:serialization-parameters>

While in Zorba they are set like this:
<output:serialization-parameters>
  <output:omit-xml-declaration value="yes" />
</output:serialization-parameters>

If Zorba is correct than it means the W3C spec is wrong and we should raise a bug against the spec, right?

Changed in zorba:
assignee: nobody → Gabriel Petrovay (gabipetrovay)
Changed in zorba:
status: New → Fix Released
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.