schemaType, serializationAttributes, getContainingPackage().getCharacterMapIndex() );
schemaType, serializationAttributes, getContainingPackage().getCharacterMapIndex() );
private void readCharacterMaps(NodeInfo packageElement) throws XPathException { StylesheetPackage pack = packStack.peek(); NodeInfo charMapElement; AxisIterator iterator = packageElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "charMap", config.getNamePool())); while ((charMapElement = iterator.next()) != null) { StructuredQName mapName = getQNameAttribute(charMapElement, "name"); NodeInfo mappingElement; AxisIterator iterator1 = charMapElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "m", config.getNamePool())); IntHashMap<String> map = new IntHashMap<>(); while ((mappingElement = iterator1.next()) != null) { int c = getIntegerAttribute(mappingElement, "c"); String s = mappingElement.getAttributeValue("", "s"); map.put(c, s); } CharacterMap characterMap = new CharacterMap(mapName, map); pack.getCharacterMapIndex().putCharacterMap(mapName, characterMap); } }
private void readCharacterMaps(NodeInfo packageElement) { StylesheetPackage pack = packStack.peek(); NodeInfo charMapElement; AxisIterator iterator = packageElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "charMap", config.getNamePool())); while ((charMapElement = iterator.next()) != null) { StructuredQName mapName = getQNameAttribute(charMapElement, "name"); NodeInfo mappingElement; AxisIterator iterator1 = charMapElement.iterateAxis(AxisInfo.CHILD, new NameTest(Type.ELEMENT, NamespaceConstant.SAXON_XSLT_EXPORT, "m", config.getNamePool())); IntHashMap<String> map = new IntHashMap<>(); while ((mappingElement = iterator1.next()) != null) { int c = getIntegerAttribute(mappingElement, "c"); String s = mappingElement.getAttributeValue("", "s"); map.put(c, s); } CharacterMap characterMap = new CharacterMap(mapName, map); pack.getCharacterMapIndex().putCharacterMap(mapName, characterMap); } }