OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Forming a MIME_TYPE Attribute list

[ Lists Home | Date Index | Thread Index ]

From: "K. Ari Krupnikov" <ari@cogsci.ed.ac.uk>
> "Marker, Mike" <Mike.Marker@FMR.com> 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>
>
>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS