Hi,

I'm using XSLT processor in one of my pipeline. I'm having following block of code -

<p:processor name="oxf:xslt">
        <p:input name="data" href="">"#DataXML)"/>
...
...
        <xsl:variable name="NodeValue" select="/Root/ApplicationX/Request/@value"/>
        <xsl:if test="$NodeValue = ''">
                <xsl:variable name="NodeValue" select="/Root/ApplicationX/@value"/>
        </xsl:if>
...
</p:processor>

The intention is to create a variable with value either from the "Request" node or if that is 'null', from its parent node "ApplicationX". In case when "Request" node does not exists in input param, Orbeon throws error. Normally if the same code is written in a XSLT and parsed through a DOM parser, I get a 'null' value in the "NodeValue" variable. I'm not sure is it a XSLT or Orbeon related problem, but any help will be highly appreciated.

Thanks and Regards,
Rahul Agarwal
P & C Designer Infrastructure Team
CSC India
91-731-2570717 x460


----------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose.
----------------------------------------------------------------------------------------

Reply via email to