Class XSLDecimalFormat

  • All Implemented Interfaces:
    NodeInfo, javax.xml.transform.dom.DOMLocator, javax.xml.transform.Source, javax.xml.transform.SourceLocator, org.w3c.dom.Element, org.w3c.dom.NamedNodeMap, org.w3c.dom.Node, org.xml.sax.Locator

    public class XSLDecimalFormat
    extends StyleElement
    Handler for xsl:decimal-format elements in stylesheet.
    • Field Detail

      • name

        java.lang.String name
      • decimalSeparator

        java.lang.String decimalSeparator
      • groupingSeparator

        java.lang.String groupingSeparator
      • infinity

        java.lang.String infinity
      • minusSign

        java.lang.String minusSign
      • NaN

        java.lang.String NaN
      • percent

        java.lang.String percent
      • perMille

        java.lang.String perMille
      • zeroDigit

        java.lang.String zeroDigit
      • digit

        java.lang.String digit
      • patternSeparator

        java.lang.String patternSeparator
    • Constructor Detail

      • XSLDecimalFormat

        public XSLDecimalFormat()
    • Method Detail

      • prepareAttributes

        public void prepareAttributes()
                               throws javax.xml.transform.TransformerConfigurationException
        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
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • validate

        public void validate()
                      throws javax.xml.transform.TransformerConfigurationException
        Description copied from class: StyleElement
        Check that the 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
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • preprocess

        public void preprocess()
                        throws javax.xml.transform.TransformerConfigurationException
        Description copied from class: StyleElement
        Default preprocessing method does nothing. It is implemented for those top-level elements that can be evaluated before the source document is available, for example xsl:key, xsl:attribute-set, xsl:template, xsl:locale
        Overrides:
        preprocess in class StyleElement
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • process

        public void process​(Context context)
        Description copied from class: StyleElement
        Process: called to do the real work of this stylesheet element. This method must be implemented in each subclass.
        Specified by:
        process in class StyleElement
        Parameters:
        context - The context in the source XML document, giving access to the current node, the current variables, etc.