After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 143226 - canonical XML from xmllint/xsltproc (feature request)
canonical XML from xmllint/xsltproc (feature request)
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-26 17:42 UTC by Oleg Paraschenko
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oleg Paraschenko 2004-05-26 17:42:46 UTC
Feature request:

It is nice to have an option for xmllint (maybe also for xsltproc) to output
canonical XML.

In case of comments I suggest to post them also to a discussion list:
http://mail.gnome.org/archives/xml/2004-May/msg00195.html

Thank you
Comment 1 Daniel Veillard 2004-05-27 16:01:37 UTC
Could be an option for the new saving APIs. Now which canonical XML do you
suggest ? There is already support in libxml2 for W3C canonicalization
(see c14n.h), check on the list, aleksey the implementor of the c14n module
certainly have an idea about this.

Daniel
Comment 2 Oleg Paraschenko 2004-05-27 18:33:36 UTC
I suggest W3C canonicalization.

Thank you for information, I'll write a letter to Aleksey Sanin with an ask to
comment this issue.
Comment 3 Aleksey Sanin 2004-05-27 18:47:58 UTC
Yes, it is a good idea. However, you need to remember that c14n is usually used
with XPath expressions.
Comment 4 Aleksey Sanin 2004-05-27 18:51:14 UTC
adding myself to cc list
Comment 5 Daniel Veillard 2004-08-14 22:38:24 UTC
Okay I added a --c14n option to xmllint providing canonicalization 
(with comments) of the result of parsing. It sort and simple.
On the other hand I'm vary of doing that for xsltproc as generating
the output is a stylehseet dependant operation, and mixing both gets
messy. You can still do xsltproc ... | xmllint --c14n - if needed.
It's commited in CVS,
  
Daniel
Comment 6 Oleg Paraschenko 2004-08-17 17:58:02 UTC
Thank you a lot.

> You can still do xsltproc ... | xmllint --c14n - if needed.

Not a problem.