[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: generating an HTML web hierarchy from XML using XS
>Is XSLT capable of transforming an XML file modeling [only] the schema of a >web site into to an actual HTML web hierarchy? yeah, using extensions for xslt 1.0, such as saxon:output for saxon and redirect:write for xalan, if you have saxon you can also set your xslt version to be 1.1 and use xsl:document, if you have saxon 7 you can set version to be 2.0, and use xsl:result-document - the current xslt 2.0 working draft for how to output multiple docs :) however saxon 7 is considered experimental so you probably wouldn't want it in production. >i.e. Can XSLT transform the following XML ><site_Schema> > <a> > <b>http://url1</b> > <c>http://url2</c> > <d>http://url3</d> > </a> > <e> > <f>http://url4</f> > </e> > <g> > <h>http://url5</h> > <i>http://url6</i> > </g> ></site_Schema> >into the following web site where XML element names correspond to >link labels (edges or <a href's> in the web hierarchy). actually it was sort of difficult for me to understand the site map, what you want is that every element in your document outputs a html document, with links to any documents created from children elements being found in their parents, and in elements that have textnodes you want a link generated in the document to http address described in the textnode? that's possible. >Is XSLT capable of creating multiple output files and manipulating and >switching between them while processing? which this task seems to >require. no you don't switch between them while processing, I don't see the task requiring that you would either. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|