File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xslt and xpath for simple file process

 
Elizabeth King
Ranch Hand
Posts: 191
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone post a xslt that will do nothing on the
original document? And a xslt that will extract the
text contents of a xml file? And a xpath that retruns
all the nodes of a xml doc?
 
Jane Somerfield
Ranch Hand
Posts: 193
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Elizabeth King:

And a xpath that retruns
all the nodes of a xml doc?


//* returns all the element nodes under and including the root node.
//@* returns all the attribute nodes under and including the root node.
[ September 12, 2005: Message edited by: Jane Somerfield ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic