Xalan-C++ API Documentation
Go to the documentation of this file.
18 #if !defined(XALAN_STYLESHEETROOT_HEADER_GUARD)
19 #define XALAN_STYLESHEETROOT_HEADER_GUARD
45 XALAN_CPP_NAMESPACE_BEGIN
89 MemoryManager& theManager,
96 return m_version.getMemoryManager();
143 return m_outputMethod;
161 theResult.
assign(m_version);
175 return m_indentResult == eIndentNoImplicit ||
176 m_indentResult == eIndentNoExplicit ? false :
true;
190 return m_indentResult == eIndentNoExplicit ? false :
true;
202 theResult.
assign(m_encoding);
216 theResult.
assign(m_mediatype);
230 theResult.
assign(m_doctypeSystem);
244 theResult.
assign(m_doctypePublic);
257 return m_omitxmlDecl;
269 theResult.
assign(m_standalone);
282 return m_defaultTextRule;
293 return m_defaultRule;
304 return m_defaultRootRule;
316 const XalanDOMChar* name,
328 return m_importStack;
339 return m_importStack;
350 m_indentResult = bIndent ==
true ? eIndentYesExplicit : eIndentNoExplicit;
362 m_outputMethod = meth;
368 assert((m_hasCDATASectionElems ==
false && m_cdataSectionElems.empty() ==
true ) ||
369 ( m_hasCDATASectionElems ==
true && m_cdataSectionElems.empty() ==
false));
371 return m_hasCDATASectionElems;
405 const Locator* locator,
411 return m_elemNumberNextID++;
417 return m_elemNumberNextID;
423 return m_hasStripOrPreserveSpace;
435 if (hasPreserveOrStripSpaceElements() ==
true &&
438 return internalShouldStripSourceNode(theNode);
447 #if !defined(XALAN_RECURSIVE_STYLESHEET_EXECUTION)
462 const Locator* theLocator)
const;
468 const Locator* theLocator)
const;
499 internalShouldStripSourceNode(
const XalanText& theNode)
const;
507 enum eIndentType { eIndentNoImplicit, eIndentNoExplicit, eIndentYesImplicit, eIndentYesExplicit };
513 eIndentType m_indentResult;
569 XalanQNameVectorType m_cdataSectionElems;
571 bool m_hasCDATASectionElems;
577 URLStackType m_importStack;
601 bool m_needToBuildKeysTable;
606 bool m_outputEscapeURLs;
621 unsigned long m_elemNumberNextID;
626 AttributeSetMapType m_attributeSetsMap;
632 bool m_hasStripOrPreserveSpace;
647 XALAN_CPP_NAMESPACE_END
651 #endif // XALAN_STYLESHEETROOT_HEADER_GUARD
This class defines an interface for classes that resolve namespace prefixes to their URIs.
ElemTemplateElement * getDefaultRootRule() const
Get the template representing the default root rule.
ElemTemplateElement * getDefaultRule() const
Get the template representing the default rule.
bool operator==(const ElemAttributeSet &theLHS, const ElemAttributeSet &theRHS)
void processOutputSpec(const XalanDOMChar *name, const AttributeListType &atts, StylesheetConstructionContext &constructionContext)
Process the "xsl:output" element.
#define XALAN_USES_MEMORY_MANAGER(Type)
void setIndentResult(bool bIndent)
Change the value of the flag for indenting results.
XalanDOMString & getOutputVersion(XalanDOMString &theResult) const
Get the output version string that was specified in the xsl:output element.
#define XALAN_XSLT_EXPORT
static StylesheetRoot * create(MemoryManager &theManager, const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext)
bool getOutputIndent() const
Determine if output indenting was specified in the xsl:output element.
MemoryManager & getMemoryManager()
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.
virtual bool isWhitespace() const =0
Determine whether the text node instance is composed entirely of XML whitespace.
void setOutputMethod(FormatterListener::eFormat meth)
Change the value of the output method, one of the FormatterListener::eFormat values.
XalanDOMString & assign(const XalanDOMChar *theSource)
Xalan implementation of a hashtable.
bool getOmitOutputXMLDecl() const
Determine whether to output XML declarations.
This class represents the base stylesheet or an "import" stylesheet.
XalanDOMString & getOutputDoctypeSystem(XalanDOMString &theResult) const
Get the doctype-system-id string that was specified in the xsl:output element.
bool shouldStripSourceNode(const XalanText &theNode) const
Check to see if a whitespace text node should be stripped from the source tree.
const ElemAttributeSet * getAttributeSet(StylesheetExecutionContext &theExecutionContext, const XalanQName &theQName, size_type matchingIndex, const Locator *theLocator) const
Get the nth attribute set with the specified name.
virtual void postConstruction(StylesheetConstructionContext &constructionContext)
Called after construction is completed.
XalanDOMString & getOutputStandalone(XalanDOMString &theResult) const
Get the standalone string that was specified in the xsl:output element.
FormatterListener::eFormat getOutputMethod() const
Return the output method that was specified in the stylesheet.
XalanVector< const XalanQName * > XalanQNameVectorType
const XalanDOMString & getEncoding() const
Get the character encoding in use.
virtual ~StylesheetRoot()
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
bool getHTMLOutputIndent() const
Determine if output indenting should be enabled for HTML output.
bool hasPreserveOrStripSpaceElements() const
const URLStackType & getImportStack() const
Retrieve the stack of imported stylesheets.
Class to represent a qualified name.
This acts as the stylesheet root of the stylesheet tree, and holds values that are shared by all styl...
URLStackType & getImportStack()
Retrieve the stack of imported stylesheets.
unsigned long getElemNumberCount() const
bool isOutputMethodSet() const
FormatterListener * setupFormatterListener(XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const
Have the stylesheet create the appropriate FormatterListener, based on the XSLTResultTarget provided.
XalanDOMString & getOutputEncoding(XalanDOMString &theResult) const
Get the output encoding 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.
XERCES_CPP_NAMESPACE_QUALIFIER AttributeList AttributeListType
unsigned long getNextElemNumberID()
XalanMap< const XalanQName *, AttributeSetVectorType > AttributeSetMapType
bool hasCDATASectionElements() const
Local implementation of MutableNodeRefList.
bool isCDATASectionElementName(const XalanQName &theQName) const
Determine if a QName is in the list of CDATA section element QNames.
AttributeSetVectorTypeDecl AttributeSetVectorType
void addAttributeSet(ElemAttributeSet &theAttributeSet)
ElemTemplateElement * getDefaultTextRule() const
Get the template representing the default rule for text.
XalanVector< ElemAttributeSet * > AttributeSetVectorTypeDecl
XalanDOMString & getOutputMediaType(XalanDOMString &theResult) const
Get the media-type string that was specified in the xsl:output element.
void process(XalanNode *sourceTree, XSLTResultTarget &outputTarget, StylesheetExecutionContext &executionContext) const
Transform the source tree to the output in the given result tree target.
StylesheetRoot(const XalanDOMString &baseIdentifier, StylesheetConstructionContext &constructionContext)
Construct a Stylesheet from a Document.
Interpreting class diagrams
Doxygen and
GraphViz are
used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.
|
|