Package org.hl7.fhir.utilities
Class XsltUtilities
java.lang.Object
org.hl7.fhir.utilities.XsltUtilities
Utilities for working with XML
This is separate from Utilities in order to avoid introducing a mandatory
dependency on Saxon for anyone using just the structures
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringsaxonTransform(String source, String xslt) static voidsaxonTransform(String xsltDir, String source, String xslt, String dest, URIResolver alt) static voidsaxonTransform(String xsltDir, String source, String xslt, String dest, URIResolver alt, Map<String, String> params) static byte[]saxonTransform(Map<String, byte[]> files, byte[] source, byte[] xslt) static voidstatic byte[]
-
Constructor Details
-
XsltUtilities
public XsltUtilities()
-
-
Method Details
-
saxonTransform
public static byte[] saxonTransform(Map<String, byte[]> files, byte[] source, byte[] xslt) throws TransformerException- Throws:
TransformerException
-
transform
public static byte[] transform(Map<String, byte[]> files, byte[] source, byte[] xslt) throws TransformerException- Throws:
TransformerException
-
saxonTransform
public static String saxonTransform(String source, String xslt) throws TransformerException, IOException - Throws:
TransformerExceptionIOException
-
saxonTransform
public static void saxonTransform(String xsltDir, String source, String xslt, String dest, URIResolver alt) throws TransformerException, IOException - Throws:
TransformerExceptionIOException
-
saxonTransform
public static void saxonTransform(String xsltDir, String source, String xslt, String dest, URIResolver alt, Map<String, String> params) throws TransformerException, IOException- Throws:
TransformerExceptionIOException
-
transform
public static void transform(String xsltDir, String source, String xslt, String dest, URIResolver alt) throws TransformerException, IOException - Throws:
TransformerExceptionIOException
-