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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XML CASE Structure

[ Lists Home | Date Index | Thread Index ]
  • From: Paul Foster <paul.foster@bt-sys.bt.co.uk>
  • To: 'xml-dev' <xml-dev@ic.ac.uk>
  • Date: Fri, 30 Oct 1998 15:14:17 -0000

I know the answer to this will probably be no but I thought I would
check with the reflector anyway.  
When defining a structure in "some" programming languages it is possible
to have alternate strutcure parts based upon a preceding attribute's
value in the strutcure ie. the CASE statement.  
Is it possible to mimick a "CASE" type feature in a single XML DTD based
upon the actual value of one of its elements.   I think the answer is
no.  
However, the way I am thinking of to achieve this functionality is to
re-direct the XML application to another DTD when it comes across an
element type called say "DTDReDirect", the value of which gives the
location of the new DTD.  
Any alternatives and better ways of doing this would be appreciated.

Regards
Paul Foster
BT Labs, UK

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

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