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

RE: words (RE: extensibility in XSchema?)

  • From: "Rick Jelliffe" <ricko@a...>
  • To: <xml-dev@i...>
  • Date: Thu, 25 Jun 1998 23:50:27 +1000

RE: words (RE: extensibility in XSchema?)
> From: james anderson

> i thought you could do this with unparsed 
> (that is, external) entities only.
> (i don't understand why, but that's what 
> i thought the rec says) ?
> and, what's the difference between the cited example and the 
> following (modulo validation constraints)?
> 
> <!ATTLIST object   PI CDATA #IMPLIED >
> <object  PI="&x">A wooden horsey</object>

Oops, I made a big mistake here--whatever I was thinking of
it wasnt XML. Apologies and embarrassment. At the risk of putting
more feet in my mouth, here are two other methods for your
dissection.

Yes, XML only has external entities for ENTITY attributes,
and these are not parsed, except by some additional contraint.
(I think I was distracted by SGML, which can label entities as PIs,
rather in the fashion of professional wrestler George "the Animal"
Steele, who would be distracted by the turnbuckle and try to eat
it at critical moments in a match.)

So here is a better attempt:
 <!ENTITY xxx "xxx.jar#xxx">
 <!ATTLIST object   PI ENTITY #IMPLIED >
...
 <object PI="xxx">a wooden horse</object>

In this case the external, unparsed entity would be a code
fragment. So "object" has an attribute which names 
an entity which is declared as being the resource which
is a fragment of that java archive. (I wouldn't have to use
fragment identifiers, I could have one PI per external file.)
The MIME headers returning the resource give the equivalent 
information to the PI target (notation).  So there is still
a way to associate external processing instructions to XML
elements. 

I suppose an alternative leaves using an XLink href attribute to
point to a PI given previously in the document (if XPtr ends
up being able to locate PIs), though. But that is not XML.

Rick.




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


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.