[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DTD Problem

Subject: DTD Problem
From: ABHAY Andre <andre.abhay@xxxxxxxx>
Date: Mon, 8 Jan 2001 11:29:00 +0100
dtd pcdata xml parsing problem
Good morning,

	I have a problem with using ENTITY in my DTD file.
As you can see, in below, when I have <TITLETYP>OT</TITLETYP> in my XML file
and I try to load it with XML notepad in order to validate my XML file, 
I have a  XML parse error: 

Element content is invalid according to the DTD/Schema.
Expecting: AT, OT.

		<TITLETYP>OT</TITLETYP>
Do you know why there is an error here?

Please, find in below the DTD file and the XML file:

essai.dtd

<!ENTITY % TITLETYP "( AT | OT)">

<!ELEMENT MUSICALWORKS (WORK+)>

<!ELEMENT WORK (WORKTITLE+, DURATION?, CPRDT?, PUBDT?)>

<!ELEMENT WORKTITLE (TITLE+, LNGCDE?, (%TITLETYP;)+)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT LNGCDE (#PCDATA)>
<!ELEMENT TITLETYP (#PCDATA)>

<!ELEMENT DURATION (#PCDATA)>
<!ELEMENT CPRDT (#PCDATA)>
<!ELEMENT PUBDT (#PCDATA)>

essai.xml

<?xml version="1.0" standalone="no"?>
<?xml-stylesheet type="text/xsl"
href="http://etudev4/localengine3/essai.xsl"?>
<!DOCTYPE MUSICALWORKS SYSTEM "http://etudev4/localengine3/essai.dtd">
<MUSICALWORKS>
	<WORK>
		<WORKTITLE>
			<TITLE>A1254</TITLE>
			<LNGCDE>FR</LNGCDE>
			<TITLETYP>OT</TITLETYP>
		</WORKTITLE>
	</WORK>	
</MUSICALWORKS>


Thanks a lot for your help and have a happy new year


André ABHAY.
_______________________________________________________________________
Tel : (33) 1 47 15 47 50    E-mail : mailto:andre.abhay@xxxxxxxx    web site
: http://www.sacem.fr
Address : SACEM / 225 avenue Charles de Gaulle / 92521 Neuilly sur Seine
cedex / France


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.