/** * Add the name of a qualified name within the template. The position in * the vector is its ID. * @param qname A qualified name of a param or variable, should be non-null. * @return the index where the variable was added. */ int addVariableName(final org.apache.xml.utils.QName qname) { int pos = m_variableNames.size(); m_variableNames.addElement(qname); int frameSize = m_variableNames.size() - getGlobalsSize(); if(frameSize > m_maxStackFrameSize) m_maxStackFrameSize++; return pos; }
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
java.util.Vector vnames = cstate.getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, cstate.getGlobalsSize()); m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize(); cstate.resetStackFrameSize();
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { // See if we can reduce an RTF to a select with a string expression. if(null == m_selectPattern && sroot.getOptimizer()) { XPath newSelect = ElemVariable.rewriteChildToExpression(this); if(null != newSelect) m_selectPattern = newSelect; } m_qnameID = sroot.getComposeState().getQNameID(m_qname); super.compose(sroot); java.util.Vector vnames = sroot.getComposeState().getVariableNames(); if(null != m_selectPattern) m_selectPattern.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize()); // m_index must be resolved by ElemApplyTemplates and ElemCallTemplate! }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { resolvePrefixTables(); ElemTemplateElement t = getFirstChildElem(); m_hasTextLitOnly = ((t != null) && (t.getXSLToken() == Constants.ELEMNAME_TEXTLITERALRESULT) && (t.getNextSiblingElem() == null)); StylesheetRoot.ComposeState cstate = sroot.getComposeState(); cstate.pushStackMark(); }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_qnameID = sroot.getComposeState().getQNameID(m_qname); int parentToken = m_parentNode.getXSLToken(); if (parentToken == Constants.ELEMNAME_TEMPLATE || parentToken == Constants.EXSLT_ELEMNAME_FUNCTION) ((ElemTemplate)m_parentNode).m_inArgsSize++; }
/** * This function is called after everything else has been * recomposed, and allows the template to set remaining * values that may be based on some other property that * depends on recomposition. */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); m_qnameID = sroot.getComposeState().getQNameID(m_qname); int parentToken = m_parentNode.getXSLToken(); if (parentToken == Constants.ELEMNAME_TEMPLATE || parentToken == Constants.EXSLT_ELEMNAME_FUNCTION) ((ElemTemplate)m_parentNode).m_inArgsSize++; }