All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.saxon.style.XSLDecimalFormat Maven / Gradle / Ivy

package net.sf.saxon.style;
import net.sf.saxon.expr.Expression;
import net.sf.saxon.instruct.Executable;
import net.sf.saxon.om.AttributeCollection;
import net.sf.saxon.om.NamespaceException;
import net.sf.saxon.om.StandardNames;
import net.sf.saxon.om.StructuredQName;
import net.sf.saxon.trans.DecimalFormatManager;
import net.sf.saxon.trans.DecimalSymbols;
import net.sf.saxon.trans.XPathException;
import net.sf.saxon.value.StringValue;
import net.sf.saxon.value.Whitespace;

import java.util.Arrays;
import java.util.HashMap;

/**
* Handler for xsl:decimal-format elements in stylesheet. 
*/ public class XSLDecimalFormat extends StyleElement { boolean prepared = false; String name; String decimalSeparator; String groupingSeparator; String infinity; String minusSign; String NaN; String percent; String perMille; String zeroDigit; String digit; String patternSeparator; public void prepareAttributes() throws XPathException { if (prepared) { return; } prepared = true; AttributeCollection atts = getAttributeList(); for (int a=0; a




© 2015 - 2025 Weber Informatics LLC | Privacy Policy