• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XPath expression as global parameter

 
Gobiraj Vadivelrajan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an input XML

Associated XSL


I'm using Xalan for transformation

I understand why I get the above output
I like to know how I can get the following output
The catalog element is selected instead of the
"catalog" string.
Is this possible?

Thanks
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try -
 
Gobiraj Vadivelrajan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dan for ur reply.
It worked when I tried

But if I give an xpath expression then it doesn't work.

Actually I wanted to give multiple xpath expressions from the command line.
I think I need a java program to do this.
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic