Project

Profile

Help

xslt 2.0 with jaxp

Added by Anonymous about 16 years ago

Legacy ID: #4995877 Legacy Poster: michele bortolato (zuper85)

Hi. could anyone post a simple java code showing a correct transformation using jaxp and a xslt 2.0? i have serious trouble with settings attributes, i can transform now only using s9api libraries. thanks


Replies (4)

Please register to reply

RE: xslt 2.0 with jaxp - Added by Anonymous about 16 years ago

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

There are examples in the TraxExamples.java program (samples/java directory, in the saxon-resources9.x download file). If you can't get something to work, it's usually best to post your code here, and say what the exact symptoms of failure were, then we can tell you what you did wrong.

RE: xslt 2.0 with jaxp - Added by Anonymous about 16 years ago

Legacy ID: #4996073 Legacy Poster: michele bortolato (zuper85)

thanks but what do i have to add to my code to permti xsl 2.0 transformations?

RE: xslt 2.0 with jaxp - Added by Anonymous about 16 years ago

Legacy ID: #4996144 Legacy Poster: michele bortolato (zuper85)

ok it was my mistake! thanks

RE: xslt 2.0 with jaxp - Added by Anonymous about 16 years ago

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

So long as your call on TransformerFactory.newInstance() returns an XSLT 2.0 processor, you will be able to run XSLT 2.0 transformations. To make sure Saxon is loaded, set the system property javax.xml.transform.TransformerFactory to net.sf.saxon.TransformerFactoryImpl If you're having problems, PLEASE SHOW WHAT THEY ARE. Asking how to do it right requires a very long answer if we don't know what you're doing wrong.

    (1-4/4)

    Please register to reply