jd.xml.xslt.extension.jd
Class TryCatchTemplate

java.lang.Object
  extended byjd.xml.xslt.template.Template
      extended byjd.xml.xslt.extension.jd.TryCatchTemplate

public class TryCatchTemplate
extends Template

A Template that emulates try-catch-semantic.

 <jd:trycatch xmlns:jd="http://www.aztecrider.com/xslt"
      xsl:extension-element-prefixes="jd">
      <jd:try>
          try-content
      </jd:try>
      <jd:catch>
          catch-content
      </jd:catch>
 </jd:trycatch>
 


Constructor Summary
TryCatchTemplate(Template tryTemplate, Template catchTemplate)
           
 
Method Summary
 void accept(TemplateVisitor visitor)
           
static Exception getLastError(XsltContext context)
           
 void instantiate(XsltContext context, ResultBuilder resultBuilder)
          Instantiate the template.
 
Methods inherited from class jd.xml.xslt.template.Template
addChild, addNext, allowTailRecursion, getNext, getParent, instantiate, instantiate, toString, transferRelations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TryCatchTemplate

public TryCatchTemplate(Template tryTemplate,
                        Template catchTemplate)
Method Detail

instantiate

public void instantiate(XsltContext context,
                        ResultBuilder resultBuilder)
Description copied from class: Template
Instantiate the template.

Specified by:
instantiate in class Template

accept

public void accept(TemplateVisitor visitor)
Specified by:
accept in class Template

getLastError

public static Exception getLastError(XsltContext context)