This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Html to XSL
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Jul 2002 11:22:52 +0100
- Subject: RE: [xsl] Html to XSL
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I want to generate XSL files dynamically. I mean instead of
> writing it in any XML Editor, I want to create it
> automatically from either HTML or Word file which my designer
> makes.
You can convert an XHTML file into a trivial stylesheet by adding
xsl:version="1.0" (and a namespace declaration) to the outermost <html>
element.
Then you can add logic to the parts of the document that are variable,
to fetch information from the source XML file, by inserting instructions
such as <xsl:value-of>. I refer to this in XSLT Programmer's Reference
as a "fill in the blanks" stylesheet.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list