org.foray.demo.embed
Class DemoXML2FO

java.lang.Object
  extended by org.foray.demo.embed.EmbedDemo
      extended by org.foray.demo.embed.DemoXML2FO

public class DemoXML2FO
extends EmbedDemo

This class demonstrates the conversion of an XML file to an XSL-FO file using JAXP (XSLT).


Constructor Summary
DemoXML2FO()
           
 
Method Summary
 void convertXML2FO(File xml, File xslt, File fo)
          Demonstration converting XML to FO.
static void main(String[] args)
          Command-line interface for this class.
 
Methods inherited from class org.foray.demo.embed.EmbedDemo
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoXML2FO

public DemoXML2FO()
Method Detail

convertXML2FO

public void convertXML2FO(File xml,
                          File xslt,
                          File fo)
                   throws IOException,
                          TransformerException
Demonstration converting XML to FO.

Parameters:
xml - The semantic XML input.
xslt - The XSLT stylesheet.
fo - The FO file output.
Throws:
IOException - For I/O errors.
TransformerException - For errors during XSLT transformation.

main

public static void main(String[] args)
Command-line interface for this class.

Parameters:
args - The command-line arguments. None are currently supported.


Copyright © 2017. All rights reserved.