Subject: Re: [xsl] Select all heading tags From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Tue, 30 Dec 2008 09:02:35 +0000 |
2008/12/30 Graeme Kidd <coolkidd3@xxxxxxxxxxx>: > Hi > > I was wondering how I would be able to pick up headings from <sect> when I > don't know what heading numbers will be used. What would be nice is to > simply be able to say "select the tag which starts with a 'h' and ends in a > number". Any idea how you would do this? > > An example that obviously wont work is this: > XSL > ... > <xsl:apply-templates select="h*" /> > ... It could be: select="*[starts-with(local-name(), 'h')]" ...if that's sufficient, if not maybe use matches() with a suitable regex. cheers -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Select all heading tags, Graeme Kidd | Thread | RE: [xsl] Select all heading tags, Michael Kay |
Re: [xsl] Re: ANN: A static code qu, Mukul Gandhi | Date | RE: [xsl] Select all heading tags, Michael Kay |
Month |