Hi,

 

I am using XALAN C for my project where I have a requirement similar to the 
below description.

 

I am using XSLT to process some XML data (this XML data keeps modifying @ 
runtime) using xalanC lib, which I have linked it to my binary, in my program. 
I want the style sheet to intimate my program an error code through which it 
can take decision on what next to do. 

 

Does xalan C provides any mechanism or API through which style sheet can return 
error code/ error message, which my program can be able to understand?

 

To my awareness anything under xsl:message will be flushed to std output but I 
am not sure if those messages can be read by my program through xalan C.  

 

 

<!--A snippet of what my style sheet -->

<xsl:stylesheet .......>

<xsl:param name=a />

..

.

            <!-check if the input is getting violated or not-->

            <xsl:choose>

<xsl:when test="$a!=10">

                        <!-inform my program that this condition is violated. A 
failure error-code will do -->

</xsl:when>

<xsl:otherwise>

            <!-inform my program that the data satisfied the condition. Here 
SUCCESS Error code will do -->

</xsl:otherwise>

</xsl:choose>

.

.

</xsl:stylesheet>

 

 

 

 

Ps: pls pardon me if I resemble naïve as I am very new to xalan C. I still got 
to familiarize myself with this group and the language

 

 

Thanks & Regards,

Pnvd Sudhir 

 




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Reply via email to