/** * It is possible for a single output element to use the same prefix to refer to different * namespaces. In this case we have to generate an alternative prefix for uniqueness. The * one we generate is based on the sequential position of the element/attribute: this is * designed to ensure both uniqueness (with a high probability) and repeatability * @param nscode the proposed namespace code * @param seq sequence number for use in the substitute prefix * @return a prefix to use in place of the one originally proposed */ private String getSubstitutePrefix(int nscode, int seq) { String prefix = getNamePool().getPrefixFromNamespaceCode(nscode); return prefix + '_' + seq; }
/** * It is possible for a single output element to use the same prefix to refer to different * namespaces. In this case we have to generate an alternative prefix for uniqueness. The * one we generate is based on the sequential position of the element/attribute: this is * designed to ensure both uniqueness (with a high probability) and repeatability * @param nscode the proposed namespace code * @param seq sequence number for use in the substitute prefix * @return a prefix to use in place of the one originally proposed */ private String getSubstitutePrefix(int nscode, int seq) { String prefix = getNamePool().getPrefixFromNamespaceCode(nscode); return prefix + '_' + seq; }
/** * It is possible for a single output element to use the same prefix to refer to different * namespaces. In this case we have to generate an alternative prefix for uniqueness. The * one we generate is based on the sequential position of the element/attribute: this is * designed to ensure both uniqueness (with a high probability) and repeatability * @param nscode the proposed namespace code * @param seq sequence number for use in the substitute prefix * @return a prefix to use in place of the one originally proposed */ private String getSubstitutePrefix(int nscode, int seq) { String prefix = getNamePool().getPrefixFromNamespaceCode(nscode); return prefix + '_' + seq; }
getNamePool().getDisplayName(nameCode), hostLanguage, pendingStartTag == -2, } else { XPathException err = new XPathException("Cannot create an element having two attributes with the same name: " + Err.wrap(getNamePool().getDisplayName(nameCode), Err.ATTRIBUTE)); err.setErrorCode("XQDY0025"); throw err;
getNamePool().getDisplayName(nameCode), hostLanguage, pendingStartTag == -2, } else { XPathException err = new XPathException("Cannot create an element having two attributes with the same name: " + Err.wrap(getNamePool().getDisplayName(nameCode), Err.ATTRIBUTE)); err.setErrorCode("XQDY0025"); throw err;
getNamePool().getDisplayName(nameCode), hostLanguage, level<0 || currentLevelIsDocument[level], } else { XPathException err = new XPathException("Cannot create an element having two attributes with the same name: " + Err.wrap(getNamePool().getDisplayName(nameCode), Err.ATTRIBUTE)); err.setErrorCode("XQDY0025"); throw err;
NamePool pool = getNamePool(); if (pendingStartTag < 0) { throw NoOpenStartTagException.makeNoOpenStartTagException(
NamePool pool = getNamePool(); if (pendingStartTag < 0) { throw NoOpenStartTagException.makeNoOpenStartTagException(
NamePool pool = getNamePool(); if (pendingStartTag < 0) { throw NoOpenStartTagException.makeNoOpenStartTagException(
NamePool namePool = getNamePool(); int nscode = namePool.getNamespaceCode(nameCode); if (nscode == -1) {
NamePool namePool = getNamePool(); int nscode = namePool.getNamespaceCode(nameCode); if (nscode == -1) {
NamePool namePool = getNamePool(); int nscode = namePool.getNamespaceCode(nameCode); if (nscode == -1) {