This class represents the base stylesheet or an "import" stylesheet. More...
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 StylesheetConstructionContext::GetAndReleaseCachedString Stylesheet::GetAndReleaseCachedString |
| typedef XalanMap<const XalanNode*, KeyTable* > Stylesheet::KeyTablesTableType |
| 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] |
| void Stylesheet::addImport | ( | Stylesheet * | theStylesheet | ) |
Add an imported stylesheet.
| theStylesheet | The stylesheet to add. |
| 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 |
| void Stylesheet::addTemplate | ( | ElemTemplate * | theTemplate, |
| StylesheetConstructionContext & | constructionContext | ||
| ) |
Add a template to the list of names templates.
| theTemplate | template to add |
| constructionContext | context for construction |
| void Stylesheet::addWhitespaceElement | ( | const XalanSpaceNodeTester & | theTester | ) |
| static Stylesheet* Stylesheet::create | ( | MemoryManagerType & | theManager, |
| StylesheetRoot & | root, | ||
| const XalanDOMString & | baseIdentifier, | ||
| StylesheetConstructionContext & | constructionContext | ||
| ) | [static] |
| 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 |
| const XalanDOMString& Stylesheet::getBaseIdentifier | ( | ) | const |
Retrieve the base identifier with which this stylesheet is associated.