View Single Post
  #2 (permalink)  
Old March 3rd, 2008, 12:58 PM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Your problem does not appear to be the logic of your XPath condition at all, but in the variables you have declared at the start. Each needs to be wrapped in single quotes, as they are strings, not XML elements.

  <xsl:param name="searchfield" select="'Field2'"/>
  <xsl:param name="searchtext" select="'entry'"/>
  <xsl:param name="sortbyfield" select="'Field1'"/>
  <xsl:param name="sortorder" select="'descending'"/>


/- Sam Judson : Wrox Technical Editor -/
Reply With Quote