Project

Profile

Help

saxon:line-number() with SaxonServlet

Added by Anonymous over 18 years ago

Legacy ID: #3365112 Legacy Poster: Martin Beck (ma_beck)

Hello, is it possible, to use the saxon:line-number() together with SaxonServlet? (Perhaps with transformer.setParameter ?) Thanks for the help Martin


Replies (2)

RE: saxon:line-number() with SaxonServlet - Added by Anonymous over 18 years ago

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

At line 130, after TransformerFactory factory = TransformerFactory.newInstance(); do factory.setProperty(FeatureKeys.LINE_NUMBERING, Boolean.TRUE); This will set line numbering for all source documents; this may be quite expensive. If you want to apply line numbering selectively to some documents and not others, you can do it but it means setting up a Builder by hand.

RE: saxon:line-number() with SaxonServlet - Added by Anonymous over 18 years ago

Legacy ID: #3365665 Legacy Poster: Martin Beck (ma_beck)

Thanks a lot! With factorty.setProperty it doesn't work: But with factory.setAttriubte, it works fine. factory.setAttribute(net.sf.saxon.FeatureKeys.LINE_NUMBERING, Boolean.TRUE); Martin

    (1-2/2)

    Please register to reply