Re: sorting, was: Version 3.0 now available!
Brought to you by:
bs_php,
nigelswinson
From: Philipp L. <le...@hi...> - 2002-05-14 18:54:18
|
From: "Peter Robins" <php...@pe...> > > > Imagine you want to build a table-of-contents for an XHTML page. > > > The most reasonable expression to me seems to be: > > > //h1 | //h2 | //h3 | //h4 | //h5 | //h6 > > > and then process this e.g. building a nested list. > > can you not use starts-with("h") function to return them all in one node-set? > Nope, as that might also return "html", "head", and "hr". (I could use a little for-loop and build the string, but why bother? XHTML is restricted to 6 levels of headings.) |