File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes xsl match and select attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl match and select attribute" Watch "xsl match and select attribute" New topic

xsl match and select attribute

Andrew Cane
Ranch Hand

Joined: Aug 07, 2013
Posts: 91

correct me if I'm wrong, but the match attribute in template can reach to <c> tag without specifying the steps:
match="c", and it will affect all <c> tags no matter how deep the locations are through out the document

while the select attribute in apply-templates must specify the steps to reach <c> like so (assuming match="/"):

is this correct?
thanks you
I agree. Here's the link:
subject: xsl match and select attribute
It's not a secret anymore!