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


The ouput with multiple files is only possible with extension-function. For
example with Xalan:
http://xml.apache.org/xalan-j/extensionslib.html#redirect. See the
multiple-file example at the JavaDoc
http://xml.apache.org/xalan-j/apidocs/org/apache/xalan/lib/Redirect.html
too.

Regards,

Joerg

----- Original Message -----
From: "Saverio Perugini" <sperugin@csgrad.cs.vt.edu>
To: <xsl-list@lists.mulberrytech.com>
Sent: Tuesday, January 22, 2002 10:24 PM
Subject: [xsl] generating an HTML web hierarchy from XML using XSLT


> Hello,
>
> Is XSLT capable of transforming an XML file modeling [only] the schema of
a
> web site into to an actual HTML web hierarchy?
>
> 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).
>
>              1
>            / | \
>         a /  | e \ g
>         /    |    \
>       2      3    4
>     / | \    |   / \
>  b /  |c \d  |f /h  \i
>   /   |  |   |  |   |
>  |    |  |   |  |   |
> u1   u2  u3  u4 u5  u6
>
> (apologies for the ill-formed ascii site-map)
>
> If possible, I surmise that this task entails using XSLT to perfrom a
> depth-first search of the XML input graph and creating a new HTML file
> (and adding an <a href> to it for each child) every time a child
> is encountered.
>
> Is XSLT capable of creating multiple output files and manipulating and
> switching between them while processing? which this task seems to
> require.
>
> If possible, do you recommend I take the XSLT approach or use a technology
> like PHP or JSP?
>
> Many Thanks,
>
> Saverio Perugini


 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]