Re: [xml] empty tag
- From: "Alex Neblett" <alexneblett01 yahoo com>
- To: <xml gnome org>
- Subject: Re: [xml] empty tag
- Date: Thu, 6 Jul 2006 22:55:40 -0500
Hello!
Somewhat related, is it possible to preserve <tag></tag> rather than have it
convert to <tag/> when doing an xslt tranform?
I am using libexslt to transform xml into xhtml.
Sadly, the consumer of the xhtml content (to which I do not have source code
access) is issued and sometimes interprets <tag/> as <tag> then
"autocorrects" the xhtml by inserting a </tag> where it deems appropriate
causing all sorts of issues.
Presently, I do a second xslt transform to place comments inside empty tags
resulting in <tag><!-- DELETE THIS --></tag> as a poor workaround.
Probably, I am not the first person to encounter this problem and am also
open to alternative suggestions as to how to solve this issue.
Kind Regards,
Alex
-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On Behalf Of
Daniel Veillard
Sent: Thursday, July 06, 2006 3:10 PM
To: Jean-Francois Dupont-Viel (QA/EMC)
Cc: xml gnome org
Subject: Re: [xml] empty tag
On Thu, Jul 06, 2006 at 03:46:12PM -0400, Jean-Francois Dupont-Viel (QA/EMC)
wrote:
So what the function that I shall be using ?
1/ http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveToFilename
2/ http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveDoc
3/ http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveClose
xmlThrDefSaveNoEmptyTags ?
Very bad idea it's just an accessor for the thread global variable in thread
local storage used internally.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/ xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]