com.caucho.xsl.java
Class XslStylesheet

java.lang.Object
  extended by com.caucho.xsl.java.XslNode
      extended by com.caucho.xsl.java.XslStylesheet
Direct Known Subclasses:
XslTransform

public class XslStylesheet
extends XslNode

Represents the top-level xsl:stylesheet node.


Field Summary
 
Fields inherited from class com.caucho.xsl.java.XslNode
_children, _endLine, _filename, _gen, _matchNamespace, _name, _outputNamespace, _parent, _startLine, _systemId
 
Constructor Summary
XslStylesheet()
           
 
Method Summary
 void addAttribute(QName name, java.lang.String value)
          Adds an attribute.
 void addChild(XslNode node)
          Adds a child node.
 void addImport(XslNode node)
          Adds an import directive.
 void endAttributes()
          Ends the attributes.
 void generate(JavaWriter out)
          Generates the code for the tag
 void generateDeclaration(JavaWriter out)
          Generates the code for the tag
 java.lang.String getTagName()
          Returns the tag name.
protected  void printPopScope(JavaWriter out)
           
 void setDisableOutputEscaping(boolean disable)
          Set true if the output escaping should be disabled.
 
Methods inherited from class com.caucho.xsl.java.XslNode
addExpr, addNamespaceAttribute, addText, addVariableCount, allowJavaSelect, endElement, error, error, escapeJavaString, generateChildren, generateDeclarationChildren, generateId, getBaseURI, getChildren, getEndLine, getEnv, getFilename, getMatchNamespace, getNamespace, getOutputNamespace, getParent, getQName, getStartLine, getSystemId, hasChildren, parseExpr, parseMatch, parseSelect, popCall, popScope, printAttributeValue, printAttributeValue, printExprTest, printFragmentString, printFragmentValue, printNamespace, printSelectBegin, printStringExpr, pushCall, setEndLocation, setGenerator, setParent, setQName, setStartLocation, stringExpr, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XslStylesheet

public XslStylesheet()
Method Detail

getTagName

public java.lang.String getTagName()
Returns the tag name.

Overrides:
getTagName in class XslNode

setDisableOutputEscaping

public void setDisableOutputEscaping(boolean disable)
Set true if the output escaping should be disabled.


addImport

public void addImport(XslNode node)
Adds an import directive.


addAttribute

public void addAttribute(QName name,
                         java.lang.String value)
                  throws XslParseException
Adds an attribute.

Overrides:
addAttribute in class XslNode
Throws:
XslParseException

endAttributes

public void endAttributes()
                   throws XslParseException
Ends the attributes.

Overrides:
endAttributes in class XslNode
Throws:
XslParseException

addChild

public void addChild(XslNode node)
              throws XslParseException
Adds a child node.

Overrides:
addChild in class XslNode
Throws:
XslParseException

generate

public void generate(JavaWriter out)
              throws java.lang.Exception
Generates the code for the tag

Specified by:
generate in class XslNode
Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception

generateDeclaration

public void generateDeclaration(JavaWriter out)
                         throws java.lang.Exception
Generates the code for the tag

Overrides:
generateDeclaration in class XslNode
Parameters:
out - the output writer for the generated java.
Throws:
java.lang.Exception

printPopScope

protected void printPopScope(JavaWriter out)
                      throws java.lang.Exception
Overrides:
printPopScope in class XslNode
Throws:
java.lang.Exception