Feature #2313

RCP: X.X, add a new constructor to ApplyXsl2: ApplyXsl2(Source xsl)

Added by Serge Heiden almost 6 years ago. Updated over 4 years ago.

Status:New Start date:12/22/2017
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Import Spent time: -
Target version:TXM X.X

Description

In org.txm.importer.ApplyXsl2 class, allow applying an XSL from memory instead of from file path.

Solution

From Saxon Javadoc, the Processor object newXsltCompiler factory method calls an internal
compile method, the source of which can be :
  • DOMSource, allowing the stylesheet to be supplied as a DOM tree
  • Document wrappers for XOM, JDOM, or DOM4J trees
  • A Saxon NodeInfo, representing the root of a tree in any of the native tree formats supported by Saxon
  • An XdmNode representing the document node of the stylesheet module
  • StreamSource, allowing the stylesheet to be supplied as a URI, as a File, as an InputStream, or as a Reader
  • SAXSource, allowing the stylesheet to be supplied as a stream of SAX events from a SAX2-compliant XML parser (or any other source of SAX events)

History

#1 Updated by Sebastien Jacquot over 5 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#2 Updated by Matthieu Decorde over 4 years ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF