I am using Saxon 9.
I find a table of interest by a cross reference and display the title:
Code:
<xsl:value-of select="$repoSubTree//pmtable/pmtitle[@Id eq $myIDRef]"/>
But, I need to do some work based on other parts of this table I just found
I tried:
Code:
<xsl:variable name="myPMTable">
<xsl:sequence select="$repoSubTree//pmtable[./pmtitle/@Id eq $myIDRef]"></xsl:sequence>
</xsl:variable>
To put the interesting table in a variable so I can do xpath statements to pull information from the table.
For example to get the title, I tried
Code:
<xsl:value-of select="$myPMTable/pmtitle"></xsl:value-of>
But I don't get anything. I also tried copy-of instead of sequence, nothing...
But this really doesn't seem like the right approach anyway. I don't need a another copy of my table, I've already got it in my $repoSubTree temporary tree. I just need a reference or pointer to it stored in a variable that I can use in subsequent xpath statements to find data stored in the table.
Is this sort of thing possible in XSLT?
Thanks,