Dave Connet schrieb:
This works using IE (using 7 and just opening the xml in the browser)
and xalan. However, using xsltproc (and, internally, in our code with
making the actual api calls), this produces a mangled 'src' attribute.
Using xalan:
<img width="415" height="10" src="C:\Test
Dir\images/myImage.gif">Id1<br>
Using xsltproc:
<img width="415" height="10"
src="C:%5CTest%20Dir%5Cimages/myImage.gif">Id1<br>
Looks like the HTML serialization method chosen via xsl:output
automatically escapes the @src attribute for use in URLs. Same
story for the @href attribute.
If you change your xsl:output/@method or the attribute name, no such
escaping is done. Of course, neither option is likely to help you.
I think this could be considered a bug in LibXML2.
Are there any work arounds to this? (I'm not the xsl programmer - I
wrote the C++ code to do the transformations)
In that case, maybe propose a patch for LibXML2 ... :-) The relevant
code seems to be here:
ftp://xmlsoft.org/libxml2/libxml2-2.7.2.tar.gz
libxml2-2.7.2/HTMLtree.c
static void htmlAttrDumpOutput( ... )
Michael Ludwig
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
http://mail.gnome.org/mailman/listinfo/xslt