xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeffrey Rodriguez" <jeffreyr...@hotmail.com>
Subject Re: Entities not supported in DTDs
Date Fri, 30 Jun 2000 22:01:00 GMT
Mr. Guldbaek,
I am not able to reproduce your claim.

This is what I tried :

This is my xml file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FOO SYSTEM "foo5.dtd" >
   <FOOFOO ident="123"/>

This is my dtd file foo5.dtd:

<!ENTITY % ident "ident NMTOKEN #REQUIRED" >
<!ATTLIST FOOFOO %ident; >

When I run sax.SAXCount  with validation turn on:

syslitbug5.xml: 3194 ms (2 elems, 1 attrs, 0 spaces, 5 chars)

Would you please send to jeffreyr@us.ibm.com a testcase that
reproduces you claim.

Jeffreyr Rodriguez
IBM Cupertino

>From: pkg@netnord.dk (Peter Guldbaek - Netnord A/S)
>Reply-To: general@xml.apache.org
>To: <general@xml.apache.org>
>Subject: Entities not supported in DTDs
>Date: Fri, 30 Jun 2000 13:00:00 +0200
>I seems to have problems using Xerces for Java to parse XML documents 
>a DTD containing <!ENTITY> definitions like "<!ENTITY % ident "ident 
>#REQUIRED">". The parser exits with
>"java.lang.StringIndexOutOfBoundsException" when it parses through the DTD
>specified in the XML document. The exception is no longer thrown if I 
>all definitions of parameter entities from the DTD.
>The problems started when I changed to Xerces for Java version 1.1.2. I 
>previously used version 1.0.3 (which did not have problems with entities).
>Does anyone have a tip to get around this or is it a bug? Thanks in advance
>- Peter K. Guldbaek
>In case of troubles, e-mail:     webmaster@xml.apache.org
>To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
>For additional commands, e-mail: general-help@xml.apache.org

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

View raw message