XML Processing instruction proposal

Subject: XML Processing instruction proposal
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Fri, 12 Feb 1999 21:49:45 -0500
Hi,

Now that DSSSL is integrated with a HTML browser, there is still an open
question: what convention do we use for the style sheet processing
instruction?

Here is my proposal submitted to you for discussion. this is concerning XML
rendered with DSSSL style sheets and it is expressed as a set of rules.

a) For XML documents, the processing instruction is following the last W3C
recommendations about style sheets linkage with XML documents.
b) The browser make this implicit assumption:
	- if not media property is mentioned it is by default the screen and the
native rendering formatting objects are HTML+CSS based.
Example: <?xml-stylesheet href="MyScript.dsl" type="text/dsssl"?>
	- If media="screen, html" then the browser is using the SGML transformation
part of the DSSSL engine and display the resultant SGML markups. This is
corresponding to the Jade's flag "-t sgml".
Example:<?xml-stylesheet href="MyScript.dsl" text="text/dsssl"
media="screen,html"?>
- if media="screen, rtf" then the browser display the result with a RTF
player associated to the rtf extension. For example, this could be word or
word viewer.
Example:<?xml-stylesheet href="MyScript.dsl" text="text/dsssl"
media="screen,rtf"?>

If a DOCTYPE declaration is present, then the document is parsed an
validated against the included doctype.
If no doctype declaration is included, then the document is parsed and not
validated.
The xml declaration is not mandatory (i.e. the <?xml version="1.0"?> )

Now about printing:

There can be several style sheet per xml document. The browser will
recognize the first one targeted to the screen as the style sheet to be used
for rendering in the browser window. if a style sheet with
media="screen,xxx" and media="print,xxxx" then, the former is used for
rendition on the screen and the latter for printing.
Example:
	<?xml version=1.0"?>
	<?xml-stylesheet href="myscript.dsl" type="text/dsssl"
media="screen,html"?>
	<?xml-stylesheet href="myscript.dsl" type="text/dsssl" media="print,rtf"?>
the first style sheet PI is used to render on the screen using HTML
transformation (i.e. Jade extensions or Tony HTML Macros). The latter is
used for printing and is selected by the "print" menu option.

Open issue, actually , W3C has no mechanism for catalog files, what do you
suggest? Because a XML document could be on the Web perhaps a PI solution
would be considered. As an example <?xml-catalog
href="http://www.mydomain.com/catalog";?> The catalog file format would be as
it is today in Jade and in conformance to the actual SGML industry standard.
Thus, the XML document would contain indirect references to external
resources as it is actually common practice with SGML documents.

Your comments are invited before I move to the implementation phase. An
other thread will target SGML specific issues.

Thank for your collaboration
Didier PH Martin
mailto:martind@xxxxxxxxxxxxx
http://www.netfolder.com


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread