> I have an error with my xml/xslt :
> My question is : Is there a way to overcome the "&" in
> "−" in xml using xslt? or am I going to have to "trap"
> for the − in my perl script before it is transformed by
> the parser. The parser effetcively sees the xml as badly
> formed but can xslt help?
No, XSLT can only process well-formed XML input.
> the xml I need is generated via a process using htmltidy in
> part of the process (a perl script obtaining data from a
> database). Tidy helpfully cleans the "copy" which contains
> the code "−" and converts this to − hence the xml
> : <html> <head> <meta name="generator" content="HTML Tidy for
> Windows (vers 1st April 2002), see > www.w3.org"/>
> <title>Untitled</title> </head> <body> <p><b>A
> title − some more text</b></p> some more text </body> </html>
It looks as if you are using the HTML version of tidy: why not use the
option to output XHTML, which is of course well-formed XML?