This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RE: parameter entity in DTD (was untitled)


On Wednesday 09 May 2001 19:23, you wrote:
> >But of course the parameter entity might be used to create a default value
> >for an attribute of some element, in which case that attribute value will
> > be accessible.
>
> You mean general entity; paramater entites (with the %) can only be
> used in the SGML declarations.
>
That's incorrect.

Parameter entities can be used in XML DTDs as well:

Declarations like 

<!ENTITY % children  '(A,B,C)'>
<!ELEMENT father %children; >
<!ELEMENT mother %children; >

are often used.

>From the XML recommendation (Section 4):

Definition: General entities are entities for use within the document 
content. In this specification, general entities are sometimes referred to 
with the unqualified term entity when this leads to no ambiguity.] 
[Definition: Parameter entities are parsed entities for use within the DTD.] 
These two types of entities use different forms of reference and are 
recognized in different contexts. ...

-- 
Ingo Schildmann                                                ingoschi@web.de

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]