Package org.forgerock.doc.maven.utils
Class KeepTogetherTransformer
java.lang.Object
org.apache.commons.io.DirectoryWalker<File>
org.forgerock.doc.maven.utils.XmlTransformer
org.forgerock.doc.maven.utils.KeepTogetherTransformer
Update XML files based on an XSL resource.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.io.DirectoryWalker
org.apache.commons.io.DirectoryWalker.CancelException
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.forgerock.doc.maven.utils.XmlTransformer
handleFile, update
Methods inherited from class org.apache.commons.io.DirectoryWalker
checkIfCancelled, filterDirectoryContents, handleCancelled, handleDirectory, handleDirectoryEnd, handleDirectoryStart, handleEnd, handleIsCancelled, handleRestricted, handleStart, walk
-
Constructor Details
-
KeepTogetherTransformer
public KeepTogetherTransformer()Construct an updater to match DocBook XML files.The files are updated in place.
The following example shows how this might be used in your code.
File xmlSourceDirectory = new File("/path/to/xml/files/"); // Update XML files. KeepTogetherTransformer xslt = new KeepTogetherTransformer(); return xslt.update(xmlSourceDirectory);
-