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] Reference to an ENTITY

[ Lists Home | Date Index | Thread Index ]

Title: Reference to an ENTITY
The <!ENTITY declarations in the DTD describe how to resolve any entity references appearing in the document (things like &entref;).
 
The <!ELEMENT and <!ATTRIBUTE declarations describe the structure of the data AFTER the document has been assembled from all its entities. So when writing the logical element/attribute structure you don't need to be concerned (in fact, you aren't allowed to be concerned) with the physical partitioning of the document into entities.
 
Michael Kay
http://www.saxonica.com/


From: Vines, John (Civ, ARL/CISD) [mailto:jvines@arl.army.mil]
Sent: 20 January 2006 20:14
To: XML Developers List
Subject: [xml-dev] Reference to an ENTITY


All,
        I am working on a Schema and DTD for one of our data formats.  I need to include an "if/else" type statement for one of my elements.  The data can be stored directly in the XML file as CDATA or it can be stored in an external entity, an HDF5 file.

Here is the element I am working on:

<!--Lowest level element, describes the data that is present in the XDMF dataset-->
<!ELEMENT DataStructure (How do I get to my data?, XML(internal) or ENTITY(External)>
<!ATTLIST DataStructure
        Name CDATA #IMPLIED
        Rank CDATA #IMPLIED
        Dimensions CDATA #REQUIRED
        Precision (4 | 8) "4"
        Format (XML | HDF | Xml | Hdf) "XML"
        DataType (CHAR | FLOAT | INT | COMPOUND | Char | Float | Int | Compound) "Float"
>

        Again I'm new to XML and am not sure how to do this, so please forgive me if I ask the same type of question a couple of times. 

Thanks again for any help,


John Vines
ARL MSRC
HPCD, CSEB
Scientific Visualization Team





 

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

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