[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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?
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 http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Select all heading tags, Michael Kay | Thread | RE: [xsl] Select all heading tags, Michael Kay |
Re: [xsl] Re: ANN: A static code qu, Mukul Gandhi | Date | [xsl] Regex and apply xsl number, Byomokesh Sahoo |
Month |