MrWeen
asked on
Add to XSL so it disregards certain lines on incoming xml
I have an XSL with a for-each select that ignores the text FRGT. I need to add that it should also ignore FRGH. How do I add it?
<xsl:for-each select="SorSalesOrderInvoi ceDocument s/SalesOrd erInvoiceD ocument/Me rchandise[ MStockCode /text() != 'FRGT']">
Thank you
<xsl:for-each select="SorSalesOrderInvoi
Thank you
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. This worked perfectly. Thank you for the additional tips as well.
welcome
- it is better to use not(... = ...) instead of ... !=... since equality in a predicate is a set compare
- you should not compare against the text() node because the text you are comparing against can be split in multiple text nodes
I usually compare against the normalized-space actually
<xsl:for-each select="SorSalesOrderInvoi