private void checkNotNamespaceSensitive(Configuration config, final int typeCode) throws XPathException { SchemaType type = config.getSchemaType(typeCode & NamePool.FP_MASK); if (type instanceof SimpleType && ((SimpleType)type).isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); // err.setErrorCode((language == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); // throw err; } }
((NodeInfo)item).copy(this, copyNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((hostLanguage == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e;
((NodeInfo)item).copy(this, copyNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((hostLanguage == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e;
((NodeInfo)item).copy(this, copyNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((hostLanguage == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e;
private void checkNotNamespaceSensitive(Configuration config, final int typeCode) throws XPathException { SchemaType type = config.getSchemaType(typeCode & NamePool.FP_MASK); if (type instanceof SimpleType && ((SimpleType)type).isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); // err.setErrorCode((language == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); // throw err; } }
} catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e;
private void checkNotNamespaceSensitive(Configuration config, final int typeCode) throws XPathException { SchemaType type = config.getSchemaType(typeCode & NamePool.FP_MASK); if (type instanceof SimpleType && ((SimpleType)type).isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); // err.setErrorCode((language == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); // throw err; } }
} catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e;
/** * Check whether the content of an attribute is namespace-sensitive * * * @param type the type annotation of the node * @param nodeNr the the node number of the elemente * @throws XPathException if an error occurs */ private void checkNotNamespaceSensitiveAttribute(SimpleType type, int nodeNr) throws XPathException { if (type.isNamespaceSensitive()) { if (type.isAtomicType()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } else { // For a union or list type, we need to check whether the actual value is namespace-sensitive AtomicSequence value = tree.getTypedValueOfAttribute(null, nodeNr); for (AtomicValue val : value) { if (val.getPrimitiveType().isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } } } } }
} catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e; } catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e;
/** * Check whether the content of an element is namespace-sensitive * * * @param type the type annotation of the node * @param nodeNr the the node number of the elemente * @throws XPathException if an error occurs */ protected void checkNotNamespaceSensitiveElement(SchemaType type, int nodeNr) throws XPathException { if (type instanceof SimpleType && ((SimpleType) type).isNamespaceSensitive()) { if (type.isAtomicType()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } else { // For a union or list type, we need to check whether the actual value is namespace-sensitive AtomicSequence value = tree.getTypedValueOfElement(nodeNr); for (AtomicValue val : value) { if (val.getPrimitiveType().isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } } } } }
} catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e; } catch (CopyNamespaceSensitiveException e) { int lang = receiver.getPipelineConfiguration().getHostLanguage(); e.setErrorCode(lang == Configuration.XSLT ? "XTTE0950" : "XQTY0086"); throw e;
/** * Check whether the content of an element is namespace-sensitive * * * @param type the type annotation of the node * @param nodeNr the the node number of the elemente * @throws XPathException if an error occurs */ protected void checkNotNamespaceSensitiveElement(SchemaType type, int nodeNr) throws XPathException { if (type instanceof SimpleType && ((SimpleType) type).isNamespaceSensitive()) { if (type.isAtomicType()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } else { // For a union or list type, we need to check whether the actual value is namespace-sensitive AtomicSequence value = tree.getTypedValueOfElement(nodeNr); for (AtomicValue val : value) { if (val.getPrimitiveType().isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } } } } }
source.copy(eval, whichNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((getHostLanguage() == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e; source.copy(val, whichNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((getHostLanguage() == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e;
/** * Check whether the content of an attribute is namespace-sensitive * * * @param type the type annotation of the node * @param nodeNr the the node number of the elemente * @throws XPathException if an error occurs */ private void checkNotNamespaceSensitiveAttribute(SimpleType type, int nodeNr) throws XPathException { if (type.isNamespaceSensitive()) { if (type.isAtomicType()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } else { // For a union or list type, we need to check whether the actual value is namespace-sensitive AtomicSequence value = tree.getTypedValueOfAttribute(null, nodeNr); for (AtomicValue val : value) { if (val.getPrimitiveType().isNamespaceSensitive()) { throw new CopyNamespaceSensitiveException( "Cannot copy QName or NOTATION values without copying namespaces"); } } } } }
source.copy(eval, whichNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((getHostLanguage() == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e; source.copy(val, whichNamespaces, true, locationId); } catch (CopyNamespaceSensitiveException e) { e.setErrorCode((getHostLanguage() == Configuration.XSLT ? "XTTE0950" : "XQTY0086")); throw e;