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

Re: Which style first ? Re: Associating DSSSL style sheets with docume

  • From: "ksaito@f..." <ksaito@f...>
  • To: xml-dev@i...
  • Date: Fri, 07 Mar 1997 20:23:30 +0900

css entity

 We have an idea about association too. Now we are implementing
it in our DSSSL System and testing.

 Please suggest about this idea if you can. Following is
description.


-- Part.1 Basic concept

 This idea is declear style-sheet as external entity and never
refer it in SGML document. And gives that entity notation which
indicate style-sheet.

ex) In SGML document prolog.
<!ENTITY style-sheet SYSTEM "style-sheet.dsl" CDATA dsssl>
<!NOTATION dsssl PUBLIC
  "ISO 10179-1996//NOTATION
   Document Style Semantics and Specification Language//EN">

 In this exapmle, style-sheet is described with DSSSL notation
and that is identified by sytem identifier "style-sheet.dsl".
( this DSSSL notation identifier is virtual).

 Application recognizes style-sheet by following steps.
 1) checks declared entieies.
 2) checks notion of these external entities.
 3) if some entities have notation which means DSSSL style-sheet,
    then that application uses these external entity as style-sheet.

 That SGML document don't refer style-sheet external entities.
Therefore, old application never expand content of style-sheet
in document. I think, this way will not violate SGML standard.


-- Part.2 Associate multiple style-sheets.

 To relate more than one style-sheet to single SGML document,
prepare these style-sheets as external entities respectively.
And declares these entities as following example.

ex.1)
<!ENTITY online-style-sheet SYSTEM "online-style-sheet.dsl" NDATA dsssl>
<!ENTITY print-style-sheet SYSTEM "print-style-sheet.dsl" NDATA dsssl>

 About DSSSL, to decide which style-sheet is used, application refers
"desc" attribute of transformation-specification or style-specification
element.
 Otherwise entity attribute is useful for selecting style-sheet.

ex.2)
<!ENTITY online-style-sheet SYSTEM "online-style-sheet.dsl" NDATA dsssl
	[style-sheet-use="online"]>
<!ENTITY print-style-sheet SYSTEM "print-style-sheet.dsl" NDATA dsssl
	[style-sheet-use="print"]>

Since DSSSL can create multiple style-sheet as single file, DSSSL
does not need this method. But this is useful for other style-sheet
language.


-- Part.3  Way of associate different language style-sheets.

 To relate more than one style-sheets which were described with
different notations to single document, prepare these style-sheets
as external entities respectively. And declare these as following
example.

ex)
<!ENTITY dsssl-style-sheet SYSTEM "style-sheet.dsl" NDATA dsssl>
<!NOTATION dsssl PUBLIC
  "ISO 10179-1996//NOTATION
   Document Style Semantics and Specification Language//EN">
<!ENTITY css-style-sheet SYSTEM "style-sheet.css" NDATA css>
<!NOTATION css PUBLIC
   "+//W3C//NOTATION Cascading Style Sheet//EN">

In this example, to decide which style-sheet is used, application
refers entities's notations. If the application supports DSSSL only,
then use "style-sheet.dsl", otherwise supports CSS only then use
"style-sheet.css". Application can select style-sheet by its notation.

---
KAZUMI Saito

Fujitsu Laboratories Ltd.
Information Service Architecture Lab.

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.