예제 #1
0
 /**
  * Set the current regex iterator. This supports the functionality of the regex-group() function
  * in XSLT 2.0.
  *
  * @param currentRegexIterator the current regex iterator
  */
 public void setCurrentRegexIterator(RegexIterator currentRegexIterator) {
   xsltContext = new XSLTContext(xsltContext);
   xsltContext.currentRegexIterator = currentRegexIterator;
 }
예제 #2
0
 /**
  * Set the current grouping iterator. This supports the current-group() and current-grouping-key()
  * functions in XSLT 2.0
  *
  * @param collection the new current GroupIterator
  */
 public void setCurrentGroupIterator(GroupIterator collection) {
   xsltContext = new XSLTContext(xsltContext);
   xsltContext.currentGroupIterator = collection;
 }
예제 #3
0
 /**
  * Set the current mode.
  *
  * @param mode the new current mode
  */
 public void setCurrentMode(Mode mode) {
   if ((mode != null && !mode.isDefaultMode()) || (getCurrentMode() != null)) {
     xsltContext = new XSLTContext(xsltContext);
     xsltContext.currentMode = mode;
   }
 }
예제 #4
0
 /**
  * Set the current template. This is used to support xsl:apply-imports. The caller is responsible
  * for remembering the previous current template and resetting it after use.
  *
  * @param template the current template
  */
 public void setCurrentTemplate(Template template) {
   xsltContext = new XSLTContext(xsltContext);
   xsltContext.currentTemplate = template;
 }
예제 #5
0
 /**
  * Set the tunnel parameters for the current template call.
  *
  * @param tunnelParameters the supplied tunnel parameters
  */
 public void setTunnelParameters(ParameterSet tunnelParameters) {
   xsltContext = new XSLTContext(xsltContext);
   xsltContext.tunnelParameters = tunnelParameters;
 }