Someone at another forum already solved my question, I post it here so it could help others
I had this
select="row[$filterKey=$filterValue]"
but the correct way is this one
select="row[*[name()=$filterKey and text()=$filterValue]]
Thanks for the time to answer this...
I partially found a solution, the thing is that you cannot put a filter in the match sentence, but you can put it on the apply template part
like this
<xsl:template match="records">
<div>
<xsl:apply-templates select="record[firstname=$filterValue]">
</xsl:apply-templates>...
This could help, I am also a newbie but I notticed this in your code:
1.-There are no ; at the end of the javascript code, you should put an ; at the end of each sentence
2.- delete the last ; from the xml.load("URL here";), change it to xml.load("URL here"); as this...
Is it possible to pass parameters to a match Xpath (is this an Xpath sentence?) sentence?
I am using XML data Islands on IE 6.0, I want to apply the following XSLT to the XML.
by the way, the javascript functions are from an article written by Kurt Cagle, XML Pro
at this link...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.