[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Select all heading tags
> 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? Not quite, though your test is probably good enough for your purposes. It tests that (a) the name starts with "h", and (b) the part of the name after the "h" is a number, and is not zero. So it will match "h1", "h2", "h937", "h3.14159", but not "h", "h0", or "h1x". Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|