I have a situation where I need to modify an XML file depending on the content of another XML file.
Looks like XSLT is perfect for this situation but my problem is that I am not very comfortable with XSLT. If I do this with some Java API then I'll have more control over the processing, I guess - i.e. reading something from properties file etc.
XSLT is meant to apply a transformation to an XML file. I don't know that it is well suited for a problem that involves two XML input files.
I think I'd use an XML API (like DOM, XOM, etc.) for the file that is to be modified, and drive the process while reading the other XML file using SAX (or XPath, or whatever is appropriate for the problem).