|
Subject: Re: [xsl] Big long xpath, almost there, but not quite From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 16 Apr 2009 14:38:18 -0400 |
I want to thank everybody for their help on this. Michael Kay, thaks for your help very much. I entered the following Xpath. It is getting there, but it still is not quite right.
//GenTable[count(entry[Emphasis[normalize-space(.) = 'Address Offset' and @type='bold'] or
Emphasis[normalize-space(.)='Physical Address' and @type='bold'] or
Emphasis[normalize-space(.)='Instance' and @type='bold'] or
Emphasis[normalize-space(.)='Description' and @type='bold'] or
Emphasis[normalize-space(.)='Type' and @type='bold'] ]) >= 4]
When i use this, as i would like at least 4 entry element that match the conditions above, hopefully 5, i would think this should do the trick and return the GenTable elements that contain them.
When i run it, however, i get no GenTable elements. When i remove the count() function, i get no GenTable elements. When i change the 4 9the minimum match value, to something smaller like 1) i get no GenTable elements. When i change the number 4 to 0, i get ALL the GenTable elements.
//GenTable[count(child::entry
[child::Emphasis[@type='bold'][.='Address Offset'] or
child::Emphasis[@type='bold'][.='Physical Address'] or
child::Emphasis[@type='bold'][.='Instance'] or
child::Emphasis[@type='bold'][.='Description'] or
child::Emphasis[@type='bold'][.='Type'] ] )
>= 4]//GenTable[count(entry
[Emphasis[@type='bold']
[(.='Address Offset') or
(.='Physical Address') or
(.='Instance') or
(.='Description') or
(.='Type') ] )
>= 4]Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Big long xpath, almost th, David Carlisle | Thread | [xsl] is there a way to extract the, Catherine Winston |
| Re: [xsl] Big long xpath, almost th, David Carlisle | Date | [xsl] is there a way to extract the, Catherine Winston |
| Month |