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

Is it legal to extend the xml-stylesheet DTD ?

Subject: Is it legal to extend the xml-stylesheet DTD ?
From: Dan Morrison <dman@xxxxxxxx>
Date: Tue, 13 Jun 2000 00:24:57 +1200
stylesheet dtd
This may seem like going back to basics, but I've discovered I've missed
something very elemental in the scheme of things...

After studying section 18 and the references from the spec, (and then
discovering this 'feature' had a spec all to itself) I still can't make
out... is a syntax like this totally illegal or what?

<?xml-stylesheet 
	type="text/xsl" 
	media="html" 
	title="Developers Job Summary (Slate)" 
	href="../../xsl/slate.xsl" 
	alternate="yes" 
	suffix=".html" 
?>


Here I've created the attribute "suffix" which is not in the spec, and
used it for purposes of my own. 

<reference> http://www.w3.org/TR/xml-stylesheet/ </reference>

I'm used to unrecognised parameters being ignored by the interpreters,
and, coming from HTML, haven't been too concerned.

Reading the spec I can't see anywhere where the DTD specifically
excludes unnamed parameters. This is mainly because I'm not that clear
on DTD syntax. If it doesn't say, do I assume it's banned? This may be a
silly question, similar to one I heard 2 months ago (this list of things
that are NOT allowed is infinite) but... does it actually make it
illegal?

It says the tag can contain pseudo attributes (why pseudo?)
and then says
"The following pseudo attributes are defined".
In English, this reads as an inclusive grouping, not an exclusive one.
How does it read if you speak DTD natively?

It arises because I've finally got back to testing on Cocoon at it barfs
on that directive.
IE (updated of course) doesn't. This is indicative of nothing, I know.
;-)

I guess I can fudge it later in the document with a look-up table:

<SAVE-AS title="Developers Job Summary (Slate)" suffix=".html" />
<SAVE-AS title="Developers Job Summary (Print)" suffix=".txt" />

But I think that [expletive deleted].

So, word from the wise? Am I breaking something to add my own info tags?

.dan.

PS: Is there actually a definitive reference for the "media" types, or
is everyone still making it up as they go along?

:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
:  04 384 1472        :  04 495 8250       :
:  025 207 1140       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


 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.