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

RE: need a [ in an ATTLIST


larry fillion
I find it interesting that the default value can have the '['

<!ATTLIST myelement myattribute1 (value1|value2) "value[">

	Larry



>  -----Original Message-----
> From: 	Larry Fillion [mailto:larry.fillion@c...] 
> Sent:	Tuesday, April 02, 2002 9:25 AM
> To:	xml-dev@l...
> Subject:	 need a [ in an ATTLIST
> 
> The following is a DTD snippet that I am trying to get to work.
> 
> <!ELEMENT myelement         EMPTY>
> <!ATTLIST myelement myattribute1 (value1|value2) #REQUIRED>
> <!ATTLIST myelement myattribute2 (value1|value2|value[) #REQUIRED>
> 
> The issue is that I need to have a potential value for myattribute2 to be
> "value[".
> 
> The first attribute "myattribute1" works just fine, but when I add the
> "value["
> to the list of potential values, I get the following error when I try to
> parse an 
> XML file (it never makes it passed the parsing of the DTD)
> 	javax.servlet.ServletException: Name tokens must not start with "["
> characters. 
> I am using a DOM implementation with tomcat/jboss. Maybe I need a newer
> parser
> to get this working?
> I tried using differnet Entities but still could not get this to work. Any
> help?
> 	Larry

<<attachment: winmail.dat>>


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.