You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Patrick Haggerty <ha...@mindspring.com> on 2000/10/22 09:04:14 UTC
Notation problem
I want trying to work with the following dtd:
<!ELEMENT pr:productRequest (pr:companyName, pr:customer+)>
<!ATTLIST pr:productRequest
xmlns:pr CDATA #REQUIRED
>
<!ELEMENT pr:companyName (#PCDATA)>
<!ATTLIST pr:companyName
compID CDATA #REQUIRED
>
<!ELEMENT pr:customer (pr:custPhone, pr:custPostalCode)>
<!ATTLIST pr:customer
image CDATA #REQUIRED
>
<!ELEMENT pr:custPhone (#PCDATA)>
<!ELEMENT pr:custPostalCode (#PCDATA)>
<!NOTATION gif SYSTEM 'image/gif'>
<!ENTITY itemImage SYSTEM 'images/item1.gif' NDATA gif>
On the final two lines dealing with the NOTATION and ENTITY, parsing failed
with a SAXException as long as the values were in double quotes. Changing
to single quotes fixed the problem.
What is up with that??? Should it matter? According to the XML specification:
[11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")
You can use either one.
Thanks!
Cheers!
Hagg
That's Internet for:
Patrick E. Haggerty, III
Remember to be kind to rude people
They are just too stupid to know any better
Re: Notation problem
Posted by Eric Ye <er...@locus.apache.org>.
which version of Xerces are you working with?
----- Original Message -----
From: Patrick Haggerty
To: xerces-j-dev@xml.apache.org
Sent: Sunday, October 22, 2000 12:04 AM
Subject: Notation problem
I want trying to work with the following dtd:
<!ELEMENT pr:productRequest (pr:companyName, pr:customer+)>
<!ATTLIST pr:productRequest
xmlns:pr CDATA #REQUIRED
>
<!ELEMENT pr:companyName (#PCDATA)>
<!ATTLIST pr:companyName
compID CDATA #REQUIRED
>
<!ELEMENT pr:customer (pr:custPhone, pr:custPostalCode)>
<!ATTLIST pr:customer
image CDATA #REQUIRED
>
<!ELEMENT pr:custPhone (#PCDATA)>
<!ELEMENT pr:custPostalCode (#PCDATA)>
<!NOTATION gif SYSTEM 'image/gif'>
<!ENTITY itemImage SYSTEM 'images/item1.gif' NDATA gif>
On the final two lines dealing with the NOTATION and ENTITY, parsing failed with a SAXException as long as the values were in double quotes. Changing to single quotes fixed the problem.
What is up with that??? Should it matter? According to the XML specification:
[11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'")
You can use either one.
Thanks!
Cheers!
Hagg
That's Internet for:
Patrick E. Haggerty, III
Remember to be kind to rude people
They are just too stupid to know any better