[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Without DTD Mapping


Subject: RE: [xsl] Without DTD Mapping
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 25 Aug 2008 09:17:07 +0100

You can't use XSLT to transform an input document unless the input is
well-formed XML. If the input contains an entity reference &hyphen; but
there is no DTD to declare what this entity reference means, then the input
is not well-formed XML.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: V.Ramkumar [mailto:V.Ramkumar@xxxxxxxxxxxxxxxxxxxxxx] 
> Sent: 25 August 2008 06:06
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Without DTD Mapping
> 
> 
> Hi list,
> 
> I am doing XML 2 XML transform using xslt2.0 through saxon. 
> My source xml don't have any DTD (to Map/Assign). But saxon 
> throws error when transform for entity as "Error on line 5 
> column 56 of c01.xml: SXXP0003: Error reported by XML parser: 
> The entity "hyphen" was eferenced, but not declared." How to 
> ignore parsing when transform.
> 
> Regards,
> Ramkumar


Current Thread
Keywords