This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XPath question


Hi

I'm building a key for use in creating a Muenchian group. I've got as far as

<xsl:variable name="ListOfFieldNames"
select="//name[generate-id(.)=generate-id(key('FieldNames', .))]"/>

This, in conjunction with the rest of the stylesheet is working fine, but I
now want to change this statement so it will only select <name> nodes that
are children of a node <column>. I can't use select= "//column/name ....."
because name is not a direct child of <column> nor can I specify a direct
path because these <name> nodes appear at different levels in the nested
XML. I think I've got to use AxisNames somehow, but I'm just confusing
myself at the moment.

Regards
Roger

************************************************************************
Information in this message is confidential and may be privileged.  It is
for the exclusive use of the intended recipient(s).  If you are not the
intended recipient(s) please notify the sender and delete the message
immediately.  Unauthorised disclosure, distribution and copying of this
email is strictly prohibited.  The opinions expressed within this message
are those of the individual author.  Whilst Brakes takes reasonable steps to
scan this email it does not accept liability for any virus that may be
contained in it.

Brake Bros plc. Registered Office: Enterprise House, Eureka Business Park,
Ashford, Kent TN25 4AG.
 Registered in England & Wales number 2035315.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]