This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Web Front Page using XSLT
Matt,
The front page of 4xt (http://4xt.org/) is built by a XSLT
transformation reading information from 3 different RSS documents a XML
template file and the source document specified in the URI.
This could have been done using external entities, but (see a recent
thread), I have preferred to implement it using elements as links and
the XT document extension.
The way I do it is that, on the root template, I apply the templates on
the layout document (which is the same for all the pages on the site).
In this layout document, I have included at the places where I want to
include the dynamic stuff, elements such as <document-body/> or
<document-head/> which are used as call-backs to tell XSLT to apply
templates on the source document.
The source document have similar "call backs" asking to include the n
first elements from a RSS document...
Hope this helps
Eric
Matt Sergeant wrote:
>
> This is actually something I received from a friend of mine - I don't use
> XSLT, so I hope someone here can answer (the question was asked in
> reference to using AxKit, but it should apply to any XSLT transformation
> tool):
>
> One of the things that I've yet to figure out with XSLT is how it
> pulls together multiple XML instances, such as a front page of an ETP
> site. The front page is implemented as a "template" (an XSLT
> stylesheet, I'd expect in AxKit), within that it contains the "N most
> recent articles marked as being on the front-page". It's that last
> part that gives me loops, is that something that has to be done in
> Perl, the selection and "handing off" of current articles to the XSLT
> transform?
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list