Project

Profile

Help

Saxon Include Path Command-line Option

Added by Anonymous about 19 years ago

Legacy ID: #3034110 Legacy Poster: Greg Mellinger (mellingg)

Does Saxon include a command-line option for 'include paths' for resolving includes and imports within XSLT stylesheets? For example, in Perl, '-I', allows me to specify search paths for resolving 'use' statements that reference Perl modules.


Replies (4)

Please register to reply

RE: Saxon Include Path Command-line Option - Added by Anonymous about 19 years ago

Legacy ID: #3034839 Legacy Poster: Michael Kay (mhkay)

You could specify a URIResolver using the -r option, and you could pass the base URI for resolving includes to your URIResolver as a system property. You could write your URIResolver as a modification (perhaps a subclass) of the StandardURIResolver, changing the way the baseURI argument to the resolve() method is handled. Michael Kay Saxonica

RE: Saxon Include Path Command-line Option - Added by Anonymous about 19 years ago

Legacy ID: #3034981 Legacy Poster: Greg Mellinger (mellingg)

Thanks for your response Mike. This certainly seems like a viable solution. However, since I'm currently not a Java programmer, have you written any Java books that you could refer me to? I currently have your XSLT and XPATH 2.0 books and thoroughly like your writing style and the way the information is presented. Based on what I am developing probably 75% of my code will be reuseable with the other 25% specific to each customer's product. This appears to be the direction that I will need to go to get the most reuse out of my code while trying to minimize the code size.

RE: Saxon Include Path Command-line Option - Added by Anonymous about 19 years ago

Legacy ID: #3035020 Legacy Poster: Michael Kay (mhkay)

For processing XML with Java, Elliotte Rusty Harold's "Processing XML with Java" is hard to beat. Michael Kay Saxonica Limited

RE: Saxon Include Path Command-line Option - Added by Anonymous about 19 years ago

Legacy ID: #3035056 Legacy Poster: Greg Mellinger (mellingg)

Thanks Mike! Looks like another book for the 'ever growing' library... :-)

    (1-4/4)

    Please register to reply