Subject: Re: [xsl] Can this all fit into one Xpath expression? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 14 Apr 2009 15:07:31 -0400 |
I have a structure with conditions something like this:
//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Address Offset'] and Emphasis[@type='bold']
//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Physical Address'] and Emphasis[@type='bold']
//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Instance'] and Emphasis[@type='bold']
//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Description'] and Emphasis[@type='bold']
//GenTable/table/tgroup/tbody/row/entry[Emphasis = 'Type'] and Emphasis[@type='bold']
If a GenTable element has four or the five entry elements, that match these conditions, i want to set GenTable[@role='Register'] and GenTable[@columns='1'].
Can this be squeezed into one hairy Xpath expression.
//GenTable/table/tgroup/tbody/row/entry[Emphasis[ . = ( 'Address Offset', 'Physical Address', 'Instance', 'Description', 'Type' ) ] [@type='bold'] ]
-- XSLT/XSL-FO/XQuery training in Los Angeles (New dates!) 2009-06-08 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Can this all fit into one Xpa, russurquhart1 | Thread | RE: [xsl] Can this all fit into one, Michael Kay |
[xsl] Can this all fit into one Xpa, russurquhart1 | Date | RE: [xsl] Can this all fit into one, Michael Kay |
Month |