[xml/sgml-pkgs] Bug#468871: I found the source of the problem

Daniel Dickinson cshore at wightman.ca
Sun Mar 2 15:51:36 UTC 2008


It appears that xmlns="http://www.w3.org/1999/GCONF/Transform" is being
added to tags produced with xml:element, and since the tag I am doing
that to is almost the root, the stylesheet is spit back almost
unchanged.  There is a little processing, but so little I initially
thought I was just getting the original stylesheet back.

I am attaching the files I use to produce the issue.

modify-gconf.xsl is the original stylesheet
sensors.xml is the xml used along with with modify-gconf.xsl to produce
the target stylesheet
%gconf-tree.xml is the xml to be applied to the target stylesheet to
get the final output.

Steps:

xsltproc modify-gconf.xsl sensors.xml >intermediate.xsl
xsltproc intermediate.xsl %gconf-tree.xml >final.xml

final.xml is the erroneous result.

If, in intermediate.xsl, one replaces
http://www.w3.org/1999/GCONF/Transform with
http://www.w3.org/1999/XSL/Transform, then

xsltproc intermediate2.xsl %gconf-tree.xml >final2.xml

produces the correct output.



-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C      http://gnupg.org
No more sea shells:  Daniel's Weblog    http://cshore.wordpress.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: modify-gconf.xsl
Type: application/xml
Size: 1564 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0003.xsl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sensors.xml
Type: application/xml
Size: 1402 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0004.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: %gconf-tree.xml
Type: application/xml
Size: 8631 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0005.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final.xml
Type: application/xml
Size: 13997 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0006.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final2.xml
Type: application/xml
Size: 1499 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0007.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intermediate.xsl
Type: application/xml
Size: 11739 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0004.xsl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: intermediate2.xsl
Type: application/xml
Size: 11737 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0005.xsl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20080302/552a503f/attachment-0001.pgp 


More information about the debian-xml-sgml-pkgs mailing list