
com.nwalsh.saxon.TextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docbook-xsl-saxon Show documentation
Show all versions of docbook-xsl-saxon Show documentation
These are Java extensions for use with the DocBook XML stylesheets and the Saxon XSLT engine.
The newest version!
// TextFactory - Saxon extension element factory
package com.nwalsh.saxon;
import com.icl.saxon.style.ExtensionElementFactory;
/**
* Saxon extension element factory
*
*
$Id: TextFactory.java 8098 2008-08-03 13:27:07Z mzjn $
*
* Copyright (C) 2000 Norman Walsh.
*
* This class provides a
* Saxon
* extension element factory for the Text extension element
* family.
*
* Change Log:
*
* - 1.0
* Initial release.
*
*
* @author Norman Walsh
* [email protected]
*
* @version $Id: TextFactory.java 8098 2008-08-03 13:27:07Z mzjn $
*
* @see Text
*
*/
public class TextFactory implements ExtensionElementFactory {
/**
* Constructor for TextFactory
*
* Does nothing.
*/
public TextFactory() {
}
/**
* Return the class that implements a particular extension element.
*
* @param localname The local name of the extension element.
*
* @return The class that handles that extension element.
*
* @exception SAXException("Unknown Text extension element")
*/
public Class getExtensionClass(String localname) {
if (localname.equals("insertfile")) {
try {
return Class.forName("com.nwalsh.saxon.Text");
} catch (ClassNotFoundException e) {
return null;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy