Differences between revisions 13 and 14
Revision 13 as of 2005-03-31 09:01:26
Size: 1417
Comment:
Revision 14 as of 2008-02-19 15:39:23
Size: 1419
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
CategoryComputingTips > ["XMLCompTips"] CategoryComputingTips > [[XMLCompTips]]
Line 25: Line 25:
Anyway, the best thing to use is the standard tool - [http://xml.apache.org/xalan-j/ xalan] - it's the only one I've found that obeys all the "standard" commands I've tried to use Anyway, the best thing to use is the standard tool - [[http://xml.apache.org/xalan-j/|xalan]] - it's the only one I've found that obeys all the "standard" commands I've tried to use

CategoryComputingTips > XMLCompTips

XML Tips

Symbols and Encoding

Apache's mod_xslt, when rendering XML with XSLT, seems to only allow encoding in UTF-8 (is it only Apache?). So when you add any non-standard characters (£ for example) you get an odd character before the correct symbol in your browser. (Or is it only galeon?)

To correct this, set your browser to view the page as UTF-8. Sounds simple, but I spent ages trying to find out how to get rid of the silly other character!

Response

I assume when you're adding your characters, such as £, you're doing it as £ and not the literal? The M$ parser seems to insist on converting everything to UTF-16, which is all well and good but does actually introduce some problems of its own. It's all good fun.

  • -- Carl

Current status of XSLT processors

Whilst doing a fair amount of work with XSLT programs, I noted that there are, currently, many differences in the way they deal with XML and make their output.

Noteably the perl XSLT is still quite basic, ignoring some features altogether and adding line breaks where they might not be appropriate.

Anyway, the best thing to use is the standard tool - xalan - it's the only one I've found that obeys all the "standard" commands I've tried to use


CategoryComputingTips

TheEarthWiki: XMLCompTips (last edited 2008-02-19 15:39:23 by localhost)