|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.PackageXslLocator
public class PackageXslLocator
Contains tools for locating the XSL file need for the transformation.
| Constructor Summary | |
|---|---|
PackageXslLocator(java.lang.String xslPath)
Instantiates a new XSLLocator object for the directory of XSL files provided. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCorrespondingXslDirPath(java.lang.String xmlFileName)
Given an XML file name this method will return the path to directory containing the matching XSL file needed for the transform. |
java.lang.String |
getCorrespondingXslFilePath(java.lang.String xmlFileName)
Given an XML file name this method will return the path to the matching XSL file needed for the transform. |
java.lang.String |
getXslRoot()
Returns the path to the XSL root directory. |
java.lang.String |
makeDynamicMain(java.util.ArrayList<java.lang.String> params)
Builds a file named dynamic_main.xsl which will contain XSL:Inlude references to all XSL files in the provided directory and sub-directories. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageXslLocator(java.lang.String xslPath)
throws java.io.IOException
xslPath - The path to the root directory containing XSL files.
java.io.IOException| Method Detail |
|---|
public java.lang.String getCorrespondingXslFilePath(java.lang.String xmlFileName)
xmlFileName - The name of the XML file to be transformed.
public java.lang.String getCorrespondingXslDirPath(java.lang.String xmlFileName)
throws java.io.IOException
xmlFileName - The name of the XML file to be transformed.
java.io.IOExceptionpublic java.lang.String getXslRoot()
public java.lang.String makeDynamicMain(java.util.ArrayList<java.lang.String> params)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException
params - An ArrayList containing values to be added as XSL:Params to the main.xsl StyleSheet.
java.io.IOException
javax.xml.parsers.ParserConfigurationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||