[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Forming a MIME_TYPE Attribute list
From: "K. Ari Krupnikov" <ari@c...> > "Marker, Mike" <Mike.Marker@F...> writes: > > > The following does not work: > > > > <!ATTLIST MIME_TYPE value (text/html | application/pdf | image/tiff) > > "image/tiff"> > > > > due to the '/' characters. > > Correct. Enumerated attribute values are NMTOKENs and as such can only > include name characters. "/" is not a name character. You can use an XML Schema or RELAX NG simple type with a base type of xs:token and enumeration facets. (To ease the transition to a schema, if it's an issue, you can use Jame's Clark's trang, http://www.thaiopensource.com/relaxng/trang.html, which does a bang-up job converting DTDs to several flavors of schema.) Bob > Ari. > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://lists.xml.org/ob/adm.pl> > >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|