/** * 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. * * <p>NEEDSDOC @param sroot * * @throws TransformerException */ public void compose(StylesheetRoot sroot) throws TransformerException { super.compose(sroot); int length = getSortElemCount(); for (int i = 0; i < length; i++) { getSortElem(i).compose(sroot); } java.util.Vector vnames = sroot.getComposeState().getVariableNames(); if (null != m_selectExpression) m_selectExpression.fixupVariables(vnames, sroot.getComposeState().getGlobalsSize()); else { m_selectExpression = getStylesheetRoot().m_selectDefault.getExpression(); } }
/** * This function is used to fixup variables from QNames to stack frame indexes at stylesheet build * time. * * @param vars List of QNames that correspond to variables. This list should be searched backwards * for the first qualified name that corresponds to the variable reference qname. The position * of the QName in the vector from the start of the vector will be its position in the stack * frame (but variables above the globalsTop value will need to be offset to the current stack * frame). */ public void fixupVariables(java.util.Vector vars, int globalsSize) { super.fixupVariables(vars, globalsSize); m_expr.fixupVariables(vars, globalsSize); }
/** * This function is used to fixup variables from QNames to stack frame indexes at stylesheet build * time. * * @param vars List of QNames that correspond to variables. This list should be searched backwards * for the first qualified name that corresponds to the variable reference qname. The position * of the QName in the vector from the start of the vector will be its position in the stack * frame (but variables above the globalsTop value will need to be offset to the current stack * frame). */ public void fixupVariables(java.util.Vector vars, int globalsSize) { if (null != m_arg0) m_arg0.fixupVariables(vars, globalsSize); }