This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: My DTD starts like this
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] RE: My DTD starts like this
- From: Dan Diebolt <dandiebolt at yahoo dot com>
- Date: Wed, 9 May 2001 10:10:08 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
<?xml version="1.0" encoding="iso-8859-1"?>
<!--******************************************************-->
<!--* "commonDelivery.dtd" *-->
<!--******************************************************-->
<!ENTITY % commonDeliveryVersion "1.4">
DTD documents don't have XML prologs (ie. <?xml ... ?>). I think
you mean to put the SGML into the local DOCTYPE:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE document [
<!-- define foo as a paramater entity (note % sign) -->
<!ENTITY % foo "NMTOKEN">
<!-- define bar as a general entity -->
<!ENTITY bar "variable">
<!ELEMENT document EMPTY>
<!ATTLIST document Reference %foo; #REQUIRED>
]>
<document Reference="&bar;">
</document>
General entities like &bar; can be used in the XML document.
Parameter entities lie %foo; can only be used in the SGML
definitions. I wouldn't fuss with these SGML besties unless
you can't get your problem solved using XSLT parameters
or variables.
Hope that helps.
Regards,
Dan
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list