Re: [xsl] Select all heading tags

Subject: Re: [xsl] Select all heading tags
From: "Graeme Kidd" <coolkidd3@xxxxxxxxxxx>
Date: Wed, 31 Dec 2008 09:13:42 -0000
Hi and thanks for your suggestions.
With your help I managed to get this:
"*[starts-with(local-name(),'h') and number(substring(local-name(),2)) ]"
Which as I understand it checks the first letter starts with an 'h' and is two letters long.
Am I correct?

From: "Michael Kay" <mike@xxxxxxxxxxxx>
Sent: Tuesday, December 30, 2008 9:49 AM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: [xsl] Select all heading tags

It could be:

select="*[starts-with(local-name(), 'h')]"

...if that's sufficient, if not maybe use matches() with a
suitable regex.

or perhaps select="*['h9'=translate(local-name(), '123456789', '999999999')]"

Michael Kay

Current Thread