This class represents the base stylesheet or an "import" stylesheet. More...
Inheritance diagram for Stylesheet:
This class represents the base stylesheet or an "import" stylesheet.
"include" stylesheets are combined with the including stylesheet.
typedef XalanMap<XalanQNameByReference, const ElemTemplate* > Stylesheet::ElemTemplateMapType |
typedef XalanMap<const XalanNode*, KeyTable* > Stylesheet::KeyTablesTableType |
typedef StylesheetConstructionContext::GetAndReleaseCachedString Stylesheet::GetAndReleaseCachedString |
Stylesheet::Stylesheet | ( | StylesheetRoot & | root, | |
const XalanDOMString & | baseIdentifier, | |||
StylesheetConstructionContext & | constructionContext | |||
) |
Constructor for a Stylesheet needs a Document.
XSLProcessorException | thrown if the active ProblemListener and XMLParserLiaison decide the error condition is severe enough to halt processing. |
virtual Stylesheet::~Stylesheet | ( | ) | [virtual] |
static Stylesheet* Stylesheet::create | ( | MemoryManagerType & | theManager, | |
StylesheetRoot & | root, | |||
const XalanDOMString & | baseIdentifier, | |||
StylesheetConstructionContext & | constructionContext | |||
) | [static] |
MemoryManagerType& Stylesheet::getMemoryManager | ( | ) |
Reimplemented in StylesheetRoot.
double Stylesheet::getXSLTVerDeclared | ( | ) | const |
Retrieve XSLT version number.
void Stylesheet::setXSLTVerDeclared | ( | double | ver | ) |
Set XSLT version number.
ver | number representing XSLT version |
const StylesheetRoot& Stylesheet::getStylesheetRoot | ( | ) | const |
Retrieve the root stylesheet object.
StylesheetRoot& Stylesheet::getStylesheetRoot | ( | ) |
Retrieve the root stylesheet object.
const NamespacesStackType& Stylesheet::getNamespaces | ( | ) | const |
Retrieve the stack of namespace lists.
NamespacesStackType& Stylesheet::getNamespaces | ( | ) |
Retrieve the stack of namespace lists.
const NamespacesHandler& Stylesheet::getNamespacesHandler | ( | ) | const |
NamespacesHandler& Stylesheet::getNamespacesHandler | ( | ) |
const NamespaceVectorType& Stylesheet::getNamespaceDecls | ( | ) | const |
Retrieve the list of namespace declarations currently in effect.
NamespaceVectorType& Stylesheet::getNamespaceDecls | ( | ) |
Retrieve the list of namespace declarations currently in effect.
void Stylesheet::setNamespaceDecls | ( | const NamespaceVectorType & | ns | ) |
Set the list of namespace declarations currently in effect.
ns | vector of namespace vectors |
void Stylesheet::pushNamespaces | ( | const AttributeListType & | atts | ) |
Push the namespace declarations from the current attribute list onto the namespace stack.
atts | attribute list constaining namespaces |
void Stylesheet::popNamespaces | ( | ) |
Pop a namespace declaration from the namespace stack.
void Stylesheet::addWhitespaceElement | ( | const XalanSpaceNodeTester & | theTester | ) |
virtual void Stylesheet::postConstruction | ( | StylesheetConstructionContext & | constructionContext | ) | [virtual] |
bool Stylesheet::isAttrOK | ( | const XalanDOMChar * | attrName, | |
const AttributeListType & | atts, | |||
int | which, | |||
StylesheetConstructionContext & | constructionContext | |||
) | const |
See if this is a xmlns attribute, and, if so, process it.
attrName | qualified name of attribute | |
atts | attribute list where the element comes from (not used at this time) | |
which | index into the attribute list (not used at this time) |
const XalanDOMString* Stylesheet::getNamespaceFromStack | ( | const XalanDOMString & | nodeName, | |
XalanDOMString & | theBuffer | |||
) | const |
Get the namespace from a qualified name.
nodeName | name of node |
const XalanDOMString* Stylesheet::getNamespaceFromStack | ( | const XalanDOMChar * | nodeName, | |
XalanDOMString & | theBuffer | |||
) | const |
Get the namespace from a qualified name.
nodeName | name of node |
const XalanDOMString* Stylesheet::getNamespaceForPrefixFromStack | ( | const XalanDOMString & | prefix | ) | const |
Get the namespace from a prefix by searching the stack of namespace lists.
prefix | prefix to search |
const XalanDOMString* Stylesheet::getNamespaceForPrefixFromStack | ( | const XalanDOMChar * | prefix | ) | const |
Get the namespace from a prefix by searching the stack of namespace lists.
prefix | prefix to search |
const XalanDOMString* Stylesheet::getNamespaceForPrefix | ( | const XalanDOMString & | prefix, | |
StylesheetConstructionContext & | constructionContext | |||
) | const |
Get the namespace for a prefix, and report an error if it wasn't found.
prefix | prefix to search | |
constructionContext | The current construction context |
const XalanDOMString* Stylesheet::getNamespaceForPrefix | ( | const XalanDOMChar * | prefix, | |
StylesheetConstructionContext & | constructionContext | |||
) | const |
Get the namespace for a prefix, and report an error if it wasn't found.
prefix | prefix to search | |
constructionContext | The current construction context |
void Stylesheet::processExcludeResultPrefixes | ( | StylesheetConstructionContext & | theConstructionContext, | |
const XalanDOMChar * | theValue | |||
) |
See if a namespace should be excluded.
theConstructionContext | the current construction context. | |
theValue | the prefix of the namespace. |
void Stylesheet::addTemplate | ( | ElemTemplate * | theTemplate, | |
StylesheetConstructionContext & | constructionContext | |||
) |
Add a template to the list of names templates.
theTemplate | template to add | |
constructionContext | context for construction |
bool Stylesheet::getYesOrNo | ( | const XalanDOMChar * | aname, | |
const XalanDOMChar * | val, | |||
StylesheetConstructionContext & | constructionContext | |||
) | const |
Process an attribute that has the value of 'yes' or 'no'.
aname | name of attribute | |
val | value | |
constructionContext | context for construction |
const XalanDOMString& Stylesheet::getBaseIdentifier | ( | ) | const |
Retrieve the base identifier with which this stylesheet is associated.
const XalanDOMString& Stylesheet::getCurrentIncludeBaseIdentifier | ( | ) | const |
Retrieve the base identifier for the most recently included stylesheet.
This will return the same value as getBaseIdentifier(), if no include is being processed.
void Stylesheet::processNSAliasElement | ( | const XalanDOMChar * | name, | |
const AttributeListType & | atts, | |||
StylesheetConstructionContext & | constructionContext | |||
) |
Process an xsl:namespace-alias element.
name | the element name. | |
attrs | the current attribute list | |
constructionContext | the active construction context |
void Stylesheet::processDecimalFormatElement | ( | StylesheetConstructionContext & | constructionContext, | |
const AttributeListType & | atts, | |||
const LocatorType * | locator = 0 | |||
) |
Process an xsl:decimal-format element.
elemDecimalFormat | the element |
const XalanDecimalFormatSymbols* Stylesheet::getDecimalFormatSymbols | ( | const XalanQName & | theQName | ) | const |
Retrieve the XalanDecimalFormatSymbols instance associated with the QName.
theQName | the QName for the lookup |
void Stylesheet::addImport | ( | Stylesheet * | theStylesheet | ) |
Add an imported stylesheet.
theStylesheet | The stylesheet to add. |
bool Stylesheet::isWrapperless | ( | ) | const |
whether there is a wrapper template
ElemTemplateElement* Stylesheet::initWrapperless | ( | StylesheetConstructionContext & | constructionContext, | |
const LocatorType * | locator | |||
) |
URLStackType& Stylesheet::getIncludeStack | ( | ) |
Retrieve the stack of who's including who.
void Stylesheet::processKeyElement | ( | const PrefixResolver & | nsContext, | |
const AttributeListType & | atts, | |||
const LocatorType * | locator, | |||
StylesheetConstructionContext & | constructionContext | |||
) |
Process the xsl:key element.
nsContext | The PrefixResolver instance for namespace prefixes. | |
atts | The attribute list for element. param locator The Locator instance for error reporting, if any. May be 0. | |
constructionContext | The current construction context. |
const ElemTemplate* Stylesheet::findNamedTemplate | ( | const XalanQName & | qname | ) | const |
Locate a template via the "name" attribute.
name | qualified name of template |
const ElemTemplate* Stylesheet::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.
executionContext | current execution context | |
targetNode | element that needs a rule |
const ElemTemplate* Stylesheet::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.
executionContext | current execution context | |
targetNode | node that needs a rule | |
targetNodeType | the type of targetNode | |
mode | string indicating the mode | |
onlyUseImports | only use imports, do not use any templates from the stylesheet itself |
static void Stylesheet::addObjectIfNotFound | ( | const XalanMatchPatternData * | thePattern, | |
PatternTableVectorType & | theVector | |||
) | [static] |
Add object to vector of match patterns if not already there.
thePattern | pattern to add | |
theVector | vector of patterns to add to |
static void Stylesheet::addObjectIfNotFound | ( | const XalanMatchPatternData * | thePattern, | |
const XalanMatchPatternData * | theArray[], | |||
unsigned int & | theArraySize | |||
) | [static] |
Add object to array of match patterns if not already there.
theArraySize size will be incremented if the pattern was added.
thePattern | pattern to add | |
theArray | vector of patterns to add to | |
theArraySize | The size of the array |
const PatternTableVectorType* Stylesheet::locateElementMatchPatternDataList | ( | const XalanDOMString & | theName | ) | const |
Given a name, locate the start of a list of possible templates that match that name.
If none match, then use the default list.
theName | The name to match |
const PatternTableVectorType* Stylesheet::locateAttributeMatchPatternDataList | ( | const XalanDOMString & | theName | ) | const |
Given a name, locate the start of a list of possible templates that match that name.
If none match, then use the default list.
theName | The name to match |
const PatternTableVectorType* Stylesheet::locateMatchPatternDataList | ( | const XalanNode & | theNode, | |
XalanNode::NodeType | targetNodeType | |||
) | const |
void Stylesheet::processExtensionNamespace | ( | StylesheetConstructionContext & | theConstructionContext, | |
const XalanDOMString & | uri | |||
) |
Add an extension namespace handler.
This provides methods for calling an element extension as well as for function calls (which is passed on to XPath).
constructionContext | The current construction context. | |
uri | The namespace URI of the extension. |
ExtensionNSHandler* Stylesheet::lookupExtensionNSHandler | ( | const XalanDOMString & | uri | ) | const |
Return the handler for a given extension namespace.
uri | the URI of the extension namespace. |
void Stylesheet::setTopLevelVariable | ( | ElemVariable * | var | ) |
Set a top level variable.
var | top-level variable declared with "xsl:variable" or xsl:param-variable. |
void Stylesheet::pushTopLevelVariables | ( | StylesheetExecutionContext & | executionContext, | |
const ParamVectorType & | topLevelParams | |||
) | const |
Set a list of top level variables in the specified execution context stylesheet.
executionContext | current execution context | |
topLevelParams | list of top level parameters |
virtual const XalanDOMString* Stylesheet::getNamespaceForPrefix | ( | const XalanDOMString & | prefix | ) | const [virtual] |
Retrieve a namespace corresponding to a prefix.
This assumes that the PrevixResolver holds its own namespace context, or is a namespace context itself.
prefix | Prefix to resolve |
Implements PrefixResolver.
virtual const XalanDOMString& Stylesheet::getURI | ( | ) | const [virtual] |
const XalanDOMString& Stylesheet::getXSLTNamespaceURI | ( | ) | const |
void Stylesheet::setXSLTNamespaceURI | ( | const XalanDOMString & | theURI | ) |
const ElemTemplate* Stylesheet::getFirstTemplate | ( | ) | const |
StylesheetRoot& Stylesheet::m_stylesheetRoot [protected] |
The root of the stylesheet tree.
XalanDOMString Stylesheet::m_baseIdent [protected] |
The base URL of the XSL document.
Table of KeyDeclaration objects, which are set by the xsl:key element.
const XalanQNameByReference Stylesheet::s_emptyQName [static, protected] |
The documentation for this class was generated from the following file:
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
![]() |
Xalan-C++ XSLT Processor Version 1.10 |
|