com.adobe.idml.samples
Class PageBuilder

java.lang.Object
  extended by com.adobe.idml.samples.PageBuilder

public class PageBuilder
extends java.lang.Object

PageBuilder builds an IDML package from a set of XSL style sheets and XML input data. It pulls data from the XML input file, and calls XSLT transformations on an XSL file it generates from the files in the XSL directory. The XSL files are responsible for producing package files using the instruction.


Constructor Summary
PageBuilder(java.lang.String xslPath)
          Sets the XSL Path.
 
Method Summary
 void expand(java.lang.String inputXmlPath, java.lang.String outputIdmlFile)
          Creates a package from the input XML file specified.
 java.lang.String getXSLPath()
          Returns the XSL path provided to the class.
static void main(java.lang.String[] args)
          Initializes a PageBuilder instance and sets the default XSL directory used for transforms.
 void setXSLPath(java.lang.String xslPath)
          Sets the XSL path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageBuilder

public PageBuilder(java.lang.String xslPath)
Sets the XSL Path.

Parameters:
xslPath - A Path to the directory containing XSL files.
Method Detail

getXSLPath

public java.lang.String getXSLPath()
Returns the XSL path provided to the class.

Returns:
The path to the directory containing the XSL files.

setXSLPath

public void setXSLPath(java.lang.String xslPath)
Sets the XSL path.

Parameters:
xslPath - The new path to the directory containing XSL files.

expand

public void expand(java.lang.String inputXmlPath,
                   java.lang.String outputIdmlFile)
            throws javax.xml.transform.TransformerFactoryConfigurationError,
                   java.io.IOException,
                   javax.xml.parsers.ParserConfigurationException,
                   javax.xml.transform.TransformerException
Creates a package from the input XML file specified.

Parameters:
inputXmlPath - The XML value containing the values that will be used to create the new IDML package file.
outputIdmlFile - The IDML package to be created.
Throws:
javax.xml.transform.TransformerFactoryConfigurationError
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException

main

public static void main(java.lang.String[] args)
Initializes a PageBuilder instance and sets the default XSL directory used for transforms.

Parameters:
args - Parameters passed by the console application.
Throws:
java.io.IOException


Copyright © 2008 Adobe Systems Incorporated. All Rights Reserved.