|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: My DTD starts like this
<?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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








