[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

Subject: RE: Parameter entity must be defined before it is used
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Wed, 5 May 2004 15:57:02 +0100
parameter must be defined
> 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.

If you are talking about entity resolution then the xml parser must attempt to resolve the entity to ensure the xml is well-formed.

You can turn off validation, but the parser will still attempt to get the dtd for this purpose.

To get around this, you can try implementing your own entity resolver in java, and just return the entity reference (instead of what it resolves to) or if you are using xerces you can set the feature http://apache.org/xml/features/nonvalidating/load-external-dtd to false which I think will ignore the dtd altogether.

In your case, are you talking entities or character references?  I'm guessing you're using xhtml entities that are not legal in xml - if you could post a sample that fails then it would be a little clearer.

cheers
andrew

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.