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

Re: Associating DSSSL style sheets with documents

  • From: James Clark <jjc@j...>
  • To: xml-dev@i...
  • Date: Sat, 22 Mar 1997 19:57:54 +0700

Re: Associating DSSSL style sheets with documents
At 08:29 18/03/97 -0800, Jon Bosak wrote:

>| So allow the processing instructions.
>
>When we start downloading a DSSSL stylesheet from the server, I think
>that this is probably the method we'll try first.  Of all the
>alternatives, I like James Clark's last suggestion best for initial
>experimentation:
>
><?XML-stylesheet type="text/dsssl" href="foo.dsl"?>

I've just implemented this in Jade.  For the benefit of others implementing
DSSSL or XML here are the details:

- I recognize the PI anywhere in the prolog (so you can put it an external DTD).

- When there are multiple such PIs, I give the first precedence.

- I allow any of text/dsssl, text/x-dsssl, application/dsssl and
application/x-dsssl for the type. The type is case insensitive.

- I recognize <?stylesheet as well as <?xml-stylesheet.

- The contents of the PI are parsed like a start-tag. In particular the name
of the PI and the names of the attributes are case insensitive.

- The value of the HREF attribute can have the form foo.dsl#bar to indicate
the style-specification in foo.dsl with id bar.

- If the value of the HREF attribute is relative, then the storage object
that contains the PI is the base.

- After the removal of any #id part, the value of the HREF is treated like a
system identifier. So it can be an FSI as well as a URL.

- If there aren't any processing instructions I fall back to using the
document system identifier with  the extension changed to .dsl.

I've also implemented a simpler alternative:

 <?dsssl foo.dsl>

I also plan to implement something to allow catalogs to be used as an
alternative to PIs, but I haven't decided what yet.

James



xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.