Peter Donald wrote: > I suspect document() must have been defined in XSLT spec though I don't > have it handy. Basically it loads a document from a url and from memory > returns reference to top level nodeset. (or it may be document root - can't > remember).
You were right on the money on this one! I was looking in the wrong spec. Section 12.1 Multiple Source Documents of the XSLT spec nicely explains this function, even to the idiots like me :-( > WHich in your case would load the menu data file and apply transforms - > which is exactly what you after I think ;) Thanks! It works perfectly. Anyway, the Ant patch itself might be useful to someone else doing something totally different, don't you think? Actually, I have developed an improved version of the patch (throws BuildException if valueFile isn't found instead of returning an empty string) and I'll also add a few words to the documentation and submit another patch. Bojan
