Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSLT Processing using XPath

 
Guruprasad Kateel
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to transform one xml document to another xml depending on particular values using XSL transformation( I am using XALAN transformer).
My XML Doc:

---------------------
Now i need to get a RESPONSE node along with the child nodes depending on the values of the attributes 'ID' and 'KEY' of SEGMENTQUERY node.
My XSL File:

-----
In the above xsl, if i am just checking the id parameter and its working fine, But i am not able to add check condition for 'KEY' parameter.
Please help me.
Thanks in advance,
Prasad
[code tag added and smiles disabled to improve readability - M.I.]
[ July 10, 2003: Message edited by: Mapraputa Is ]
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<xsl:copy-of select="ARCXML/SEGMENTQUERY[@ID=$id and @KEY=$key]/*" />
seems working...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic