I have an XSL file that filters a recordset to send back to the calling code. The page works fine, but I can't get it to do a 'LIKE' search or 'wildcard' search. Here is the active line that I am trying to change:
<xsl:for-each select="root/pd_peopleview[@fname=($fname)]">
I am trying to return all the names that begin with "S" in the 'fname' field if the variable 'fname' has a value of "S". Does anyone know how to add a wildcard character or a 'LIKE' search in this line? The whole code from the page follows in case it is helpful.
Scott
------------------------------------------------------
<xsl:template match="/">
<root>
<xsl:for-each select="root/pd_peopleview[@fname=($fname)]" >
<xsl:sort select="@lname" order="ascending" />
<pd_peopleview>
<xsl:for-each select="@*" >
<xsl:attribute name='{name()}'> <xsl:value-of select="."/></xsl:attribute>
</xsl:for-each>
</pd_peopleview>
</xsl:for-each>
</root>
</xsl:template>
<xsl:for-each select="root/pd_peopleview[@fname=($fname)]">
I am trying to return all the names that begin with "S" in the 'fname' field if the variable 'fname' has a value of "S". Does anyone know how to add a wildcard character or a 'LIKE' search in this line? The whole code from the page follows in case it is helpful.
Scott
------------------------------------------------------
<xsl:template match="/">
<root>
<xsl:for-each select="root/pd_peopleview[@fname=($fname)]" >
<xsl:sort select="@lname" order="ascending" />
<pd_peopleview>
<xsl:for-each select="@*" >
<xsl:attribute name='{name()}'> <xsl:value-of select="."/></xsl:attribute>
</xsl:for-each>
</pd_peopleview>
</xsl:for-each>
</root>
</xsl:template>