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: generating an HTML web hierarchy from XML using XSLT





>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


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