xsl-list
[Top] [All Lists]

Re: [xsl] Select all heading tags

2008-12-30 04:03:02
2008/12/30 Graeme Kidd <coolkidd3(_at_)hotmail(_dot_)com>:
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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