[xsl] Re: Xpath conditional

Subject: [xsl] Re: Xpath conditional
From: "Joseph L. Casale jcasale@xxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Jul 2017 17:40:38 -0000
-----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: [xsl] 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]

Current Thread