mess of serialization params

Bug #867350 reported by Dennis Knochenwefel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Sorin Marian Nasoi

Bug Description

please, add a few examples in the documentation of
http://www.zorba-xquery.com/doc/zorba-latest/zorba/xqdoc/xhtml/com/zorba-xquery/www/modules/serialize.html#serialize-2 that would make the users life more easier.

Also, there are 3 different ways of setting serialization parameters:

ser:serialize( $items, <output indent="yes" omit-xml-declaration="yes" /> )
fs:write( $file, $content, <indent>yes</indent> )
zu:tidy( $item, '"indent=yes"')

as far as it is possible according to standardization and backwards compatibility issues it would be great if they were interchangable. for example:

zu:tidy( $item, <indent>yes</indent> )
zu:tidy( $item, <output indent="yes" omit-xml-declaration="yes" />)

should be valid.

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

fn:serialize should be the documented feature/pointed to by all the part using it. File API link to fn:serialize already.

ser:serialize is gone, replaced by fn:serialize.

What about tidy?

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

http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/examples/test_html_Queries_converters_html_tidy_1.html
shows that the option parameters are set exactly like the W3C spec for fn:serialize describes:
http://www.w3.org/TR/xpath-functions-30/#func-serialize

So this bug should be closed.

Changed in zorba:
milestone: none → 2.1
status: New → Fix Released
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Marked the bug as "Fixed released" because it was fixed a while ago in the trunk.

Changed in zorba:
status: Fix Released → Fix Committed
Changed in zorba:
status: Fix Committed → 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.