Jump to content

xsl:template match


Recommended Posts

Posted

<xsl:template match="//ALLINVENTORYENTRIES.LIST/BATCHALLOCATIONS.LIST[GODOWNNAME!=$destination]">gives me an error, what is the way of acheiving this?

Posted

I looked into the XPath tutorial and the XPath referance and there wasn't anything mentioned about variables. So having a "variable" may be the problem. Exactly what are you trying to achieve?In the meantime, let's analize, shall we? This XPath expression of yours should return the "BATCHALLOCATIONS.LIST" in every "ALLINVENTORYENTRIES.LIST" inside the document who have a GODOWNNAME different from... what's that? There should be a value or a string there I think... How do you define a variable in XML?You should show the XML(a shortened version that is) and point the thing you expect the XPath to select.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...