xsl-list
[Top] [All Lists]

[xsl] Can this all fit into one Xpath expression?

2009-04-14 15:03:37



Hi,

I have a structure with conditions something like this:

//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Address Offset'] and 
Emphasis[(_at_)type='bold']

//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Physical Address'] and 
Emphasis[(_at_)type='bold']

//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Instance'] and 
Emphasis[(_at_)type='bold']

//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Description'] and 
Emphasis[(_at_)type='bold']

//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Type'] and 
Emphasis[(_at_)type='bold']

If a GenTable element has four or the five entry elements, that match these 
conditions, i want to set GenTable[(_at_)role='Register'] and 
GenTable[(_at_)columns='1'].

Can this be squeezed into one hairy Xpath expression.

Sorry still trying to get my head around multiple predicates.

Any help is greatly appreciated!

Thanks,

Russ

--~------------------------------------------------------------------
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>