|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ejen.ext.XSLUtil
XSL operations utility (static methods).
This class only wrappes some methods implemented in the
XSLUtil
class.
Usage (XSL stylesheet) |
---|
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ... xmlns:xsu="org.ejen.ext.XSLUtil" extension-element-prefixes="xsu ..." exclude-result-prefixes="xsu ..." version="1.0"> <xsl:output method="xml" encoding="iso-8859-1"/> <xsl:template match="ejen"> <xsu: |
Constructor Summary | |
protected |
XSLUtil()
Prevents instanciation. |
Method Summary | |
static boolean |
equals(ExpressionContext context,
NodeIterator ni1,
NodeIterator ni2)
Checks ni1 and ni2 for strict equality (same names, same attributes, same child nodes...). |
static boolean |
equals(ExpressionContext context,
Node n1,
Node n2)
Checks n1 and n2 for strict equality (same names, same attributes, same child nodes...). |
static String |
evaluate(ExpressionContext context,
String avt)
Returns an interpreted value (AVT) of a Node attribute whose name is equals to the avt parameter. |
static String |
evaluate(XSLProcessorContext context,
ElemExtensionCall elem)
Returns an interpreted value (AVT) of a Node attribute whose name is "avt". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected XSLUtil()
Method Detail |
public static String evaluate(XSLProcessorContext context, ElemExtensionCall elem)
<xsu:evaluate avt="{./file}.xml"/> |
context
- the XSLProcessorContext to be used.elem
- the ElemExtensionCall to be used.
IllegalArgumentException
- bad context.
WrappedRuntimeException
- ...public static String evaluate(ExpressionContext context, String avt)
<xsl:variable name="avt" select="xsu:evaluate('{./file}.xml')"> |
context
- automatically passed by the xalan extension mechanism.avt
- the name of the attribute.
IllegalArgumentException
- bad context.
WrappedRuntimeException
- ...public static boolean equals(ExpressionContext context, NodeIterator ni1, NodeIterator ni2)
<xsl:if test="xsu:equals($nodes1,$nodes2)"> ... </xsl:if> |
context
- automatically passed by the xalan extension mechanism.ni1
- the first NodeIterator.ni2
- the second NodeIterator.
public static boolean equals(ExpressionContext context, Node n1, Node n2)
<xsl:if test="xsu:equals($node1,$node2)"> ... </xsl:if> |
context
- automatically passed by the xalan extension mechanism.n1
- the first Node.n2
- the second Node.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |