|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejen.ext.XMLInclude
XML file include utility (static methods).
Usage (XSL stylesheet) |
---|
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
xmlns:xin="org.ejen.ext.XMLInclude"
version="1.0">
<xsl:output method="xml" encoding="iso-8859-1"/>
<xsl:template match="ejen">
<xsl:copy-of select="xin: |
Constructor Summary | |
protected |
XMLInclude()
Protected constructor (prevents instanciation). |
Method Summary | |
static Node |
load(ExpressionContext context,
String fileName)
Returns the root Node of an XML file (with all descendants).
|
protected static Node |
load(String fileName)
Returns the root Node of an XML file (with all descendants).
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected XMLInclude()
Method Detail |
public static Node load(ExpressionContext context, String fileName)
Node
of an XML file (with all descendants).
<xsl:copy-of select="xin:load('{$name}.xml')"/> |
context
- automatically passed by the xalan extension mechanism.fileName
- name of the XML file.
Node
of the XML file.
WrappedRuntimeException
- errors (file not found...).protected static Node load(String fileName)
Node
of an XML file (with all descendants).
fileName
- name of the XML file.
Node
of the XML file.
WrappedRuntimeException
- errors (file not found...).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |