-----Original Message-----
From: Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx [mailto:xsl-list-
service@xxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, July 6, 2017 11:26 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Xpath conditional
> How can I generate a match expression for a template that selects
> the ComponentRef whose @Id equals the enclosing Component @Id
> which wraps a File element with a known @Source.
Oops, forgot about the parent selectors:
//ComponentRef[@Id =
//Component/File[@Source='$(var.MyVar)\load.aspx']/../@Id]
|