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

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

package net.sf.saxon.style;
import net.sf.saxon.Err;
import net.sf.saxon.value.Whitespace;
import net.sf.saxon.sort.IntHashMap;
import net.sf.saxon.expr.Expression;
import net.sf.saxon.instruct.Executable;
import net.sf.saxon.om.*;
import net.sf.saxon.trans.XPathException;

import java.util.*;

/**
* An xsl:character-map declaration in the stylesheet. 
*/ public class XSLCharacterMap extends StyleElement { //int fingerprint; // the name of this character map String use; // the value of the use-character-maps attribute, as supplied List characterMapElements = null; // list of XSLCharacterMap objects referenced by this one boolean validated = false; // set to true once validate() has been called boolean redundant = false; // set to true if another character-map overrrides this one /** * Get the fingerprint of the name of this character map * @return the fingerprint value */ public StructuredQName getCharacterMapName() { return getObjectName(); } /** * Test whether this character map is redundant (because another with the * same name has higher import precedence). Note that a character map is not * considered redundant simply because it is not referenced in an xsl:output * declaration; we allow character-maps to be selected at run-time using the * setOutputProperty() API. * @return true if this character map is redundant */ public boolean isRedundant() { return redundant; } /** * Validate the attributes on this instruction * @throws XPathException */ public void prepareAttributes() throws XPathException { String name = null; use = null; AttributeCollection atts = getAttributeList(); for (int a=0; a




© 2015 - 2025 Weber Informatics LLC | Privacy Policy