This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Html to XSL


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]