Package net.sf.saxon.xpath

Examples of net.sf.saxon.xpath.DynamicError


                        (standalone != null ? " standalone=\"" + standalone + '\"' : "") + "?>");
                    // no longer write a newline character: it's wrong if the output is an
                    // external general parsed entity
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here


                writer.write("  PUBLIC \"" + publicId + "\">\n");
            } else {
                writer.write("  PUBLIC \"" + publicId + "\" \"" + systemId + "\">\n");
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

        try {
            if (writer != null) {
                writer.flush();
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

            if (nameCode < 1024) {
                nameLookup[nameCode] = displayName;
            }
            int badchar = testCharacters(displayName);
            if (badchar!=0) {
                throw new DynamicError("Element name contains a character (decimal + " +
                                                badchar + ") not available in the selected encoding");
            }
        }

        elementStack.push(displayName);
        elementCode = nameCode;

        try {
            if (empty) {
                String systemId = outputProperties.getProperty(OutputKeys.DOCTYPE_SYSTEM);
                String publicId = outputProperties.getProperty(OutputKeys.DOCTYPE_PUBLIC);
                if (systemId!=null) {
                    writeDocType(displayName, systemId, publicId);
                }
                empty = false;
            }
            if (openStartTag) {
                closeStartTag(displayName, false);
            }
            writer.write('<');
            writer.write(displayName);
            openStartTag = true;

        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

                writer.write(' ');
                writeAttribute(elementCode, "xmlns", nsuri, 0);
            } else {
                int badchar = testCharacters(nsprefix);
                if (badchar!=0) {
                    throw new DynamicError("Namespace prefix contains a character (decimal + " +
                                                    badchar + ") not available in the selected encoding");
                }
                if (undeclareNamespaces || !nsuri.equals("")) {
                    writer.write(' ');
                    writeAttribute(elementCode, "xmlns:" + nsprefix, nsuri, 0);
                }
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

            if (nameCode < 1024) {
                nameLookup[nameCode] = displayName;
            }
            int badchar = testCharacters(displayName);
            if (badchar!=0) {
                throw new DynamicError("Attribute name contains a character (decimal + " +
                                                badchar + ") not available in the selected encoding");
            }
        }
        try {
            writer.write(' ');
            writeAttribute(
                elementCode,
                displayName,
                value,
                properties );

        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

                    writer.write('>');
                }
                openStartTag = false;
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

                writer.write("=\"");
                writeEscape(value, true);
                writer.write('\"');
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

                writer.write("</");
                writer.write(displayName);
                writer.write('>');
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

                    }
                    writeEscape(chars, false);
                }
            }
        } catch (java.io.IOException err) {
            throw new DynamicError(err);
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.xpath.DynamicError

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.