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

xml-entity PI

  • To: XML-Dev <xml-dev@l...>
  • Subject: xml-entity PI
  • From: James William Pye <flaw@r...>
  • Date: Fri, 22 Oct 2004 10:34:57 -0700
  • Organization: rhid development

xml entity
Greets,

Has there been any discussion in the past about custom sources for
document entities(alternatives to DTD specified entities)?

Yes, I do have something specific in mind, a pair of PIs:

<?xml-entity name='ent' value='val'?>
and
<?xml-entities type='text/xml-dtd' href='someURI'?>
<?xml-entities type='text/xml-entities' href='someURI.xml'?>

The first form is for simple, quick, in-document declarations, and the
second is for external resources, meant for large[r], reusable sets of
entities.

As the existence of the 'type' pseudo attribute implies in the second
PI, processors should be capable of handling different types of sources,
whether DTD, a custom XML entity source, a newline seperated list of
assignments, or whatever.[Preferrably through a plugin system of sorts
:]

A format like this seems particularly natural/appealing to me:

<entities>
 <ent_name>entity content</ent_name>
 <another_ent>foobar</another_ent>
</entities>

(of course in the referencing document: &ent_name; and &another_ent;)

Perhaps there should be scoping limitations depending on where the PI
appears.

With the many validation mechanisms available today, it seems a bit
obtuse to rely solely on DTDs for sources of entities.

Thoughts, or am I beating a dead horse that I've never seen before?

-- 
Regards,
        James William Pye

This is a digitally signed message part


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.