I am trying to convert this xsl statement,because on windows server 2008 the selectSingleNode is not supported and the if statement I wana writet it in a more supported way on WS2008.
So with the below code I get the following error:
"ABC" is not a valid XSLT or XPath function
Currrent Code to be converted:
<xsl:if expr='ContractAddress(selectSingleNode("AddressNo").text,selectSingleNode("/Object/Contract/ConAddrNo").text)'>...</xsl:if>
so please help on how to convet the above code I am using the following namespace:
<xsl:stylesheet version="1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" xmlns:msxsl = "urn:schemas-microsoft-com:xslt" xmlns:vbs = "urn:schemas-sqlxml-org:vbs" xml:space="preserve">
Example XML:
<Address>
<ConAddrNo>123</ConAddrNo>
</Address> ... <Contract>
<AddressNo>123</AddressNo>
</Contract>
Current XSLT:
<xsl:if expr='ContractAddress(selectSingleNode("AddressNo").text, selectSingleNode("/Object/Contract/ConAddrNo").text)'>
<xsl:eval> FormatAddress(selectSingleNode("Line1").text, selectSingleNode("Line2").text, selectSingleNode("Line3").text, selectSingleNode("Line4").text, selectSingleNode("PostalCode").text) </xsl:eval>
</xsl:if>