This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all stylesheets in the tree.
More...
|
| StylesheetRoot (const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext) |
| Construct a Stylesheet from a Document.
|
|
virtual | ~StylesheetRoot () |
|
MemoryManager & | getMemoryManager () |
|
virtual void | postConstruction (StylesheetConstructionContext &constructionContext) |
| Called after construction is completed.
|
|
void | process (XalanNode *sourceTree, XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const |
| Transform the source tree to the output in the given result tree target.
|
|
FormatterListener * | setupFormatterListener (XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const |
| Have the stylesheet create the appropriate FormatterListener, based on the XSLTResultTarget provided.
|
|
FormatterListener::eFormat | getOutputMethod () const |
| Return the output method that was specified in the stylesheet.
|
|
bool | isOutputMethodSet () const |
|
XalanDOMString & | getOutputVersion (XalanDOMString &theResult) const |
| Get the output version string that was specified in the xsl:output element.
|
|
bool | getOutputIndent () const |
| Determine if output indenting was specified in the xsl:output element.
|
|
bool | getHTMLOutputIndent () const |
| Determine if output indenting should be enabled for HTML output.
|
|
XalanDOMString & | getOutputEncoding (XalanDOMString &theResult) const |
| Get the output encoding string that was specified in the xsl:output element.
|
|
XalanDOMString & | getOutputMediaType (XalanDOMString &theResult) const |
| Get the media-type string that was specified in the xsl:output element.
|
|
XalanDOMString & | getOutputDoctypeSystem (XalanDOMString &theResult) const |
| Get the doctype-system-id string that was specified in the xsl:output element.
|
|
XalanDOMString & | getOutputDoctypePublic (XalanDOMString &theResult) const |
| Get the doctype-public-id string that was specified in the xsl:output element.
|
|
bool | getOmitOutputXMLDecl () const |
| Determine whether to output XML declarations.
|
|
XalanDOMString & | getOutputStandalone (XalanDOMString &theResult) const |
| Get the standalone string that was specified in the xsl:output element.
|
|
ElemTemplateElement * | getDefaultTextRule () const |
| Get the template representing the default rule for text.
|
|
ElemTemplateElement * | getDefaultRule () const |
| Get the template representing the default rule.
|
|
ElemTemplateElement * | getDefaultRootRule () const |
| Get the template representing the default root rule.
|
|
void | processOutputSpec (const XalanDOMChar *name, const AttributeListType &atts, StylesheetConstructionContext &constructionContext) |
| Process the "xsl:output" element.
|
|
URLStackType & | getImportStack () |
| Retrieve the stack of imported stylesheets.
|
|
const URLStackType & | getImportStack () const |
| Retrieve the stack of imported stylesheets.
|
|
void | setIndentResult (bool bIndent) |
| Change the value of the flag for indenting results.
|
|
void | setOutputMethod (FormatterListener::eFormat meth) |
| Change the value of the output method, one of the FormatterListener::eFormat values.
|
|
bool | hasCDATASectionElements () const |
|
bool | isCDATASectionElementName (const XalanQName &theQName) const |
| Determine if a QName is in the list of CDATA section element QNames.
|
|
void | getNodeSetByKey (XalanNode *context, const XalanQName &qname, const XalanDOMString &ref, const PrefixResolver &resolver, MutableNodeRefList &nodelist, StylesheetExecutionContext &executionContext, const Locator *locator, KeyTablesTableType &theKeysTable) const |
| Given a valid element key, return the corresponding node list.
|
|
unsigned long | getNextElemNumberID () |
|
unsigned long | getElemNumberCount () const |
|
bool | hasPreserveOrStripSpaceElements () const |
|
bool | shouldStripSourceNode (const XalanText &theNode) const |
| Check to see if a whitespace text node should be stripped from the source tree.
|
|
void | addAttributeSet (ElemAttributeSet &theAttributeSet) |
|
const ElemAttributeSet * | getAttributeSet (StylesheetExecutionContext &theExecutionContext, const XalanQName &theQName, size_type matchingIndex, const Locator *theLocator) const |
| Get the nth attribute set with the specified name.
|
|
| Stylesheet (StylesheetRoot &root, const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext) |
| Constructor for a Stylesheet needs a Document.
|
|
virtual | ~Stylesheet () |
|
MemoryManager & | getMemoryManager () |
|
double | getXSLTVerDeclared () const |
| Retrieve XSLT version number.
|
|
void | setXSLTVerDeclared (double ver) |
| Set XSLT version number.
|
|
const StylesheetRoot & | getStylesheetRoot () const |
| Retrieve the root stylesheet object.
|
|
StylesheetRoot & | getStylesheetRoot () |
| Retrieve the root stylesheet object.
|
|
const NamespacesStackType & | getNamespaces () const |
| Retrieve the stack of namespace lists.
|
|
NamespacesStackType & | getNamespaces () |
| Retrieve the stack of namespace lists.
|
|
const NamespacesHandler & | getNamespacesHandler () const |
|
NamespacesHandler & | getNamespacesHandler () |
|
const NamespaceVectorType & | getNamespaceDecls () const |
| Retrieve the list of namespace declarations currently in effect.
|
|
NamespaceVectorType & | getNamespaceDecls () |
| Retrieve the list of namespace declarations currently in effect.
|
|
void | setNamespaceDecls (const NamespaceVectorType &ns) |
| Set the list of namespace declarations currently in effect.
|
|
void | pushNamespaces (const AttributeListType &atts) |
| Push the namespace declarations from the current attribute list onto the namespace stack.
|
|
void | popNamespaces () |
| Pop a namespace declaration from the namespace stack.
|
|
void | addWhitespaceElement (const XalanSpaceNodeTester &theTester) |
|
bool | isAttrOK (const XalanDOMChar *attrName, const AttributeListType &atts, XalanSize_t which, StylesheetConstructionContext &constructionContext) const |
| See if this is a xmlns attribute, and, if so, process it.
|
|
const XalanDOMString * | getNamespaceFromStack (const XalanDOMString &nodeName, XalanDOMString &theBuffer) const |
| Get the namespace from a qualified name.
|
|
const XalanDOMString * | getNamespaceFromStack (const XalanDOMChar *nodeName, XalanDOMString &theBuffer) const |
| Get the namespace from a qualified name.
|
|
const XalanDOMString * | getNamespaceForPrefixFromStack (const XalanDOMString &prefix) const |
| Get the namespace from a prefix by searching the stack of namespace lists.
|
|
const XalanDOMString * | getNamespaceForPrefixFromStack (const XalanDOMChar *prefix) const |
| Get the namespace from a prefix by searching the stack of namespace lists.
|
|
const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix, StylesheetConstructionContext &constructionContext) const |
| Get the namespace for a prefix, and report an error if it wasn't found.
|
|
const XalanDOMString * | getNamespaceForPrefix (const XalanDOMChar *prefix, StylesheetConstructionContext &constructionContext) const |
| Get the namespace for a prefix, and report an error if it wasn't found.
|
|
void | processExcludeResultPrefixes (StylesheetConstructionContext &theConstructionContext, const XalanDOMChar *theValue) |
| See if a namespace should be excluded.
|
|
void | addTemplate (ElemTemplate *theTemplate, StylesheetConstructionContext &constructionContext) |
| Add a template to the list of names templates.
|
|
bool | getYesOrNo (const XalanDOMChar *aname, const XalanDOMChar *val, StylesheetConstructionContext &constructionContext) const |
| Process an attribute that has the value of 'yes' or 'no'.
|
|
const XalanDOMString & | getBaseIdentifier () const |
| Retrieve the base identifier with which this stylesheet is associated.
|
|
const XalanDOMString & | getCurrentIncludeBaseIdentifier () const |
| Retrieve the base identifier for the most recently included stylesheet.
|
|
void | processNSAliasElement (const XalanDOMChar *name, const AttributeListType &atts, StylesheetConstructionContext &constructionContext) |
| Process an xsl:namespace-alias element.
|
|
void | processDecimalFormatElement (StylesheetConstructionContext &constructionContext, const AttributeListType &atts, const Locator *locator=0) |
| Process an xsl:decimal-format element.
|
|
const XalanDecimalFormatSymbols * | getDecimalFormatSymbols (const XalanQName &theQName) const |
| Retrieve the XalanDecimalFormatSymbols instance associated with the QName.
|
|
void | addImport (Stylesheet *theStylesheet) |
| Add an imported stylesheet.
|
|
bool | isWrapperless () const |
| whether there is a wrapper template
|
|
ElemTemplateElement * | initWrapperless (StylesheetConstructionContext &constructionContext, const Locator *locator) |
|
URLStackType & | getIncludeStack () |
| Retrieve the stack of who's including who.
|
|
void | processKeyElement (const PrefixResolver &nsContext, const AttributeListType &atts, const Locator *locator, StylesheetConstructionContext &constructionContext) |
| Process the xsl:key element.
|
|
const ElemTemplate * | findNamedTemplate (const XalanQName &qname) const |
| Locate a template via the "name" attribute.
|
|
const ElemTemplate * | findTemplate (StylesheetExecutionContext &executionContext, XalanNode *targetNode) const |
| Given a target element, find the template that best matches in the given XSL document, according to the rules specified in the xsl draft.
|
|
const ElemTemplate * | findTemplate (StylesheetExecutionContext &executionContext, XalanNode *targetNode, XalanNode::NodeType targetNodeType, const XalanQName &mode, bool onlyUseImports) const |
| Given a target element, find the template that best matches in the given XSL document, according to the rules specified in the xsl draft.
|
|
const PatternTableVectorType * | locateElementMatchPatternDataList (const XalanDOMString &theName) const |
| Given a name, locate the start of a list of possible templates that match that name.
|
|
const PatternTableVectorType * | locateAttributeMatchPatternDataList (const XalanDOMString &theName) const |
| Given a name, locate the start of a list of possible templates that match that name.
|
|
const PatternTableVectorType * | locateMatchPatternDataList (const XalanNode &theNode, XalanNode::NodeType targetNodeType) const |
| Given a XalanNode, locate the start of a list of possible templates that match it.
|
|
void | processExtensionNamespace (StylesheetConstructionContext &theConstructionContext, const XalanDOMString &uri) |
| Add an extension namespace handler.
|
|
ExtensionNSHandler * | lookupExtensionNSHandler (const XalanDOMString &uri) const |
| Return the handler for a given extension namespace.
|
|
void | setTopLevelVariable (ElemVariable *var) |
| Set a top level variable.
|
|
void | pushTopLevelVariables (StylesheetExecutionContext &executionContext, const ParamVectorType &topLevelParams) const |
| Set a list of top level variables in the specified execution context stylesheet.
|
|
virtual const XalanDOMString * | getNamespaceForPrefix (const XalanDOMString &prefix) const |
| Retrieve a namespace corresponding to a prefix.
|
|
virtual const XalanDOMString & | getURI () const |
| Retrieve the base URI for the resolver.
|
|
const XalanDOMString & | getXSLTNamespaceURI () const |
|
void | setXSLTNamespaceURI (const XalanDOMString &theURI) |
|
const ElemTemplate * | getFirstTemplate () const |
|
| PrefixResolver () |
|
| PrefixResolver (const PrefixResolver &) |
|
virtual | ~PrefixResolver () |
|
This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all stylesheets in the tree.
Definition at line 63 of file StylesheetRoot.hpp.