This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: RE: parameter entity in DTD (was untitled)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] RE: parameter entity in DTD (was untitled)
- From: Ingo Schildmann <ingoschi at web dot de>
- Date: Thu, 10 May 2001 09:57:03 +0200
- References: <20010509172348.43829.qmail@web12607.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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