Subject: Re: The XSL-List Digest V1 #181
From: Jonsm@xxxxxxx
Date: Wed, 14 Oct 1998 08:51:45 EDT
|
> Does an XSL stylesheet exist for mapping the XSL formatting objects
> (http://www.w3.org/TR/WD-xsl/FO namespace) into HTML objects
> (http://www.w3.org/TR/REC-html40 namespace)? It wouldn't be perfect since
the
> formatting models aren't exactly the same but at least it would be a place
to
> start.
Henry S. Thompson writes:
>>I'm working on a style-sheet which maps fo:... to XML+CSS, will
probably release it once there's a browser out there that can handle
the result :-( <<
Using the new MS VJ++ 6.0 it is very easy to write your own browser.
The same scheme can be used with any language and the COM
version of MSHTML.
Write a small app the initializes an empty HTML page. Then just use t
he DOM to create HTML objects as your parsing engine signals events.
For example to make a browser that supports the XSL formatting
objects... First build a stylesheet to map the FO objects to HTML.
The build a simple element factory on to the backend of James
Clark's XT to create the HTML objects.
Think of the MSHTML system as a formatting engine, not a browser.
If you want to add your own custom objects, write them as an
ActiveX or Javabean and then wrap them in an <OBJECT> tag.
Jon Smirl
jonsm@xxxxxxx
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|