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

Re: Reference to an ENTITY

  • To: XML Developers List <xml-dev@l...>
  • Subject: Re: Reference to an ENTITY
  • From: Christopher Milton <cmiltonperl@y...>
  • Date: Fri, 20 Jan 2006 13:05:19 -0800 (PST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yxWRmVf5oP/NGN23KRiv7VQUbkMA7ufRO4d0xFtLKjS7q/cmSN2Ww/Oe7M6RST09VN0KdnJbUkpF/2c+ZMVnYP+Shq8UBFzX/0usSU5n5I/bP9vuDb1fAOa3iulcHg3NHuKPoAqfzr5taqg+E3gRCgveMH0Zb9G24bz9RP2d9zc= ;
  • In-reply-to: <D9A8D98DDC682044806D5B46AF5C11E2078BE6@A...>

Re:  Reference to an ENTITY
You could use parameter entities to create a conditional DTD.

"Tip: Customize a DTD with parameter entities"
by Nicholas Chase (nicholas@n...),
President, Chase and Chase, Inc.
http://www-128.ibm.com/developerworks/xml/library/x-tiparam.html

--- "Vines, John  (Civ, ARL/CISD)" <jvines@a...> wrote:
> 
> 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

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.