I know it is so simple to some of you.
All I want to do is look through an xml doc and print out the xml entries that contain specific string fragments. The string value is passed to the xslt and the xml doc is looked at and if a word begins with the string expression it displays it.
What I have errors with the following message...
MM_XSLTransform error: Error while transforming: 'matches()' is an unknown XSLT function.
here is my code sample...
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="html" encoding="utf-8"/>
<xsl:param name="qString" />
<xsl:template match="/">
<xsl:for-each select="Products/Product">
<xsl:if test="matches('/OldPN','$qString')">
<xsl:value-of select="OldPN" /> - <xsl:value-of select="OldName" />
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Any ideas? Would so appreciate help on this!