[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: My DTD starts like this

Subject: RE: My DTD starts like this
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Wed, 9 May 2001 10:10:08 -0700 (PDT)
local doctype

  <?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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.