Project

Profile

Help

saxon:line-number() - Saxon API

Added by Anonymous about 16 years ago

Legacy ID: #5358357 Legacy Poster: pvallone (pvallone)

Hi, Running Saxon from the command line I could use -l for: saxon:line-number() How do I enable this when using the Java API 9.1.0.2? Thanks, Phil


Replies (2)

RE: saxon:line-number() - Saxon API - Added by Anonymous about 16 years ago

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

To do it globally the simplest way is Configuration.setLineNumbering(true) or TransformerFactory.setAttribute("http://saxon.sf.net/feature/linenumbering", Boolean.TRUE); It can also be done at a per-document level, for example using the s9api DocumentBuilder.setLineNumbering() method. Michael Kay http://www.saxonica.com/

RE: saxon:line-number() - Saxon API - Added by Anonymous about 16 years ago

Legacy ID: #5362394 Legacy Poster: pvallone (pvallone)

Thank you Michael.

    (1-2/2)

    Please register to reply