changing the value of attribute name
hi there, I am trying to do the following
<xsl:variable name ="attribute1"
select = "document($file2)//@ID"/>
<xsl:copy-of
select="document($file1)//*[@partid=$attribute1]"/>
It is a simple two step process.
1- select all attribues named 'ID' from file 1
2- copy all elements from file2 whose attribute named 'partid' matches any of the attributes of file1.
This is working fine. The only problem is that it is not generic...what I want is that instead of @ID I could do @xxxx and instead of @partid I could do @yyyy. Thus if xxxx is ID it becomes @ID etc
you see when I try to do the following i.e.
@$xxxx it generates error. Any idea
|