|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Parameter entity must be defined before it is used
At 16:57 05-05-2004, Andrew Welch wrote:
> After a while of hacking java solutions, that could be done > using xslt I'll > try making a second attempt in using xsl. I have some > fundamental problems > getting started: > > I want to transform an xhtml file input and transform it into > something > else, but I get an error with a non defined entity. > > The document may contain mathml, danish letters fxe and other > odd things. > These things should just go straight through the > transformation without any > transformation, but the engine keeps arguing that it must be > defined.... > > Can it be avoided that the transformation engine worries > about definitions > of entities? > If not: how can I easily import these definitions? > > The input xhtml is strict and can be viewed in mozilla, so > there are no > problems there. Here's the full case: I would like to take an xhtml file and use xslt to transform it to something where I wrap special parts in links: So the input could be something like: ----------------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">]> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>test-1</title> </head> <body> <h1>Forside</h1> bla bla <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msqrt> <mrow> <mi>α</mi> </mrow> </msqrt> </mrow> </math> </body> </html> ------------------------------------------------------------ And the output something like: ------------------------------------------------------------ <part id="1" type="heading" size="1">Forside</part> <part id="2" type="math" size="2"><math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msqrt> <mrow> <mi>α</mi> </mrow> </msqrt> </mrow> </math></part> ------------------------------------------------------------ I'm developing the xslt using xsllerator (MSXML4) while in my program I'm using JDOM's default transformer. This can be easily changed, but I don't know what transformer that's the best to choose. If you can guide me in the right direction I'll try that. Regards Morten Andersen cheers andrew
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








