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

not simple (or simple? :-) xpath matching

Subject: not simple (or simple? :-) xpath matching
From: Daniel Bauke <bonkey@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jun 2001 18:46:53 +0200
c xpath matching
i'm again with xsl, don't offence, but i still not convinced
about such solution. isn't it only a fancy thing? more modern,
then useful? ;-) don't answer it, i didn't ask :-) -- i'm only a
bit frustrated with following example:

<document>
   <part id="a">
      <chapter id="1"/>
      <chapter id="2"/>
      <chapter id="3"/>
   </part>
   <part id="b">
      <chapter id="1"/>
      <chapter id="2"/>
      <chapter id="3"/>
   </part>
   <part id="c">
      <chapter id="1"/>
      <chapter id="2"/>
      <chapter id="3"/>
      <chapter id="10"/>
   </part>
</document>

and now i would like to show a chapter depends on parameters in a
url eg. '?part=c&chapter=4', but also to give the closest one, if
given is not applicable (to give part=c, chapter=3 in this
example, or to give part=c, chapter=10 if asked was chapter=12)
with simple information, that is not exact match. i also need to
provide default values if parameters are empty (for now i have
<xsl:choose> construction).

i'm using cocoon1, so if it's better tu use xsp -- just say it,
but i'm very interested how to manage with both using xsl only.

-- 
Daniel `bonkey' Bauke; http://www.oho.pl/~bonkey/; {happiness=bike&&unix;}

 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.