Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01

oracle.xml.parser.v2
Class XSLNode

java.lang.Object
  |
  +--oracle.xml.parser.v2.XSLNode
All Implemented Interfaces:
Locator, NSResolver, XSLConstants
Direct Known Subclasses:
XSLStylesheet

public class XSLNode
extends java.lang.Object
implements XSLConstants, NSResolver, Locator

The base class for all XSL instructions


Field Summary

 

Fields inherited from interface oracle.xml.parser.v2.XSLConstants
ALL_PREFIX, APPLY_IMPORTS, APPLY_TEMPLATES, ATTRIBUTE, ATTRIBUTE_SET, CALL_TEMPLATE, CHAR_TEMPLATE, CHARACTER, CHARACTER_MAP, CHOOSE, CLASSNAME, COLLATION, COMMENT, COPY, COPY_NAMESPACES, COPY_OF, DECIMAL_FORMAT, DECIMAL_SEPARATOR, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_DIGIT, DEFAULT_GROUP_SEPARATOR, DEFAULT_INFINITY, DEFAULT_MINUS_SIGN, DEFAULT_NAN, DEFAULT_PATTERN_SEPARATOR, DEFAULT_PER_MILLE, DEFAULT_PERCENT, DEFAULT_PREFIX, DEFAULT_ZERO_DIGIT, DIGIT, DISABLEOUTESC, DISABLEOUTESC_PROP, ELEMENT, ELEMENTS, EMPTY, ERROR, EXCLUDE_RESULT_PREFIXES, EXTENSION_ELEMENT_PREFIXES, EXTLIB, FALLBACK, FATAL_ERROR, FNNAMESPACE, FOR_EACH, FOR_EACH_GROUP, FORMAT, GROUP_SEPARATOR, GROUPADJACENT, GROUPBY, GROUPENDINGWITH, GROUPSTARTINGWITH, HREF, IF, IMPLEMENTS, IMPORT, IMPORTS, INCLUDE, INFINITY, INIT, INST_TEMPLATE, KEY, LANGUAGE, LOCALE, MATCH, MESSAGE, MINUS_SIGN, MISC_ELEMENTS, MISC_TEMPLATE, MODE, NAME, NAMESPACE, NAMESPACE_ALIAS, NAN, NEGINFPRIORITY, NEXT_MATCH, NODE_SET, NUMBER, ORACLE_NAME, ORACLE_URL, OTHERWISE, OUTPUT, OUTPUT_CHARACTER, OVERRIDE, PARAM, PATTERN_SEPARATOR, PER_MILLE, PERCENT, PI, PRESERVE_SPACE, PRIORITY, RESULT_DOCUMENT, RESULT_PREFIX, SELECT, SEPARATOR, SORT, STRING, STRIP_SPACE, STYLESHEET, STYLESHEET_PREFIX, TEMPLATE, TEMPLATE_INDEX_CALLTEMPLATE, TEMPLATE_INDEX_NULL, TERMINATE, TEST, TEXT, TOP_LEVEL, TRANSFORM, USE, USE_ATTRIBUTE_SETS, USE_CHARACTER_MAPS, V10, V20, VALUE_OF, VARIABLE, VARIABLE_GLOBAL_REF, VARIABLE_NOT_INDEXED, VERSION, WARNING, WHEN, WITH_PARAM, XHTMLNAMESPACE, XPATH_DEFAULT_NAMESPACE, XPATH_DEFAULT_NS, XSL_TEXT_ONLY, XSLBUILTINNS, XSLEXTFUNCNS, XSLFUNCTION, XSLNAMESPACE, XSLSORTKEY, XSLT_SPEC_VERSION, XSLT_SPEC_VERSION_NUMBER, ZERO_DIGIT

 

Constructor Summary
XSLNode()
           
XSLNode(XSLStylesheet xss)
           

 

Method Summary
 void addNamespace(java.lang.String prefix, java.lang.String namespace)
           
 void appendChild(XSLNode child)
          Appends the XSLNode to the current node
 void appendText(char[] ch, int start, int length)
          Append a text node
 void finalize()
          Finalize the contents of the node.
 java.lang.String getAttribute(java.lang.String attrNamespace, java.lang.String attrName)
          Get the attribute defined in this XSL node
 int getColumnNumber()
          Get column number debug information
 boolean getDebugMode()
          Get debug information mode
 int getElementType()
          Get the element type of the node
 int getLineNumber()
          Get line number debug information
 java.lang.String getLocalName()
          Get the Local name of the node
 java.lang.String getPrefix()
          Get the Prefix of the node
 java.lang.String getPublicId()
          Return the public identifier for the current document event.
 java.lang.String getQualifiedName()
          Get the qualified name of the node
 java.lang.String getSystemId()
          Get the system id of the entity contain this node
 java.lang.String getURI()
          Get the namespace of the node
 void processAction(XSLTContext context)
          Instantiate this node
 java.lang.String resolveNamespacePrefix(java.lang.String prefix)
          Find the namespace definition in scope for a given namespace prefix
 void setAttribute(java.lang.String attrNamespace, java.lang.String prefix, java.lang.String attrName, java.lang.String value)
          Add attribute to the current node
 void setCompatibilityFlags(int version, boolean bkwdCompFlag, boolean fwdCompFlag)
           
 void setDebugInfo(int line, int col, java.lang.String sysid)
          Set debug information in the node
 void startContent()
          Reports start of this node's content and end of attributes This function checks for default attributes

 

Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XSLNode

