Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Finding out the existence of a node

From: "Kalyan Kumar Mudumbai" <kalyan_tech@-------------->
To:
Date: 7/1/2002 2:55:00 AM
Hi,

    is there a way to find out if a particular node exists in an 
xml file or not?

For example, I have an xml file which has a node <MyName>, how can 
I know if the same node is also present in another xml file which 
the stylesheet is processing?



<xsl:variable name="node_name" select="local-name()"/>
gives me the name of the node into the variable node_name.

<xsl:param name="source" select="./Doc.xml"/>
gives selects the path of Doc.xml into $source

Now how do I know whether $node_name is present in Doc.xml or not? 
Please help me out.



Thanks,



Kalyan
_________________________________________________________
There is always a better job for you at Monsterindia.com.
Go now http://monsterindia.com/rediffin/


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent