> On the other hand, there is no encoding indication in vdd.sgml, so xsltproc 
> expects it to be UTF-8 encoded.
> But it is Latin-1 encoded.

I suspect the xml file (vdd.xml) is Latin-1 encoded too.

> Q : Could you tell me more about how vdd.sgml is generated 

Have a look at:

http://www.mkgnu.net/cgi-bin/viewcvs.cgi/scmbug/cvsroot/system/src/lib/product/Tools/VDD_Generator.pm.in?rev=1.28&view=auto

Begin at the end where it reads:

 #
 # Transform the XML VDD into various formats
 #

Essentially we are calling xsltproc to transform an xml file
that contains VDD information into the vdd.sgml file. This xml file was
produced by the Daemon (by collecting the appropriate information from
the database) and returned back to us. The actual call to xsltproc is:

xsltproc -o output_directory/vdd.sgml 
/usr/share/scmbug/glue/templates/stylesheets/vdd.xsl output_directory/vdd.xml

So we are supplying a stylesheet file and an xml file to xsltproc
to apply the transformation. I wonder if there is some tool that will
convert the xml file from Latin-1 to UTF-8, or somehow prepare the data
in a format accepted by xsltproc. Perhaps that's something that could
be indicated in the stylesheet file vdd.xsl ?


_______________________________________________
scmbug-users mailing list
[email protected]
http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users

Reply via email to