InitialMode for Transformation
Added by Anonymous about 16 years ago
Legacy ID: #5341243 Legacy Poster: M Grimm (m_grimm)
Hi, I use the saxon8 to transform a stylesheet via command-line f.e. net.sf.saxon.Transform -im table-layout .... and so on... Now I want to do the same transformation in an application f.e. //some code ... Transformer trans = factory.newTransformer(stylesheet); trans.transform(input, output); //some code ... how can I set the im-Paramter ? Is there anything like trans.setParameter("im", "table-layout"); some example would be nice ... Thanks Markus
Replies (2)
RE: InitialMode for Transformation - Added by Anonymous about 16 years ago
Legacy ID: #5341297 Legacy Poster: Michael Kay (mhkay)
If you're using JAXP, down-cast the Transformer to net.sf.saxon.Controller, and then call the setInitialMode() method. If you're using s9api, call setInitialMode() on the XsltTransformer object. Michael Kay http://www.saxonica.com/
RE: InitialMode for Transformation - Added by Anonymous about 16 years ago
Legacy ID: #5341728 Legacy Poster: M Grimm (m_grimm)
That's it! Thanks a lot! Markus
Please register to reply