Package com.jclark.xsl.expr

Examples of com.jclark.xsl.expr.Variant


    }

    public void invoke(ProcessContext context, Node sourceNode,
                       Result result) throws XSLException
    {
        Variant value = context.getParam(name);

        // was it passed in the context?
        if (value == null) {
            // no, use the default value
            value = expr.eval(sourceNode, context);
View Full Code Here


     *
     */
    public Variant getGlobalVariableValue(Name name)
        throws XSLException
    {
        Variant value = (Variant)variableValueTable.get(name);
        if (value != null) {
            return value;
        }
        VariableInfo info = sheet.getGlobalVariableInfo(name);
        if (info == null) {
View Full Code Here

     *
     */
    public void invoke(ProcessContext context, Node sourceNode,
                       Result result) throws XSLException
    {
        Variant value = expr.eval(sourceNode, context);
        if (value instanceof ResultFragmentVariant) {
            ((ResultFragmentVariant)value).append(result);
        }
        else if (value.isNodeSet()) {
            copyNodes(context, value.convertToNodeSet(), result);
        } else {
            result.characters(value.convertToString());
        }
    }
View Full Code Here

TOP

Related Classes of com.jclark.xsl.expr.Variant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.