Tempore 14:16:06, die 02/15/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Jim Neff <jneff(_at_)blockvision(_dot_)com>:
<xsl:apply-templates select="$field_definitions/type_AA0/*[(plan_id
= current()/provider[1]/claim[1]/plan_id) or (not(plan_id) and
(not(field_no=../type_AA0/*[plan_id =
current()/provider[1]/claim[1]/plan_id]/field_no)))]">
Hi,
this Xpath will never return any node unless there are two 'type_AA0'
elements nested.
type_AA0/*[../type_AA0]
Try writing:
<xsl:apply-templates select="$field_definitions/type_AA0/*[(plan_id
= current()/provider[1]/claim[1]/plan_id) or (not(plan_id) and
(not(field_no=../*[plan_id =
current()/provider[1]/claim[1]/plan_id]/field_no)))]">
I'm not sure why you're doing a test on the 'field_no'.
Wouldn't this suffice?
<xsl:apply-templates select="$field_definitions/type_AA0/*[(plan_id
= current()/provider[1]/claim[1]/plan_id) or (not(plan_id) and
(not(../*[plan_id = current()/provider[1]/claim[1]/plan_id])))]">
P.S. You could also use keys to increase performance and make the
expression easier to understand...
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Spread the wiki (http://www.wikipedia.org)
--~------------------------------------------------------------------
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>
--~--