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

Allowed PEReference usages

  • To: xml-dev@l...
  • Subject: Allowed PEReference usages
  • From: "Brett Kail" <junkaddr@h...>
  • Date: Mon, 30 Jun 2003 00:48:53 -0500
  • Bcc:

privacy pereferences
Hello,

I've been reading the XML specs for some time now, and I am completely
stumped attempting to understand the restrictions on PEReferences.
Could someone please comment which pairs of definition/uses below are
allowed?  An explanation or pointer to the relevant portion of the
spec as to *why* the usage is valid/invalid would be extremely
helpful.

<!ENTITY % pe "!ELEMENT e ANY">
<%pe;>

<!ENTITY % pe "ELEMENT e ANY">
<!%pe;>

<!ENTITY % pe "ELEMENT">
<!%pe; e ANY>

<!ENEITY %pe " ">
<!ELEMENT%pe;e ANY>

<!ENTITY % pe "!ELEM">
<%pe;ENT e ANY>

<!ENTITY % pe "ELEM">
<!%pe;ENT e ANY>

<!ENTITY % pe "Y">
<!ELEMENT e AN%pe;>

<!ENTITY % pe "ELEMENT e">
<!%pe; ANY>

<!ENTITY % pe "x 'value'">
<!ENTITY % %pe;>

<!ENTITY % pe "% x 'val">
<!ENTITY %pe;ue'>

In addition, how does one declare a PE that contains a literal '%'?
How about does one declare a PE that contains both a single and double
quote?  Assuming that it is possible to declare a PE named 'percent'
with a literal '%', is the following allowed?

<!ENTITY %percent; x "value">

Thanks!
-Brett

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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.