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

Re: Is it legal to extend the xml-stylesheet DTD ?

Subject: Re: Is it legal to extend the xml-stylesheet DTD ?
From: Dan Morrison <dman@xxxxxxxx>
Date: Tue, 13 Jun 2000 04:27:45 +1200
dopey definition
David Carlisle wrote:
> 
> A DTD can make no statements at all about processing instructions
> DTDs neither constrain what goes inside the tag, nor where the tag may
> go.

Um? I can be forgiven my confusion then :(

> A DTD only ever allows a fixed set of attributes on any element.

THAT was the implication I couldn't see spelt out anywhere. Second
nature to some I'm sure, but a new syntax to me.

Thanks David, for this v. useful reply, not only the answer that I'm
doing it wrong (as I suspected) but a way to do it right... or at least
righter.

I now also understand why DOM PI accessors hand me an ugly string
instead of a name:value hash. Well not WHY exactly, but I understand
that's the way it's done.

The non-null namespace thing finally becomes clear and reminds me that
I'm at a point to start labelling the tags (yes, and attributes) I'm
making up, and now I have a pointer to do so.

It looks like I will cause less confusion if I use the namespace as in
your first suggestion. It'll show what I'm trying to do...


Although it doesn't help much. Cocoon is totally picky about that tag.

It won't allow arbitrary media types, It won't allow newlines as
whitespace... damn, it won't even allow a space in title!
... hang on!

Jeez! That was the issue all along!

Would you believe

<?xml-stylesheet type="text/xsl" media="explorer"
title="Developers&#32;Job&#32;Summary&#32;Slate"
href="../../xsl/slate.xsl" suffix=".html" ?>

(no extra spaces,no carriage returns) is correct for Cocoon?

There I was blaming myself for doing something dippy and it's just a
short-sighted parser.
I'll try the namespace thing anyway, to do it right.

> As for whether your example conforms with the spec, I can't easily tell.

Gawd. 
Glad to know my confusion is well-founded. 

Thanks David and Mike.

And now that's stopped keeping me up, goodnight!

.dan.

I'm still unhappy about the dopey definition of media types, but that
can wait for tomorrow. Perhaps I can create my own!


:=====================:====================:
: 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.