This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Parameter Entity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Reply Bookmark "Parameter Entity" Watch "Parameter Entity" New topic
Author

Parameter Entity

Shoba Ramachandran
Ranch Hand

Joined: Mar 29, 2001
Posts: 68
Hi,
I have read the following in "Essential XML Quick Reference" book, section 2.5.1.
"Parameter entities may not be referenced within other declarations in the internal subset but they may be used in place of a complete declaration."
I tried the following example to test this concept and I'm allowed to reference parameter entities within other declarations. Am I missing something here?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE person [
<!ENTITY % nameDesc "<!ELEMENT name (#PCDATA)>">
<!ENTITY % literateAtt "CDATA "YES"">
<!ELEMENT person (name)>
%nameDesc;
<!ATTLIST name literate %literateAtt;>
]>
<person>
<name>Shoba</name>
</person>
It does not complain when I try to reference "literateAtt" entity within "ATTLIST" declaration.
Please help.
Thanks
Shoba
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Parameter Entity
 
Similar Threads
XML Notes - I
DTD Doubt
Parameter Entity problem
DTD Validation error
JavaRanch XML mock exam errata-2