Project

Profile

Help

Selecting an Initial Template from Java

Added by Anonymous over 19 years ago

Legacy ID: #3079021 Legacy Poster: Curtis (cdfisher07)

I am learning how to use the JAXP to handle my transformations and wouldn't you know, the -it I had been using from the command line to select my templates with doesn't seem to have an equivalent JAXP interface that I can use. Can a template be designated under JAXP with Saxon? Thanks, Curtis Fisher


Replies (2)

RE: Selecting an Initial Template from Java - Added by Anonymous over 19 years ago

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

You have to cast the Transformer to net.sf.saxon.Controller and then call the setInitialTemplate() method. The argument is an expanded name in Clark notation, {uri}local. No doubt a future JAXP release will support XSLT 2.0 but for the moment I had to invent my own interface. Michael Kay Saxonica

RE: Selecting an Initial Template from Java - Added by Anonymous over 19 years ago

Legacy ID: #3079044 Legacy Poster: Curtis (cdfisher07)

Thanks Michael, it worked like a charm! Curtis

    (1-2/2)

    Please register to reply