net.sf.saxon.instruct.WithParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saxon9 Show documentation
Show all versions of saxon9 Show documentation
Provides a basic XSLT 2.0 and XQuery 1.0 processor (W3C Recommendations,
January 2007). Command line interfaces and implementations of several
Java APIs (DOM, XPath, s9api) are also included.
The newest version!
package net.sf.saxon.instruct;
import net.sf.saxon.expr.*;
import net.sf.saxon.om.StandardNames;
import net.sf.saxon.om.ValueRepresentation;
import net.sf.saxon.trans.XPathException;
import net.sf.saxon.type.ItemType;
import net.sf.saxon.trace.ExpressionPresenter;
import java.util.List;
/**
* An instruction derived from a xsl:with-param element in the stylesheet.
*/
public class WithParam extends GeneralVariable {
int parameterId;
public WithParam() {}
/**
* Allocate a number which is essentially an alias for the parameter name,
* unique within a stylesheet
* @param id the parameter id
*/
public void setParameterId(int id) {
parameterId = id;
}
/**
* Get the parameter id, which is essentially an alias for the parameter name,
* unique within a stylesheet
* @return the parameter id
*/
public int getParameterId() {
return parameterId;
}
public int getInstructionNameCode() {
return StandardNames.XSL_WITH_PARAM;
}
public TailCall processLeavingTail(XPathContext context) throws XPathException {
// not used
return null;
}
public static void simplify(WithParam[] params, ExpressionVisitor visitor) throws XPathException {
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy