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

XSL & DTD question

Subject: XSL & DTD question
From: "Paul Bell" <pbell@xxxxxxxxxxxx>
Date: Tue, 15 Feb 2000 15:55:43 -0500
globals.dtd
Hi all,
 
Doubtless someone has grappled with this before:
 
I have a bunch of 'constant' entities defined in file globals.dtd.  I can pull these constants into my XML files via something like:

<!DOCTYPE MYDOC SYSTEM "my.dtd" [

<!ENTITY % globals SYSTEM "globals.dtd">

%globals;

]>

<MYDOC>

</MYDOC>

and so on. 

But if I want to make the same set of constant entities available to an XSL file (still XML, right?), I run into a variety of problems, the first of which is that the first element of my XSL file is likely to be <xsl:stylesheet>.  This element does not agree with the document name 'MYDOC'. 

So, I reasoned, perhaps I can make the DOCTYPE statement refer to a public identifier for the DTD that defines the XSL vocabulary.  Alas, I can find no such public identifier.  More to the point, this seems like more work than should be necessary.

In fine, how would you handle this?  All I'm really trying to do is give my XSL files access to the set of shared constants that reside in globals.dtd.

Thanks in advance.

Cordially,

Paul

 

 

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.