XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
trinkets trinketsSubject: Testing equality between nodes..... help!!
Author: trinkets trinkets
Date: 21 Feb 2007 12:39 PM
hey guys,
I was wondering if anyone could help me with this..I am new to XSLT and your help will be of great use..
I am trying to compare the values of nodes of two different documents.
Can anybody tell me how do I achieve this.
Example:
Person.xml
<ID>1</ID><Name>AAA</name>
<ID>2</ID><Name>BBB</Name>
<ID>3</ID><Name>CCC</Name>

Cars_Person
<Car>Mitsubishi</Car><PersonID>2</PersonID>
<Car>Honda</Car><PersonID>3</PersonID>
<Car>Ford</Car><PersonID>1</PersonID>

XSLT file should compare person.xml and cars_person and display id of the person and his car in xml format.
<ID>1</ID><Car>Ford</Car>
<ID>2</ID><Car>Mitsubishi</Car>
<ID>3</ID><Car>Honda</Car>

Help will really be appreciated

Thanx
Aditi

Postnext
Tony LavinioSubject: Testing equality between nodes..... help!!
Author: Tony Lavinio
Date: 21 Feb 2007 03:35 PM
General XSLT questions are better asked on the xsl-list mailing list.
This forum is for questions that are more specific to Stylus Studio.

Postnext
trinkets trinketsSubject: Testing equality between nodes..... help!!
Author: trinkets trinkets
Date: 27 Feb 2007 10:59 AM
Well I am using stylus studio for my xslt scripts..
nyways could you please tell me whether the function current() can be used in stylus studio? If yes then how do i use it?

Posttop
Tony LavinioSubject: Testing equality between nodes..... help!!
Author: Tony Lavinio
Date: 28 Feb 2007 03:34 PM
Yes current() is supported in all XSLT processors.
For usage, the XSLT specification explains it here:
http://www.w3.org/TR/xslt#function-current

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.