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

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

Go to download

Saxon a complete and conformant implementation of the XSLT 2.0, XQuery 1.0, and XPath 2.0 Recommendations published on 23 January 2007 by W3C

The newest version!
package net.sf.saxon.style;
import net.sf.saxon.Configuration;
import net.sf.saxon.value.Whitespace;
import net.sf.saxon.expr.Expression;
import net.sf.saxon.instruct.Executable;
import net.sf.saxon.om.AttributeCollection;
import net.sf.saxon.om.NamespaceConstant;
import net.sf.saxon.om.StandardNames;
import net.sf.saxon.sort.StringCollator;
import net.sf.saxon.trans.SaxonErrorCode;
import net.sf.saxon.trans.XPathException;

import java.net.URI;
import java.net.URISyntaxException;
import java.text.Collator;
import java.util.Locale;
import java.util.Properties;

/**
* A saxon:collation element in the style sheet: this is a top-level
* element that defines details of a named collation. The attributes of the
* element provide different ways of instantiating an instance of net.sf.saxon.sort.StringCollator
 *
 * 

saxon:collation

is deprecated from Saxon 8.8

*/ public class SaxonCollation extends StyleElement { private String collationName; private StringCollator collator; public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); String nameAtt = null; // collation name for use in expressions String defaultAtt = null; Properties props = new Properties(); for (int a=0; a




© 2015 - 2024 Weber Informatics LLC | Privacy Policy