Package client.net.sf.saxon.ce.value

Examples of client.net.sf.saxon.ce.value.QNameValue


            case NODE_NAME:
                int nc = node.getNameCode();
                if (nc == -1) {
                    return null;
                }
                return new QNameValue(node.getNamePool(), nc);
            default:
                throw new UnsupportedOperationException("Unknown name operation");
        }
        return new StringValue(s);
    }
View Full Code Here


        } catch (XPathException e) {
            e.maybeSetLocation(getSourceLocator());
            throw e;
        }

        return new QNameValue(qName, BuiltInAtomicType.QNAME);
    }
View Full Code Here

                XPathException err = new XPathException("Malformed prefix in QName: '" + parts[0] + '\'');
                err.setErrorCode("FOCA0002");
                throw err;
            }
            return Literal.makeLiteral(
                    new QNameValue(parts[0], uri, parts[1], BuiltInAtomicType.QNAME, true));
        } catch (QNameException e) {
            dynamicError(e.getMessage(), "FOCA0002", null);
            return null;
        } catch (XPathException err) {
            err.maybeSetLocation(getSourceLocator());
View Full Code Here

            if (parts[0].length() != 0 && !NameChecker.isValidNCName(parts[0])) {
                XPathException err = new XPathException("Malformed prefix in QName: '" + parts[0] + '\'');
                err.setErrorCode("FORG0001");
                throw err;
            }
            return new QNameValue(parts[0], uri, parts[1], BuiltInAtomicType.QNAME, true);
        } catch (QNameException e) {
            dynamicError(e.getMessage(), "FOCA0002", context);
            return null;
        } catch (XPathException err) {
            err.maybeSetLocation(getSourceLocator());
View Full Code Here

TOP

Related Classes of client.net.sf.saxon.ce.value.QNameValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.