Subject: [xsl] RE: My DTD starts like this From: Dan Diebolt <dandiebolt@xxxxxxxxx> Date: Wed, 9 May 2001 10:10:08 -0700 (PDT) |
<?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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] RE: parameter entity in DTD (, Michael Kay | Thread | Re: [xsl] RE: My DTD starts like th, David Carlisle |
RE: [xsl] encoding problem, Michael Kay | Date | [xsl] RE: parameter entity in DTD (, Michael Kay |
Month |