xsl-list
[Top] [All Lists]

RE: Selecting the first sentence of a paragraph

2003-10-28 00:29:49
Hi,

the first paragraph if it starts with "Syntax." I also want 
to copy the
first sentence of the next paragraph (or the first sentence 
of the first
paragraph if there's no "Syntax" definition).

  <xsl:apply-templates select="p[not(starts-with(., 'Syntax'))][1]" 
mode="firstsentence"/>

Cheers,

Jarno


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



<Prev in Thread] Current Thread [Next in Thread>