[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: parametrized xsl

Subject: Re: parametrized xsl
From: Matt Sergeant <matt@xxxxxxxxxxxx>
Date: Mon, 22 May 2000 17:55:53 +0100 (BST)
Re: parametrized xsl
On 22 May 2000, Evgenii Bazarov wrote:

> 
> Hello,
> 
> Assume I got the xml like
> 
> <chapter no="c1">
> ...
> </chapter>
> <chapter no="c2">
> ...
> </chapter>
> ....
> 
> and I would like somehow to output only one chapter (e.g. "c4").
> The chapter number is based on the input from client.
> The xsl is more or less static, does it mean that I will
> have to deal with DOM representation
> of the XSL sheet, change it each time and run processor. Or
> maybe there is way to do this without touching Java?

You could use a processing engine that can do fragment processing. For
example AxKit's fragment plugin allows you to request
http://server/mydocument.xml?//chapter[@no='c1'] - the querystring is just
an XPath query. Of course you have to write your stylesheet to cope with
this form (i.e. don't expect a top-level <book> element), but with XSL
that's fairly simple.

I'm also aware that Zope can do fragment requests, and probably some Java
based solutions (products anyone?).

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.