Exact Match problem
Here's the XML:
<repository>
<so>
<type>doc</type>
<author>Melnik, Grigori</author>
<author>Read, Kristopher</author>
<title>Customer Collaboration in DSDM Projects</title>
...
</so>
</repository>
Here's the XSL:
<xsl:template match = "/doc[.=$repository/so/type/.]">
<repository>
<xsl:for-each select="repository/so">
<p/><xsl:copy-of select="author/."/>
<br/><b><xsl:value-of select = "title"/></b>
<p/>
</xsl:for-each>
</repository>
</xsl:template>
And I'm trying to find all elements which only have the type "doc" which is an attempt at an exact match. However, it either brings back everything, or nothing. I'm not sure if I'm using the <xsl:template match = ".."> properly.
Help ASAP would be much appreciated.
-Demi.
|