Subject: RE: parsed entites From: "Richard Lander" <rlander@xxxxxxxxxxxxxxxxxxx> Date: Wed, 17 Nov 1999 16:47:57 -0500 |
Alexandra, Yes you can ... DTDs are not external files. DTDs are the combination of external and internal subsets. Documents often only refer to an external .dtd file, but they can just as easily make use of the internal subset, in addition to or instead of the external subset. There are a couple more rules associated with internal subset declarations, such as with the use of parameter entities, but don't get worried about that yet. Assuming that you want to declare an entity called 'test', try: <?xml version='1.0' standalone='no'?> <!DOCTYPE xsl:stylesheet [ <!ENTITY test "neat stuff!" > <!--more entities and attribute declarations ... even elements --> ]> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xtfile="http://www.jclark.com/xt/java/java.io.File" version="1.0" xmlns:xt="http://www.jclark.com/xt" extension-element-prefixes="xt"> You may have different attributes within your xsl:stylesheet element, but the point remains the same. Good luck, Richard. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Alexandra Morgan Sent: Wednesday, November 17, 1999 4:21 PM To: xsl-list@xxxxxxxxxxxxxxxx Subject: parsed entites As I understand it, entities have to be declared inside the DOCTYPE. But my stylesheets don't have a DTD. Can I have a DOCTYPE without having a DTD? *********************************** chickclick.com http://www.chickclick.com girl sites that don't fake it. http://www.chickmail.com sign up for your free email. *********************************** XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: parsed entites, G. Ken Holman | Thread | Re: parsed entites, Alexandra Morgan |
Re: parsed entites, G. Ken Holman | Date | RE: XSLT and XPath Recommendations, Mark Hayes |
Month |