public XSLNode()
        throws XSLException

XSLNode

public XSLNode(XSLStylesheet xss)
        throws XSLException
Method Detail

getElementType

public int getElementType()
Get the element type of the node

getPrefix

public java.lang.String getPrefix()
Get the Prefix of the node

getLocalName

public java.lang.String getLocalName()
Get the Local name of the node

getURI

public java.lang.String getURI()
Get the namespace of the node

getQualifiedName

public java.lang.String getQualifiedName()
Get the qualified name of the node

resolveNamespacePrefix

public java.lang.String resolveNamespacePrefix(java.lang.String prefix)
Find the namespace definition in scope for a given namespace prefix
Specified by:
resolveNamespacePrefix in interface NSResolver
Parameters:
prefix - Namespace prefix to be resolved
Returns:
the resolved Namespace (null, if prefix could not be resolved)

setAttribute

public void setAttribute(java.lang.String attrNamespace,
                         java.lang.String prefix,
                         java.lang.String attrName,
                         java.lang.String value)
                  throws XSLException
Add attribute to the current node
Parameters:
attrNamespace - namespace of the attr
prefix - - prefix of the attr
attrName - - localname of the attr
value - - value of the attr
Throws:
- - XSLException on error
XSLException

getAttribute

public java.lang.String getAttribute(java.lang.String attrNamespace,
                                     java.lang.String attrName)
                              throws XSLException
Get the attribute defined in this XSL node
Parameters:
attrNamespace - - namespace of the requested attr
attrName - - localName of the requested attr
Throws:
- - XSLException on error
XSLException

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String namespace)
                  throws XSLException
XSLException

processAction

public void processAction(XSLTContext context)
                   throws XSLException
Instantiate this node
Parameters:
context - - XSLTContext at the time of instantiation
Throws:
XSLException

startContent

public void startContent()
                  throws XSLException
Reports start of this node's content and end of attributes This function checks for default attributes
Throws:
XSLException - on error

finalize

public void finalize()
              throws XSLException
Finalize the contents of the node. All subclass override this fn should call super, to recurse thru children The following classes MUST override finalize inorder to call finalize on XSLVariables and XSLSort. XSLApplyTemplates.java, XSLCallTemplate.java XSLForEach.java, XSLTemplate.java, XSLSort (for secondary keys)
Overrides:
finalize in class java.lang.Object
Throws:
XSLException - on error

appendChild

public void appendChild(XSLNode child)
                 throws XSLException
Appends the XSLNode to the current node
Parameters:
child - - node to be appended
Throws:
- - XSLException on error
XSLException

appendText

public void appendText(char[] ch,
                       int start,
                       int length)
                throws XSLException
Append a text node
Parameters:
ch - - character data
start - - start index
Throws:
XSLException - on error

getDebugMode

public boolean getDebugMode()
Get debug information mode
Returns:
flag debugging mode

setDebugInfo

public void setDebugInfo(int line,
                         int col,
                         java.lang.String sysid)
Set debug information in the node
Parameters:
line - the line number
col - the col number
sysid - the system id

getLineNumber

public int getLineNumber()
Get line number debug information
Specified by:
getLineNumber in interface Locator
Returns:
line the line number
See Also:
Locator.getColumnNumber()

getColumnNumber

public int getColumnNumber()
Get column number debug information
Specified by:
getColumnNumber in interface Locator
Returns:
column the column number
See Also:
Locator.getLineNumber()

getSystemId

public java.lang.String getSystemId()
Get the system id of the entity contain this node
Specified by:
getSystemId in interface Locator
Returns:
sysid the system id
See Also:
Locator.getPublicId()

getPublicId

public java.lang.String getPublicId()
Return the public identifier for the current document event.
Specified by:
getPublicId in interface Locator
Returns:
A string containing the public identifier, or null if none is available.
See Also:
getSystemId()

setCompatibilityFlags

public void setCompatibilityFlags(int version,
                                  boolean bkwdCompFlag,
                                  boolean fwdCompFlag)

Oracle® XML Java API Reference
Release 1 (10.1)

B12024-01

Copyright © 2003, Oracle. All Rights Reserved.