Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » The use of XPath(construct template-match xpath with the template parameter)
The use of XPath [message #1704949] Tue, 11 August 2015 05:18 Go to next message
Salwa Alzahmi is currently offline Salwa AlzahmiFriend
Messages: 37
Registered: June 2013
Member
Hi,


I am trying to pass parameters to the xsl template, where I can use it to set the template match patten XPath.
here is what I have :

 <xsl:param  name="proName"  select="passed-in-by-the-caller"/>
  <xsl:param  name="proValue"  select="passed-in-by-the-caller"/>
   <xsl:param  name="targetEle"  select="passed-in-by-the-caller"/>

<xsl:template match="//property[@name=$proName]">


In the example, I am trying to pass 'targetEle' as param to the matchig pattern, I tried something like this , but it didnt seem to work:

<xsl:template match="//$targetEle[@name=$proName]">



any help!


Thanks
Re: The use of XPath [message #1705468 is a reply to message #1704949] Sun, 16 August 2015 11:02 Go to previous message
Salwa Alzahmi is currently offline Salwa AlzahmiFriend
Messages: 37
Registered: June 2013
Member
any help about that above .
If the question should be asked in another forum , please advice me.

thanks
Previous Topic:[EMF Forms] order of getter/setter calls
Next Topic:[EMFForms][CDO] ENumLiterals represented by combobox are not stored correctly
Goto Forum:
  


Current Time: Thu May 28 02:23:14 GMT 2020

Powered by FUDForum. Page generated in 0.01474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top