[xsl] Re: not simple (or simple? :-) xpath matching

Subject: [xsl] Re: not simple (or simple? :-) xpath matching
From: Daniel Bauke <bonkey@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jun 2001 20:56:01 +0200
On Thursday (Jun  7), Dimitre Novatchev wrote:

> I dont find the answer above satisfactory.
well, me too, but only because i gave a wrong example, sorry.
i messed two different things, the one i presented i need in
another structure, which i plan to use later (and i'm sure i use
your suggestions :-). 

now, i want to have a default chapter, if given is incorrect and
print a short information, that one asked for non-existent. 
like that:

   <part name="intro">
      <chapter name="why"/>
      <chapter name="xslt"/>
      <chapter name="is"/>
      <chapter name="so"/>
      <chapter name="complicated"/>

and when i ask for '?part=intro&chapter=not, i'd like to
see the answer:

   Sorry, you asked for rather impossible chapter.
   No-one ever imagined that xslt could 'not' be complicated,
   So, read patiently 'intro' why it is :-)
   <chapter name="why"/>

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