Package com.nwalsh.sinclude
Class XInclude
- java.lang.Object
-
- com.nwalsh.sinclude.XInclude
-
public class XInclude extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interface
XInclude.ElementHandler
private class
XInclude.TreeWalker
private static class
XInclude.XiFallbackHandler
private class
XInclude.XiIncludeHandler
-
Field Summary
Fields Modifier and Type Field Description private static net.sf.saxon.s9api.QName
_accept
private static net.sf.saxon.s9api.QName
_accept_language
private static net.sf.saxon.s9api.QName
_encoding
private static net.sf.saxon.s9api.QName
_fragid
private static net.sf.saxon.s9api.QName
_href
private static net.sf.saxon.s9api.QName
_parse
private static net.sf.saxon.s9api.QName
_set_xml_id
private static net.sf.saxon.s9api.QName
_xpointer
private static java.util.regex.Pattern
charEqual
private boolean
copyAttributes
private java.util.Vector<SchemeData>
data
private boolean
fixupXmlBase
private boolean
fixupXmlLang
private static net.sf.saxon.om.FingerprintedQName
fq_xml_base
private static net.sf.saxon.om.FingerprintedQName
fq_xml_id
private static net.sf.saxon.om.FingerprintedQName
fq_xml_lang
private FragmentIdParser
fragmentIdParser
private static java.util.regex.Pattern
lineEqual
private static java.lang.String
localAttrNS
private DebuggingLogger
logger
private static java.net.URI
MAGIC_IMPOSSIBLE_URI
private static java.lang.String
NS_XINCLUDE
private static java.lang.String
NS_XML
private DocumentResolver
resolver
private java.util.Vector<Scheme>
schemes
private static java.util.regex.Pattern
searchEqual
private boolean
trimText
private java.util.Stack<java.net.URI>
uriStack
private static net.sf.saxon.s9api.QName
xi_fallback
private static net.sf.saxon.s9api.QName
xi_include
-
Constructor Summary
Constructors Constructor Description XInclude()
XInclude(DocumentResolver resolver)
XInclude(DocumentResolver resolver, FragmentIdParser fragidParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearSchemes()
void
expandXIncludes(java.io.File input, java.io.File output)
net.sf.saxon.s9api.XdmNode
expandXIncludes(net.sf.saxon.s9api.XdmNode node)
boolean
getCopyAttributes()
boolean
getFixupXmlBase()
boolean
getFixupXmlLang()
FragmentIdParser
getFragmentIdParser()
Scheme
getScheme(java.lang.String name)
boolean
getTrimText()
private void
init()
XInclude
newInstance()
void
registerScheme(Scheme xpointerScheme)
void
setCopyAttributes(boolean copy)
void
setFixupXmlBase(boolean fixup)
void
setFixupXmlLang(boolean fixup)
void
setTrimText(boolean trim)
-
-
-
Field Detail
-
MAGIC_IMPOSSIBLE_URI
private static final java.net.URI MAGIC_IMPOSSIBLE_URI
-
NS_XML
private static final java.lang.String NS_XML
- See Also:
- Constant Field Values
-
NS_XINCLUDE
private static final java.lang.String NS_XINCLUDE
- See Also:
- Constant Field Values
-
xi_include
private static final net.sf.saxon.s9api.QName xi_include
-
xi_fallback
private static final net.sf.saxon.s9api.QName xi_fallback
-
localAttrNS
private static final java.lang.String localAttrNS
- See Also:
- Constant Field Values
-
_set_xml_id
private static final net.sf.saxon.s9api.QName _set_xml_id
-
_accept
private static final net.sf.saxon.s9api.QName _accept
-
_accept_language
private static final net.sf.saxon.s9api.QName _accept_language
-
_encoding
private static final net.sf.saxon.s9api.QName _encoding
-
_href
private static final net.sf.saxon.s9api.QName _href
-
_parse
private static final net.sf.saxon.s9api.QName _parse
-
_fragid
private static final net.sf.saxon.s9api.QName _fragid
-
_xpointer
private static final net.sf.saxon.s9api.QName _xpointer
-
lineEqual
private static final java.util.regex.Pattern lineEqual
-
charEqual
private static final java.util.regex.Pattern charEqual
-
searchEqual
private static final java.util.regex.Pattern searchEqual
-
fq_xml_id
private static final net.sf.saxon.om.FingerprintedQName fq_xml_id
-
fq_xml_lang
private static final net.sf.saxon.om.FingerprintedQName fq_xml_lang
-
fq_xml_base
private static final net.sf.saxon.om.FingerprintedQName fq_xml_base
-
logger
private DebuggingLogger logger
-
trimText
private boolean trimText
-
fixupXmlBase
private boolean fixupXmlBase
-
fixupXmlLang
private boolean fixupXmlLang
-
copyAttributes
private boolean copyAttributes
-
data
private final java.util.Vector<SchemeData> data
-
schemes
private final java.util.Vector<Scheme> schemes
-
resolver
private DocumentResolver resolver
-
fragmentIdParser
private FragmentIdParser fragmentIdParser
-
uriStack
private final java.util.Stack<java.net.URI> uriStack
-
-
Constructor Detail
-
XInclude
public XInclude()
-
XInclude
public XInclude(DocumentResolver resolver)
-
XInclude
public XInclude(DocumentResolver resolver, FragmentIdParser fragidParser)
-
-
Method Detail
-
init
private void init()
-
newInstance
public XInclude newInstance()
-
clearSchemes
public void clearSchemes()
-
registerScheme
public void registerScheme(Scheme xpointerScheme)
-
getScheme
public Scheme getScheme(java.lang.String name)
-
getFragmentIdParser
public FragmentIdParser getFragmentIdParser()
-
getTrimText
public boolean getTrimText()
-
setTrimText
public void setTrimText(boolean trim)
-
getFixupXmlBase
public boolean getFixupXmlBase()
-
setFixupXmlBase
public void setFixupXmlBase(boolean fixup)
-
getFixupXmlLang
public boolean getFixupXmlLang()
-
setFixupXmlLang
public void setFixupXmlLang(boolean fixup)
-
getCopyAttributes
public boolean getCopyAttributes()
-
setCopyAttributes
public void setCopyAttributes(boolean copy)
-
expandXIncludes
public net.sf.saxon.s9api.XdmNode expandXIncludes(net.sf.saxon.s9api.XdmNode node) throws net.sf.saxon.trans.XPathException
- Throws:
net.sf.saxon.trans.XPathException
-
expandXIncludes
public void expandXIncludes(java.io.File input, java.io.File output) throws net.sf.saxon.s9api.SaxonApiException, net.sf.saxon.trans.XPathException
- Throws:
net.sf.saxon.s9api.SaxonApiException
net.sf.saxon.trans.XPathException
-
-