Class XSLOutput

    • Constructor Detail

      • XSLOutput

        public XSLOutput()
    • Method Detail

      • isDeclaration

        public boolean isDeclaration()
        Ask whether this node is a declaration, that is, a permitted child of xsl:stylesheet (including xsl:include and xsl:import).
        Overrides:
        isDeclaration in class StyleElement
        Returns:
        true for this element
      • prepareAttributes

        protected void prepareAttributes()
        Description copied from class: StyleElement
        Set the attribute list for the element. This is called to process the attributes (note the distinction from processAttributes in the superclass). Must be supplied in a subclass
        Specified by:
        prepareAttributes in class StyleElement
      • getFormatQName

        public StructuredQName getFormatQName()
        Get the name of the xsl:output declaration
        Returns:
        the name, as a structured QName; or null for an unnamed output declaration
      • validate

        public void validate​(ComponentDeclaration decl)
                      throws XPathException
        Description copied from class: StyleElement
        Check that the stylesheet element is valid. This is called once for each element, after the entire tree has been built. As well as validation, it can perform first-time initialisation. The default implementation does nothing; it is normally overriden in subclasses.
        Overrides:
        validate in class StyleElement
        Parameters:
        decl - the declaration to be validated
        Throws:
        XPathException - if any error is found during validation
      • compileDeclaration

        public void compileDeclaration​(Compilation compilation,
                                       ComponentDeclaration decl)
        Description copied from class: StyleElement
        Compile a declaration in the stylesheet tree for use at run-time.
        Overrides:
        compileDeclaration in class StyleElement
        Parameters:
        compilation - the compilation episode
        decl - the containing top-level declaration, for example xsl:function or xsl:template
      • processVersionAttribute

        protected void processVersionAttribute​(NamespaceUri ns)
        Process the [xsl:]version attribute if there is one
        Overrides:
        processVersionAttribute in class StyleElement
        Parameters:
        ns - the namespace URI of the attribute required, either the XSLT namespace or ""
      • gatherOutputProperties

        protected void gatherOutputProperties​(java.util.Properties details,
                                              java.util.HashMap<java.lang.String,​java.lang.Integer> precedences,
                                              int thisPrecedence)
                                       throws XPathException
        Validate the properties, and return the values as additions to a supplied Properties object.
        Parameters:
        details - the Properties object to be populated with property values
        precedences - a HashMap to be populated with information about the precedence of the property values: the key is the property name as a Clark name, the value is a boxed integer giving the property's import precedence
        thisPrecedence - the precedence of thi instruction
        Throws:
        XPathException - if an error is found
      • prepareCharacterMaps

        public static java.lang.String prepareCharacterMaps​(StyleElement element,
                                                            java.lang.String useCharacterMaps,
                                                            java.util.Properties details)
        Process the use-character-maps attribute
        Parameters:
        element - the stylesheet element on which the use-character-maps attribute appears
        useCharacterMaps - the value of the use-character-maps attribute
        details - The existing output properties
        Returns:
        the augmented value of the use-character-maps attribute in Clark notation