Package | Description |
---|---|
com.caucho.xpath |
Finding and selecting XML nodes using XSL patterns.
|
com.caucho.xpath.pattern | |
com.caucho.xsl |
The XSLT transformation package.
|
Modifier and Type | Method and Description |
---|---|
static Env |
XPath.createCall(Env parent)
Creates a new variable environment based on an old environment.
|
static Env |
XPath.createEnv()
Creates a new variable environment.
|
static Env |
XPath.createEnv(Env global)
Creates a new variable environment based on an old environment.
|
Modifier and Type | Method and Description |
---|---|
void |
Expr.addParam(Env newEnv,
java.lang.String name,
org.w3c.dom.Node node,
Env env)
Adds a param with the expression's value.
|
void |
Expr.addVar(Env newEnv,
java.lang.String name,
org.w3c.dom.Node node,
Env env)
Adds a variable with the expression's value.
|
static Env |
XPath.createCall(Env parent)
Creates a new variable environment based on an old environment.
|
static Env |
XPath.createEnv(Env global)
Creates a new variable environment based on an old environment.
|
static void |
XPath.freeEnv(Env env)
Free an environment.
|
void |
Expr.setVar(java.lang.String name,
org.w3c.dom.Node node,
Env env)
Sets a variable with the expression's value.
|
Modifier and Type | Method and Description |
---|---|
int |
FromAttributes.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts all siblings matching the pattern.
|
int |
AbstractPattern.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the number of nodes in its context for a match pattern.
|
int |
FromExpr.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count is the size of the expression node-set.
|
int |
FromAncestors.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts the number of matching ancestors from the axis context
|
int |
FromSelf.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Only one node in the self axis.
|
int |
FromDescendants.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts the descendant nodes matching the pattern.
|
int |
FromChildren.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts all siblings matching the pattern.
|
int |
UnionPattern.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern) |
int |
FromContext.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the context axis.
|
int |
FromPrevious.count(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
counts matching nodes preceding the axis context.
|
int |
CurrentPattern.count(org.w3c.dom.Node node,
Env env,
org.w3c.dom.Node context)
There is only a single node in the current
|
int |
FromAttributes.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position of the child is the count of previous siblings
matching the pattern.
|
int |
AbstractPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Returns the position of the node in its context for a match pattern.
|
int |
FromExpr.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position is the position in the expression node-set.
|
int |
CurrentPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the current
|
int |
FromAncestors.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The ancestor position is the number of matching nodes between it
and an axis-context.
|
int |
FromSelf.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Only one node in the self axis.
|
int |
FromDescendants.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Counts matching nodes between the axis-context and the node
|
int |
FromChildren.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The position of the child is the count of previous siblings
matching the pattern.
|
int |
UnionPattern.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern) |
int |
FromContext.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
There is only a single node in the context axis.
|
int |
FromNextSibling.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count of nodes between the test-node and the axis.
|
int |
FromPrevious.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Calculates position by counting next nodes matching the pattern.
|
int |
FromPreviousSibling.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
The count of nodes between the test-node and the axis.
|
int |
FromNext.position(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern)
Calculates position by counting previous nodes matching the pattern.
|
Modifier and Type | Method and Description |
---|---|
protected void |
StylesheetImpl._xsl_init(XslWriter out,
org.w3c.dom.Node context,
Env env) |
void |
StylesheetImpl.anyNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
void |
StylesheetImpl.applyNode(XslWriter out,
org.w3c.dom.Node node,
Env env) |
protected void |
StylesheetImpl.applyNode(XslWriter out,
org.w3c.dom.Node node,
Env env,
int min,
int max) |
protected void |
StylesheetImpl.applyNodeDefault(XslWriter out,
org.w3c.dom.Node node,
Env env)
The default rule when no templates match.
|
void |
StylesheetImpl.exprNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
Expr expr,
XslNumberFormat format) |
protected Template |
StylesheetImpl.getTemplate(java.util.HashMap templates,
org.w3c.dom.Node node,
Env env,
int min,
int max)
Gets a template.
|
protected int |
JavaStylesheet.getTemplateId(java.util.HashMap templates,
org.w3c.dom.Node node,
Env env,
int min,
int max) |
void |
StylesheetImpl.multiNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
void |
StylesheetImpl.singleNumber(XslWriter out,
org.w3c.dom.Node node,
Env env,
AbstractPattern countPattern,
AbstractPattern fromPattern,
XslNumberFormat format) |
protected java.util.ArrayList |
StylesheetImpl.xslSort(org.w3c.dom.Node node,
Env env,
AbstractPattern pattern,
Sort[] sortList) |