cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunsberger, Peter" <Peter.Hunsber...@stjude.org>
Subject RE: DirectoryGenerator
Date Wed, 01 Oct 2003 20:56:59 GMT
Conal Tuohy <conalt@paradise.net.nz> wrote:

> Alfred Fuchs wrote:
> 
> > in my expamle I extract the title of a HTML page in this way: if 
> > <title> exist and <title> not empty, use it as title. otherwise use

> > the first <h1> etc... this is logic, simply done in a xslt, 
> but hoe to 
> > do this in a single xpath-query?
> 
> string(/html/head/title[normalize-space()]|/html/body//h1[1])

Except that will get both when both exists, which I don't think is what
he wanted...


Mime
View raw message