Jump to content

xsl:template match


Guest itc

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...