Merge
This commit is contained in:
commit
31af6b45ea
@ -1015,7 +1015,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
"\uC2DC\uC2A4\uD15C \uC18D\uC131 org.xml.sax.parser\uAC00 \uC9C0\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_PARSER_ARG_CANNOT_BE_NULL,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D\uAE30 \uC778\uC218\uB294 \uB110\uC774 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D\uAE30 \uC778\uC218\uB294 \uB110\uC774 \uC544\uB2C8\uC5B4\uC57C \uD569\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_FEATURE,
|
||||
"\uAE30\uB2A5: {0}"},
|
||||
@ -1252,7 +1252,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
"\uD2B9\uC218 \uCDA9\uB3CC\uC774 \uBC1C\uACAC\uB428: {0}. \uC2A4\uD0C0\uC77C\uC2DC\uD2B8\uC5D0\uC11C \uBC1C\uACAC\uB41C \uB9C8\uC9C0\uB9C9 \uD56D\uBAA9\uC774 \uC0AC\uC6A9\uB429\uB2C8\uB2E4."},
|
||||
|
||||
{ WG_PARSING_AND_PREPARING,
|
||||
"========= \uAD6C\uBB38 \uBD84\uC11D \uD6C4 {0} \uC900\uBE44 \uC911 =========="},
|
||||
"========= \uAD6C\uBB38\uBD84\uC11D \uD6C4 {0} \uC900\uBE44 \uC911 =========="},
|
||||
|
||||
{ WG_ATTR_TEMPLATE,
|
||||
"\uC18D\uC131 \uD15C\uD50C\uB9AC\uD2B8, {0}"},
|
||||
@ -1357,7 +1357,7 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
{ "optionOUT", " [-OUT outputFileName]"},
|
||||
{ "optionLXCIN", " [-LXCIN compiledStylesheetFileNameIn]"},
|
||||
{ "optionLXCOUT", " [-LXCOUT compiledStylesheetFileNameOutOut]"},
|
||||
{ "optionPARSER", " [-PARSER \uAD6C\uBB38 \uBD84\uC11D\uAE30 \uC5F0\uACB0\uC758 \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984]"},
|
||||
{ "optionPARSER", " [-PARSER \uAD6C\uBB38\uBD84\uC11D\uAE30 \uC5F0\uACB0\uC758 \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984]"},
|
||||
{ "optionE", " [-E(\uC5D4\uD2F0\uD2F0 \uCC38\uC870 \uD655\uC7A5 \uC548\uD568)]"},
|
||||
{ "optionV", " [-E(\uC5D4\uD2F0\uD2F0 \uCC38\uC870 \uD655\uC7A5 \uC548\uD568)]"},
|
||||
{ "optionQC", " [-QC(\uC790\uB3D9 \uD328\uD134 \uCDA9\uB3CC \uACBD\uACE0)]"},
|
||||
@ -1378,9 +1378,9 @@ public class XSLTErrorResources_ko extends ListResourceBundle
|
||||
{ "optionHTML", " [-HTML(HTML \uD3EC\uB9F7\uD130 \uC0AC\uC6A9)]"},
|
||||
{ "optionPARAM", " [-PARAM \uC774\uB984 \uD45C\uD604\uC2DD(\uC2A4\uD0C0\uC77C\uC2DC\uD2B8 \uB9E4\uAC1C\uBCC0\uC218 \uC124\uC815)]"},
|
||||
{ "noParsermsg1", "XSL \uD504\uB85C\uC138\uC2A4\uB97C \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38 \uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38\uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg3", "\uD074\uB798\uC2A4 \uACBD\uB85C\uB97C \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg5", "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
|
||||
{ "optionURIRESOLVER", " [-URIRESOLVER \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984(URI \uBD84\uC11D\uC5D0 \uC0AC\uC6A9\uD560 URIResolver)]"},
|
||||
{ "optionENTITYRESOLVER", " [-ENTITYRESOLVER \uC804\uCCB4 \uD074\uB798\uC2A4 \uC774\uB984(\uC5D4\uD2F0\uD2F0 \uBD84\uC11D\uC5D0 \uC0AC\uC6A9\uD560 EntityResolver)]"},
|
||||
|
@ -482,7 +482,7 @@ public class XSLTErrorResources_sv extends ListResourceBundle
|
||||
{"ER0000" , "{0}" },
|
||||
|
||||
{ ER_NO_CURLYBRACE,
|
||||
"Fel: Uttryck kan inte inneh\u00E5lla '{'"},
|
||||
"Fel: Uttryck f\u00E5r inte inneh\u00E5lla '{'"},
|
||||
|
||||
{ ER_ILLEGAL_ATTRIBUTE ,
|
||||
"{0} har ett otill\u00E5tet attribut: {1}"},
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
@ -417,7 +417,7 @@ public class ErrorMessages_ko extends ListResourceBundle {
|
||||
* XSLTC to process the XML input document had a configuration problem.
|
||||
*/
|
||||
{ErrorMsg.SAX_PARSER_CONFIG_ERR,
|
||||
"JAXP \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC81C\uB300\uB85C \uAD6C\uC131\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
|
||||
"JAXP \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC81C\uB300\uB85C \uAD6C\uC131\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
/*
|
||||
* Note to translators: The substitution text names the internal error
|
||||
|
@ -210,7 +210,7 @@ public class ErrorMessages_ko extends ListResourceBundle {
|
||||
* DTD.
|
||||
*/
|
||||
{BasisLibrary.PARSER_DTD_SUPPORT_ERR,
|
||||
"\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 DTD \uC120\uC5B8 \uC774\uBCA4\uD2B8\uB97C \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
"\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 DTD \uC120\uC5B8 \uC774\uBCA4\uD2B8\uB97C \uCC98\uB9AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
/*
|
||||
* Note to translators: The following message indicates that the XML
|
||||
@ -219,7 +219,7 @@ public class ErrorMessages_ko extends ListResourceBundle {
|
||||
* declarations.
|
||||
*/
|
||||
{BasisLibrary.NAMESPACES_SUPPORT_ERR,
|
||||
"\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 XML \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
"\uC0AC\uC6A9 \uC911\uC778 SAX \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 XML \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
/*
|
||||
* Note to translators: The substitution text is the URI that was in
|
||||
|
@ -49,11 +49,11 @@ jaxp-secureprocessing-feature = FEATURE_SECURE_PROCESSING: \uBCF4\uC548 \uAD00\u
|
||||
property-not-supported = ''{0}'' \uC18D\uC131\uC740 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
||||
property-not-recognized = ''{0}'' \uC18D\uC131\uC744 \uC778\uC2DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
property-read-only = ''{0}'' \uC18D\uC131\uC740 \uC77D\uAE30 \uC804\uC6A9\uC785\uB2C8\uB2E4.
|
||||
property-not-parsing-supported = \uAD6C\uBB38 \uBD84\uC11D \uC911 ''{0}'' \uC18D\uC131\uC740 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
||||
property-not-parsing-supported = \uAD6C\uBB38\uBD84\uC11D \uC911 ''{0}'' \uC18D\uC131\uC740 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
||||
dom-node-read-not-supported = DOM \uB178\uB4DC \uC18D\uC131\uC744 \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. DOM \uD2B8\uB9AC\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
||||
incompatible-class = ''{0}'' \uC18D\uC131\uC5D0 \uB300\uD574 \uC9C0\uC815\uB41C \uAC12\uC758 \uB370\uC774\uD130\uD615\uC744 {1}(\uC73C)\uB85C \uBCC0\uD658\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
|
||||
start-document-not-called="{0}" \uC18D\uC131\uC740 startDocument \uC774\uBCA4\uD2B8\uAC00 \uBC1C\uC0DD\uB41C \uD6C4 \uD638\uCD9C\uD574\uC57C \uD569\uB2C8\uB2E4.
|
||||
nullparameter="{0}"\uC5D0 \uB300\uD55C \uC774\uB984 \uB9E4\uAC1C\uBCC0\uC218\uAC00 \uB110\uC785\uB2C8\uB2E4.
|
||||
errorHandlerNotSet=\uACBD\uACE0: \uAC80\uC99D\uC774 \uC124\uC815\uB418\uC5C8\uC9C0\uB9CC org.xml.sax.ErrorHandler\uAC00 \uC801\uC808\uD788 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uAE30\uBCF8 ErrorHandler\uB97C \uC0AC\uC6A9\uD558\uC5EC \uCC98\uC74C {0}\uAC1C\uC758 \uC624\uB958\uB97C \uC778\uC1C4\uD569\uB2C8\uB2E4. \uC774 \uC624\uB958\uB97C \uC218\uC815\uD558\uB824\uBA74 ''setErrorHandler'' \uBA54\uC18C\uB4DC\uB97C \uD638\uCD9C\uD558\uC2ED\uC2DC\uC624.
|
||||
errorHandlerNotSet=\uACBD\uACE0: \uAC80\uC99D\uC774 \uC124\uC815\uB418\uC5C8\uC9C0\uB9CC org.xml.sax.ErrorHandler\uAC00 \uC801\uC808\uD788 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uAE30\uBCF8 ErrorHandler\uB97C \uC0AC\uC6A9\uD558\uC5EC \uCC98\uC74C {0}\uAC1C\uC758 \uC624\uB958\uB97C \uC778\uC1C4\uD569\uB2C8\uB2E4. \uC774 \uC624\uB958\uB97C \uC218\uC815\uD558\uB824\uBA74 ''setErrorHandler'' \uBA54\uC18C\uB4DC\uB97C \uD638\uCD9C\uD558\uC2ED\uC2DC\uC624.
|
||||
errorHandlerDebugMsg=\uC624\uB958: URI = "{0}", \uD589 = "{1}", : {2}
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
#
|
||||
# This code is free software; you can redistribute it and/or modify it
|
||||
@ -58,4 +58,4 @@ XPointerResolutionUnsuccessful = XPointer-matchningen utf\u00F6rdes inte.
|
||||
|
||||
# Messages from erroneous set-up
|
||||
IncompatibleNamespaceContext = Typ av NamespaceContext \u00E4r inkompatibel med XInclude; det kr\u00E4vs en instans av XIncludeNamespaceSupport
|
||||
ExpandedSystemId = Kunde inte ut\u00F6ka system-ID:t f\u00F6r inkluderad resurs
|
||||
ExpandedSystemId = Kunde inte ut\u00F6ka system-id:t f\u00F6r inkluderad resurs
|
||||
|
@ -295,7 +295,7 @@
|
||||
|
||||
|
||||
# Implementation limits
|
||||
EntityExpansionLimit=JAXP00010001: \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC774 \uBB38\uC11C\uC5D0\uC11C "{0}"\uAC1C\uB97C \uCD08\uACFC\uD558\uB294 \uC5D4\uD2F0\uD2F0 \uD655\uC7A5\uC744 \uBC1C\uACAC\uD588\uC2B5\uB2C8\uB2E4. \uC774\uB294 JDK\uC5D0\uC11C \uC801\uC6A9\uD558\uB294 \uC81C\uD55C\uC785\uB2C8\uB2E4.
|
||||
EntityExpansionLimit=JAXP00010001: \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC774 \uBB38\uC11C\uC5D0\uC11C "{0}"\uAC1C\uB97C \uCD08\uACFC\uD558\uB294 \uC5D4\uD2F0\uD2F0 \uD655\uC7A5\uC744 \uBC1C\uACAC\uD588\uC2B5\uB2C8\uB2E4. \uC774\uB294 JDK\uC5D0\uC11C \uC801\uC6A9\uD558\uB294 \uC81C\uD55C\uC785\uB2C8\uB2E4.
|
||||
ElementAttributeLimit=JAXP00010002: "{0}" \uC694\uC18C\uC5D0 "{1}"\uAC1C\uB97C \uCD08\uACFC\uD558\uB294 \uC18D\uC131\uC774 \uC788\uC2B5\uB2C8\uB2E4. "{1}"\uC740(\uB294) JDK\uC5D0\uC11C \uC801\uC6A9\uD558\uB294 \uC81C\uD55C\uC785\uB2C8\uB2E4.
|
||||
MaxEntitySizeLimit=JAXP00010003: "{0}" \uC5D4\uD2F0\uD2F0\uC758 \uAE38\uC774\uAC00 "{3}"\uC5D0\uC11C \uC124\uC815\uB41C "{2}" \uC81C\uD55C\uC744 \uCD08\uACFC\uD558\uB294 "{1}"\uC785\uB2C8\uB2E4.
|
||||
TotalEntitySizeLimit=JAXP00010004: \uC5D4\uD2F0\uD2F0\uC758 \uB204\uC801 \uD06C\uAE30\uAC00 "{2}"\uC5D0\uC11C \uC124\uC815\uD55C "{1}" \uC81C\uD55C\uC744 \uCD08\uACFC\uD558\uB294 "{0}"\uC785\uB2C8\uB2E4.
|
||||
|
@ -312,7 +312,7 @@
|
||||
FacetValueFromBase = FacetValueFromBase: ''{0}'' \uC720\uD615\uC758 \uC120\uC5B8\uC5D0\uC11C ''{2}'' \uBA74\uC758 ''{1}'' \uAC12\uC740 \uAE30\uBCF8 \uC720\uD615 ''{3}''\uC758 \uAC12 \uACF5\uBC31\uC5D0\uC11C \uC640\uC57C \uD569\uB2C8\uB2E4.
|
||||
FixedFacetValue = FixedFacetValue: {3}\uC758 \uC815\uC758\uC5D0\uC11C ''{0}'' \uBA74\uC5D0 \uB300\uD55C ''{1}'' \uAC12\uC774 \uBD80\uC801\uD569\uD569\uB2C8\uB2E4. ''{0}''\uC5D0 \uB300\uD55C \uAC12\uC774 \uC870\uC0C1 \uC720\uD615 \uC911 \uD558\uB098\uC5D0\uC11C ''{2}''(\uC73C)\uB85C \uC124\uC815\uB418\uC5C8\uC73C\uBA70 '{'fixed'}' = true\uC774\uAE30 \uB54C\uBB38\uC785\uB2C8\uB2E4.
|
||||
InvalidRegex = InvalidRegex: \uD328\uD134 \uAC12 ''{0}''\uC740(\uB294) \uC801\uD569\uD55C \uC815\uADDC \uD45C\uD604\uC2DD\uC774 \uC544\uB2D9\uB2C8\uB2E4. ''{2}'' \uC5F4\uC5D0\uC11C ''{1}'' \uC624\uB958\uAC00 \uBCF4\uACE0\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
||||
MaxOccurLimit = \uAD6C\uBB38 \uBD84\uC11D\uAE30\uC758 \uD604\uC7AC \uAD6C\uC131\uC5D0\uC11C maxOccurs \uC18D\uC131\uAC12\uC744 {0} \uAC12\uBCF4\uB2E4 \uD06C\uAC8C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
MaxOccurLimit = \uAD6C\uBB38\uBD84\uC11D\uAE30\uC758 \uD604\uC7AC \uAD6C\uC131\uC5D0\uC11C maxOccurs \uC18D\uC131\uAC12\uC744 {0} \uAC12\uBCF4\uB2E4 \uD06C\uAC8C \uC124\uC815\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
PublicSystemOnNotation = PublicSystemOnNotation: \uD558\uB098 \uC774\uC0C1\uC758 ''public''\uACFC ''system''\uC774 ''notation'' \uC694\uC18C\uC5D0 \uB098\uD0C0\uB098\uC57C \uD569\uB2C8\uB2E4.
|
||||
SchemaLocation = SchemaLocation: schemaLocation \uAC12 = ''{0}''\uC5D0\uB294 \uC9DD\uC218 \uAC1C\uC758 URI\uAC00 \uC788\uC5B4\uC57C \uD569\uB2C8\uB2E4.
|
||||
TargetNamespace.1 = TargetNamespace.1: ''{0}'' \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uAC00 \uD544\uC694\uD558\uC9C0\uB9CC \uC2A4\uD0A4\uB9C8 \uBB38\uC11C\uC758 \uB300\uC0C1 \uB124\uC784\uC2A4\uD398\uC774\uC2A4\uAC00 ''{1}''\uC785\uB2C8\uB2E4.
|
||||
|
@ -109,7 +109,7 @@
|
||||
cvc-totalDigits-valid = cvc-totalDigits-valid: V\u00E4rdet ''{0}'' har {1} siffror, men det totala antalet siffror \u00E4r begr\u00E4nsat till {2}.
|
||||
cvc-type.1 = cvc-type.1: Typdefinitionen ''{0}'' hittades inte.
|
||||
cvc-type.2 = cvc-type.2: Typdefinitionen kan inte vara abstrakt f\u00F6r elementet {0}.
|
||||
cvc-type.3.1.1 = cvc-type.3.1.1: Elementet ''{0}'' har enkel typ och kan inte inneh\u00E5lla attribut, ut\u00F6ver s\u00E5dana vars namnrymd \u00E4r identisk med ''http://www.w3.org/2001/XMLSchema-instance'' och vars [lokala namn] har n\u00E5gotdera av ''type'', ''nil'', ''schemaLocation'' eller ''noNamespaceSchemaLocation''. Hittade dock attributet ''{1}''.
|
||||
cvc-type.3.1.1 = cvc-type.3.1.1: Elementet ''{0}'' har enkel typ och f\u00E5r inte inneh\u00E5lla attribut, ut\u00F6ver s\u00E5dana vars namnrymd \u00E4r identisk med ''http://www.w3.org/2001/XMLSchema-instance'' och vars [lokala namn] har n\u00E5gotdera av ''type'', ''nil'', ''schemaLocation'' eller ''noNamespaceSchemaLocation''. Hittade dock attributet ''{1}''.
|
||||
cvc-type.3.1.2 = cvc-type.3.1.2: Elementet ''{0}'' har enkel typ och f\u00E5r inte inneh\u00E5lla [underordnade] med elementinformation.
|
||||
cvc-type.3.1.3 = cvc-type.3.1.3: V\u00E4rdet ''{1}'' i elementet ''{0}'' \u00E4r ogiltigt.
|
||||
|
||||
@ -280,7 +280,7 @@
|
||||
rcase-RecurseUnordered.2 = rcase-RecurseUnordered.2: Det finns ingen fullst\u00E4ndigt fungerande mappning mellan partiklarna.
|
||||
# We're using sch-props-correct.2 instead of the old src-redefine.1
|
||||
# src-redefine.1 = src-redefine.1: The component ''{0}'' is begin redefined, but its corresponding component isn't in the schema document being redefined (with namespace ''{2}''), but in a different document, with namespace ''{1}''.
|
||||
sch-props-correct.2 = sch-props-correct.2: Ett schema kan inte inneh\u00E5lla tv\u00E5 globala komponenter med samma namn. Detta schema har tv\u00E5 f\u00F6rekomster av ''{0}''.
|
||||
sch-props-correct.2 = sch-props-correct.2: Ett schema f\u00E5r inte inneh\u00E5lla tv\u00E5 globala komponenter med samma namn. Detta schema har tv\u00E5 f\u00F6rekomster av ''{0}''.
|
||||
st-props-correct.2 = st-props-correct.2: Cirkul\u00E4ra definitioner har identifierats f\u00F6r enkel typ ''{0}''. Detta inneb\u00E4r att ''{0}'' ing\u00E5r i sin egen typhierarki, vilket \u00E4r fel.
|
||||
st-props-correct.3 = st-props-correct.3: Ett fel intr\u00E4ffade f\u00F6r typ ''{0}''. V\u00E4rdet f\u00F6r '{'slutgiltigt'}' i '{'bastypdefinitionen'}', ''{1}'', f\u00F6rbjuder h\u00E4rledning med begr\u00E4nsning.
|
||||
totalDigits-valid-restriction = totalDigits-valid-restriction: I definitionen f\u00F6r {2} \u00E4r v\u00E4rdet ''{0}'' f\u00F6r ''totalDigits'' ogiltigt eftersom det m\u00E5ste vara mindre \u00E4n eller lika med v\u00E4rdet f\u00F6r ''totalDigits'' som har angetts som ''{1}'' i n\u00E5gon typ f\u00F6r \u00F6verordnad.
|
||||
|
@ -211,10 +211,10 @@ public class XMLErrorResources_ko extends ListResourceBundle
|
||||
"Coroutine \uB9E4\uAC1C\uBCC0\uC218 \uC624\uB958({0})"},
|
||||
|
||||
{ ER_PARSER_DOTERMINATE_ANSWERS,
|
||||
"\n\uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958: \uAD6C\uBB38 \uBD84\uC11D\uAE30 doTerminate\uAC00 {0}\uC5D0 \uC751\uB2F5\uD569\uB2C8\uB2E4."},
|
||||
"\n\uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958: \uAD6C\uBB38\uBD84\uC11D\uAE30 doTerminate\uAC00 {0}\uC5D0 \uC751\uB2F5\uD569\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_NO_PARSE_CALL_WHILE_PARSING,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D \uC911 parse\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D \uC911 parse\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_TYPED_ITERATOR_AXIS_NOT_IMPLEMENTED,
|
||||
"\uC624\uB958: {0} \uCD95\uC5D0 \uB300\uD574 \uC785\uB825\uB41C \uC774\uD130\uB808\uC774\uD130\uAC00 \uAD6C\uD604\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."},
|
||||
@ -244,13 +244,13 @@ public class XMLErrorResources_ko extends ListResourceBundle
|
||||
"\uB178\uB4DC\uB97C \uD578\uB4E4\uB85C \uBD84\uC11D\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_STARTPARSE_WHILE_PARSING,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D \uC911 startParse\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D \uC911 startParse\uB97C \uD638\uCD9C\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_STARTPARSE_NEEDS_SAXPARSER,
|
||||
"startParse\uC5D0\uB294 \uB110\uC774 \uC544\uB2CC SAXParser\uAC00 \uD544\uC694\uD569\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_COULD_NOT_INIT_PARSER,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D\uAE30\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D\uAE30\uB97C \uCD08\uAE30\uD654\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_EXCEPTION_CREATING_POOL,
|
||||
"\uD480\uC5D0 \uB300\uD55C \uC0C8 \uC778\uC2A4\uD134\uC2A4\uB97C \uC0DD\uC131\uD558\uB294 \uC911 \uC608\uC678\uC0AC\uD56D\uC774 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4."},
|
||||
@ -295,10 +295,10 @@ public class XMLErrorResources_ko extends ListResourceBundle
|
||||
"\uBD80\uBD84\uC5D0 \uBD80\uC801\uD569\uD55C \uBB38\uC790\uAC00 \uD3EC\uD568\uB418\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_PARSER_IN_USE,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC774\uBBF8 \uC0AC\uC6A9\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_CANNOT_CHANGE_WHILE_PARSING,
|
||||
"\uAD6C\uBB38 \uBD84\uC11D \uC911 {0} {1}\uC744(\uB97C) \uBCC0\uACBD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
"\uAD6C\uBB38\uBD84\uC11D \uC911 {0} {1}\uC744(\uB97C) \uBCC0\uACBD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ ER_SELF_CAUSATION_NOT_PERMITTED,
|
||||
"\uC790\uCCB4 \uC778\uACFC \uAD00\uACC4\uB294 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
|
@ -232,7 +232,7 @@ public class XMLErrorResources_sv extends ListResourceBundle
|
||||
"Axeltravers underst\u00F6ds inte: {0}"},
|
||||
|
||||
{ ER_NO_DTMIDS_AVAIL,
|
||||
"Inga fler DTM-ID:n \u00E4r tillg\u00E4ngliga"},
|
||||
"Inga fler DTM-id:n \u00E4r tillg\u00E4ngliga"},
|
||||
|
||||
{ ER_NOT_SUPPORTED,
|
||||
"Underst\u00F6ds inte: {0}"},
|
||||
|
@ -858,7 +858,7 @@ public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =
|
||||
"{0}\uC5D0\uC11C URL\uC744 \uC0DD\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ WG_EXPAND_ENTITIES_NOT_SUPPORTED,
|
||||
"DTM \uAD6C\uBB38 \uBD84\uC11D\uAE30\uC5D0 \uB300\uD574\uC11C\uB294 -E \uC635\uC158\uC774 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
"DTM \uAD6C\uBB38\uBD84\uC11D\uAE30\uC5D0 \uB300\uD574\uC11C\uB294 -E \uC635\uC158\uC774 \uC9C0\uC6D0\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."},
|
||||
|
||||
{ WG_ILLEGAL_VARIABLE_REFERENCE,
|
||||
"\uBCC0\uC218\uC5D0 \uB300\uD574 \uC81C\uACF5\uB41C VariableReference\uAC00 \uCEE8\uD14D\uC2A4\uD2B8\uC5D0\uC11C \uBC97\uC5B4\uB098\uAC70\uB098 \uC815\uC758\uB97C \uD3EC\uD568\uD558\uC9C0 \uC5C6\uC2B5\uB2C8\uB2E4! \uC774\uB984 = {0}"},
|
||||
@ -886,9 +886,9 @@ public static final String ER_IGNORABLE_WHITESPACE_NOT_HANDLED =
|
||||
{ "optionMatch", " [-match \uC77C\uCE58 \uD328\uD134(\uC77C\uCE58 \uC9C4\uB2E8\uC758 \uACBD\uC6B0)]"},
|
||||
{ "optionAnyExpr", "\uB610\uB294 XPath \uD45C\uD604\uC2DD\uC774 \uC9C4\uB2E8 \uB364\uD504\uB97C \uC218\uD589\uD569\uB2C8\uB2E4."},
|
||||
{ "noParsermsg1", "XSL \uD504\uB85C\uC138\uC2A4\uB97C \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38 \uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg2", "** \uAD6C\uBB38\uBD84\uC11D\uAE30\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC74C **"},
|
||||
{ "noParsermsg3", "\uD074\uB798\uC2A4 \uACBD\uB85C\uB97C \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38 \uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg4", "IBM\uC758 Java\uC6A9 XML \uAD6C\uBB38\uBD84\uC11D\uAE30\uAC00 \uC5C6\uC744 \uACBD\uC6B0 \uB2E4\uC74C \uC704\uCE58\uC5D0\uC11C \uB2E4\uC6B4\uB85C\uB4DC\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4."},
|
||||
{ "noParsermsg5", "IBM AlphaWorks: http://www.alphaworks.ibm.com/formula/xml"},
|
||||
{ "gtone", ">1" },
|
||||
{ "zero", "0" },
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = Die zum Meldungsschl\u00FCssel geh\u00F6rige Fehlermeldung kann nicht gefunden werden.
|
||||
FormatFailed = Beim Formatieren der folgenden Meldung ist ein interner Fehler aufgetreten:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: Die zum Meldungsschl\u00FCssel geh\u00F6rige Fehlermeldung kann nicht gefunden werden.
|
||||
FormatFailed = JAXP09000002: Beim Formatieren der folgenden Meldung ist ein interner Fehler aufgetreten:\n
|
||||
OtherError = JAXP09000003: Unerwarteter Fehler.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = Das Dokumentelement eines Katalogs muss ein Katalog sein.
|
||||
InvalidEntryType = Der Eintragstyp "{0}" ist ung\u00FCltig.
|
||||
CircularReference = Zirkelbezug ist nicht zul\u00E4ssig: "{0}".
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: Zirkelbezug ist nicht zul\u00E4ssig: "{0}".
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: Das Dokumentelement eines Katalogs muss ein Katalog sein.
|
||||
InvalidEntryType = JAXP09020002: Der Eintragstyp "{0}" ist nicht g\u00FCltig.
|
||||
UriNotAbsolute = JAXP09020003: Die angegebene URI "{0}" ist nicht absolut.
|
||||
UriNotValidUrl = JAXP09020004: Die angegebene URI "{0}" ist keine g\u00FCltige URL.
|
||||
InvalidArgument = JAXP09020005: Das angegebene Argument "{0}" (unter Beachtung der Gro\u00DF-/Kleinschreibung) f\u00FCr "{1}" ist nicht g\u00FCltig.
|
||||
NullArgument = JAXP09020006: Das Argument "{0}" darf nicht null sein.
|
||||
InvalidPath = JAXP09020007: Der Pfad "{0}" ist ung\u00FCltig.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: Unerwarteter Fehler bei der Konfiguration eines SAX-Parsers.
|
||||
ParsingFailed = JAXP09030002: Die Katalogdatei konnte nicht geparst werden.
|
||||
NoCatalogFound = JAXP09030003: Kein Katalog angegeben.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: Keine \u00DCbereinstimmung f\u00FCr publicId "{0}" und systemId "{1}" gefunden.
|
||||
NoMatchURIFound = JAXP09040002: Keine \u00DCbereinstimmung f\u00FCr href "{0}" und base "{1}" gefunden.
|
||||
FailedCreatingURI = JAXP09040003: URI kann nicht mit href "{0}" und base "{1}" erstellt werden.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = Die angegebene URI "{0}" ist nicht absolut.
|
||||
UriNotValidUrl = Die angegebene URI "{0}" ist keine g\u00FCltige URL.
|
||||
InvalidArgument = Das angegebene Argument "{0}" (unter Beachtung der Gro\u00DF-/Kleinschreibung) f\u00FCr "{1}" ist nicht g\u00FCltig.
|
||||
NullArgument = Das Argument "{0}" darf nicht null sein.
|
||||
InvalidPath = Der Pfad "{0}" ist ung\u00FCltig.
|
||||
ParserConf = Unerwarteter Fehler bei der Konfiguration eines SAX-Parsers.
|
||||
ParsingFailed = Die Katalogdatei konnte nicht geparst werden.
|
||||
NoCatalogFound = Kein Katalog angegeben.
|
||||
NoMatchFound = Keine \u00DCbereinstimmung f\u00FCr publicId "{0}" und systemId "{1}" gefunden.
|
||||
NoMatchURIFound = Keine \u00DCbereinstimmung f\u00FCr href "{0}" und base "{1}" gefunden.
|
||||
FailedCreatingURI = URI kann nicht mit href "{0}" und base "{1}" erstellt werden.
|
||||
OtherError = Unerwarteter Fehler.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = No se ha encontrado el mensaje de error que corresponde a la clave de mensaje.
|
||||
FormatFailed = Se ha producido un error interno al formatear el siguiente mensaje:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: No se ha encontrado el mensaje de error que corresponde a la clave de mensaje.
|
||||
FormatFailed = JAXP09000002: Se ha producido un error interno al formatear el siguiente mensaje:\n
|
||||
OtherError = JAXP09000003: Error inesperado.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = El elemento de documento de un cat\u00E1logo debe ser un cat\u00E1logo.
|
||||
InvalidEntryType = El tipo de entrada ''{0}'' no es v\u00E1lido.
|
||||
CircularReference = No est\u00E1 permitida la referencia circular: ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: No est\u00E1 permitida la referencia circular: ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: El elemento de documento de un cat\u00E1logo debe ser un cat\u00E1logo.
|
||||
InvalidEntryType = JAXP09020002: El tipo de entrada ''{0}'' no es v\u00E1lido.
|
||||
UriNotAbsolute = JAXP09020003: El URI especificado ''{0}'' no es absoluto.
|
||||
UriNotValidUrl = JAXP09020004: El URI especificado ''{0}'' no es una URL v\u00E1lida.
|
||||
InvalidArgument = JAXP09020005: El argumento especificado ''{0}'' (sensible a may\u00FAsculas y min\u00FAsculas) para ''{1}'' no es v\u00E1lido.
|
||||
NullArgument = JAXP09020006: El argumento ''{0}'' no puede ser nulo.
|
||||
InvalidPath = JAXP09020007: La ruta ''{0}'' no es v\u00E1lida.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: Error inesperado al configurar el analizador SAX.
|
||||
ParsingFailed = JAXP09030002: Fallo al analizar el archivo de cat\u00E1logo.
|
||||
NoCatalogFound = JAXP09030003: No se ha especificado ning\u00FAn cat\u00E1logo.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: No se ha encontrado ninguna coincidencia para publicId ''{0}'' y systemId ''{1}''.
|
||||
NoMatchURIFound = JAXP09040002: No se ha encontrado ninguna coincidencia para href ''{0}'' y base ''{1}''.
|
||||
FailedCreatingURI = JAXP09040003: No se puede crear el URI con href ''{0}'' y base ''{1}''.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = El URI especificado ''{0}'' no es absoluto.
|
||||
UriNotValidUrl = El URI especificado ''{0}'' no es una URL v\u00E1lida.
|
||||
InvalidArgument = El argumento especificado ''{0}'' (sensible a may\u00FAsculas y min\u00FAsculas) para ''{1}'' no es v\u00E1lido.
|
||||
NullArgument = El argumento ''{0}'' no puede ser nulo.
|
||||
InvalidPath = La ruta ''{0}'' no es v\u00E1lida.
|
||||
ParserConf = Error inesperado al configurar el analizador SAX.
|
||||
ParsingFailed = Fallo al analizar el archivo de cat\u00E1logo.
|
||||
NoCatalogFound = No se ha especificado ning\u00FAn cat\u00E1logo.
|
||||
NoMatchFound = No se ha encontrado ninguna coincidencia para publicId ''{0}'' y systemId ''{1}''.
|
||||
NoMatchURIFound = No se ha encontrado ninguna coincidencia para href ''{0}'' y base ''{1}''.
|
||||
FailedCreatingURI = No se puede crear el URI con href ''{0}'' y base ''{1}''.
|
||||
OtherError = Error inesperado.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = Le message d'erreur correspondant \u00E0 la cl\u00E9 de message est introuvable.
|
||||
FormatFailed = Une erreur interne est survenue lors du formatage du message suivant :\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001 : Le message d'erreur correspondant \u00E0 la cl\u00E9 de message est introuvable.
|
||||
FormatFailed = JAXP09000002 : Une erreur interne est survenue lors du formatage du message suivant :\n
|
||||
OtherError = JAXP09000003 : Erreur inattendue.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = L'\u00E9l\u00E9ment de document d'un catalogue doit \u00EAtre un catalogue.
|
||||
InvalidEntryType = Le type d''entr\u00E9e ''{0}'' n''est pas valide.
|
||||
CircularReference = La r\u00E9f\u00E9rence circulaire n''est pas autoris\u00E9e : ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001 : La r\u00E9f\u00E9rence circulaire n''est pas autoris\u00E9e : ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001 : L'\u00E9l\u00E9ment de document d'un catalogue doit \u00EAtre un catalogue.
|
||||
InvalidEntryType = JAXP09020002 : Le type d''entr\u00E9e ''{0}'' n''est pas valide.
|
||||
UriNotAbsolute = JAXP09020003 : L''URI indiqu\u00E9 ''{0}'' n''est pas absolu.
|
||||
UriNotValidUrl = JAXP09020004 : L''URI indiqu\u00E9 ''{0}'' n''est pas une URL valide.
|
||||
InvalidArgument = JAXP09020005 : L''argument indiqu\u00E9 ''{0}'' (respect maj./min.) pour ''{1}'' n''est pas valide.
|
||||
NullArgument = JAXP09020006 : L''argument ''{0}'' ne peut pas \u00EAtre NULL.
|
||||
InvalidPath = JAXP09020007 : Le chemin ''{0}'' n''est pas valide.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001 : Erreur inattendue lors de la configuration d'un analyseur SAX.
|
||||
ParsingFailed = JAXP09030002 : Echec de l'analyse du fichier de catalogue.
|
||||
NoCatalogFound = JAXP09030003 : Aucun catalogue n'est indiqu\u00E9.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001 : Aucune correspondance trouv\u00E9e pour publicId ''{0}'' et systemId ''{1}''.
|
||||
NoMatchURIFound = JAXP09040002 : Aucune correspondance trouv\u00E9e pour l''\u00E9l\u00E9ment href ''{0}'' et la base ''{1}''.
|
||||
FailedCreatingURI = JAXP09040003 : Impossible de construire l''URI \u00E0 l''aide de l''\u00E9l\u00E9ment href ''{0}'' et de la base ''{1}''.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = L''URI indiqu\u00E9 ''{0}'' n''est pas absolu.
|
||||
UriNotValidUrl = L''URI indiqu\u00E9 ''{0}'' n''est pas une URL valide.
|
||||
InvalidArgument = L''argument indiqu\u00E9 ''{0}'' (respect maj./min.) pour ''{1}'' n''est pas valide.
|
||||
NullArgument = L''argument ''{0}'' ne peut pas \u00EAtre NULL.
|
||||
InvalidPath = Le chemin ''{0}'' n''est pas valide.
|
||||
ParserConf = Erreur inattendue lors de la configuration d'un analyseur SAX.
|
||||
ParsingFailed = Echec de l'analyse du fichier de catalogue.
|
||||
NoCatalogFound = Aucun catalogue n'est indiqu\u00E9.
|
||||
NoMatchFound = Aucune correspondance trouv\u00E9e pour publicId ''{0}'' et systemId ''{1}''.
|
||||
NoMatchURIFound = Aucune correspondance trouv\u00E9e pour l''\u00E9l\u00E9ment href ''{0}'' et la base ''{1}''.
|
||||
FailedCreatingURI = Impossible de construire l''URI \u00E0 l''aide de l''\u00E9l\u00E9ment href ''{0}'' et de la base ''{1}''.
|
||||
OtherError = Erreur inattendue.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = Impossibile trovare il messaggio di errore corrispondente alla chiave di messaggio.
|
||||
FormatFailed = Si \u00E8 verificato un errore interno durante la formattazione del seguente messaggio:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: impossibile trovare il messaggio di errore corrispondente alla chiave di messaggio.
|
||||
FormatFailed = JAXP09000002: si \u00E8 verificato un errore interno durante la formattazione del seguente messaggio:\n
|
||||
OtherError = JAXP09000003: errore imprevisto.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = L'elemento documento di un catalogo deve essere un catalogo.
|
||||
InvalidEntryType = Il tipo di voce ''{0}'' non \u00E8 valido.
|
||||
CircularReference = La dipendenza circolare non \u00E8 consentita: ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: il riferimento circolare non \u00E8 consentito: ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: l'elemento documento di un catalogo deve essere un catalogo.
|
||||
InvalidEntryType = JAXP09020002: il tipo di voce ''{0}'' non \u00E8 valido.
|
||||
UriNotAbsolute = JAXP09020003: l''URI specificato ''{0}'' non \u00E8 assoluto.
|
||||
UriNotValidUrl = JAXP09020004: l''URI specificato ''{0}'' non \u00E8 valido.
|
||||
InvalidArgument = JAXP09020005: l''argomento specificato ''{0}'' (con distinzione tra maiuscole e minuscole) per ''{1}'' non \u00E8 valido.
|
||||
NullArgument = JAXP09020006: l''argomento ''{0}'' non pu\u00F2 essere nullo.
|
||||
InvalidPath = JAXP09020007: il percorso ''{0}'' non \u00E8 valido.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: errore imprevisto durante la configurazione di un parser SAX.
|
||||
ParsingFailed = JAXP09030002: analisi del file catalogo non riuscita.
|
||||
NoCatalogFound = JAXP09030003: nessun catalogo specificato.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: nessuna corrispondenza trovata per publicId ''{0}'' e systemId ''{1}''.
|
||||
NoMatchURIFound = JAXP09040002: nessuna corrispondenza trovata per href ''{0}'' e base ''{1}''.
|
||||
FailedCreatingURI = JAXP09040003: impossibile creare l''URI utilizzando href ''{0}'' e base ''{1}''.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = L''URI specificato ''{0}'' non \u00E8 assoluto.
|
||||
UriNotValidUrl = L''URI specificato ''{0}'' non \u00E8 valido.
|
||||
InvalidArgument = L''argomento specificato ''{0}'' (con distinzione tra maiuscole e minuscole) per ''{1}'' non \u00E8 valido.
|
||||
NullArgument = L''argomento ''{0}'' non pu\u00F2 essere nullo.
|
||||
InvalidPath = Il percorso ''{0}'' non \u00E8 valido.
|
||||
ParserConf = Errore imprevisto durante la configurazione di un parser SAX.
|
||||
ParsingFailed = Analisi del file catalogo non riuscita.
|
||||
NoCatalogFound = Nessun catalogo specificato.
|
||||
NoMatchFound = Nessuna corrispondenza trovata per publicId ''{0}'' e systemId ''{1}''.
|
||||
NoMatchURIFound = Nessuna corrispondenza trovata per href ''{0}'' e base ''{1}''.
|
||||
FailedCreatingURI = Impossibile creare l''URI utilizzando href ''{0}'' e base ''{1}''.
|
||||
OtherError = Errore imprevisto.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = \u30E1\u30C3\u30BB\u30FC\u30B8\u30FB\u30AD\u30FC\u306B\u5BFE\u5FDC\u3059\u308B\u30A8\u30E9\u30FC\u30FB\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
FormatFailed = \u6B21\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306E\u66F8\u5F0F\u8A2D\u5B9A\u4E2D\u306B\u5185\u90E8\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: \u30E1\u30C3\u30BB\u30FC\u30B8\u30FB\u30AD\u30FC\u306B\u5BFE\u5FDC\u3059\u308B\u30A8\u30E9\u30FC\u30FB\u30E1\u30C3\u30BB\u30FC\u30B8\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
FormatFailed = JAXP09000002: \u6B21\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306E\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u4E2D\u306B\u5185\u90E8\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F:\n
|
||||
OtherError = JAXP09000003: \u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = \u30AB\u30BF\u30ED\u30B0\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u8981\u7D20\u306Fcatalog\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002
|
||||
InvalidEntryType = \u30A8\u30F3\u30C8\u30EA\u30FB\u30BF\u30A4\u30D7''{0}''\u306F\u6709\u52B9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
CircularReference = \u5FAA\u74B0\u53C2\u7167\u306F\u8A31\u53EF\u3055\u308C\u307E\u305B\u3093: ''{0}''\u3002
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: \u5FAA\u74B0\u53C2\u7167\u306F\u8A31\u53EF\u3055\u308C\u307E\u305B\u3093: ''{0}''\u3002
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: \u30AB\u30BF\u30ED\u30B0\u306E\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u8981\u7D20\u306Fcatalog\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002
|
||||
InvalidEntryType = JAXP09020002: \u30A8\u30F3\u30C8\u30EA\u30FB\u30BF\u30A4\u30D7''{0}''\u306F\u6709\u52B9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
UriNotAbsolute = JAXP09020003: \u6307\u5B9A\u3055\u308C\u305FURI ''{0}''\u304C\u7D76\u5BFEURI\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
UriNotValidUrl = JAXP09020004: \u6307\u5B9A\u3057\u305FURI ''{0}''\u306F\u6709\u52B9\u306AURL\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
InvalidArgument = JAXP09020005: ''{1}''\u306B\u6307\u5B9A\u3055\u308C\u305F\u5F15\u6570''{0}'' (\u5927/\u5C0F\u6587\u5B57\u3092\u533A\u5225)\u306F\u6709\u52B9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
NullArgument = JAXP09020006: \u5F15\u6570''{0}''\u306Fnull\u306B\u3067\u304D\u307E\u305B\u3093\u3002
|
||||
InvalidPath = JAXP09020007: \u30D1\u30B9''{0}''\u306F\u7121\u52B9\u3067\u3059\u3002
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: SAX\u30D1\u30FC\u30B5\u30FC\u306E\u69CB\u6210\u4E2D\u306B\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002
|
||||
ParsingFailed = JAXP09030002: \u30AB\u30BF\u30ED\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB\u306E\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002
|
||||
NoCatalogFound = JAXP09030003: \u30AB\u30BF\u30ED\u30B0\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: publicId ''{0}''\u304A\u3088\u3073systemId ''{1}''\u306B\u4E00\u81F4\u3059\u308B\u3082\u306E\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
NoMatchURIFound = JAXP09040002: href ''{0}''\u304A\u3088\u3073base ''{1}''\u306B\u4E00\u81F4\u3059\u308B\u3082\u306E\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
FailedCreatingURI = JAXP09040003: href ''{0}''\u304A\u3088\u3073base ''{1}''\u3092\u4F7F\u7528\u3057\u3066URI\u3092\u751F\u6210\u3067\u304D\u307E\u305B\u3093\u3002
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = \u6307\u5B9A\u3055\u308C\u305FURI ''{0}''\u304C\u7D76\u5BFEURI\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
UriNotValidUrl = \u6307\u5B9A\u3057\u305FURI ''{0}''\u306F\u6709\u52B9\u306AURL\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
InvalidArgument = ''{1}''\u306B\u6307\u5B9A\u3055\u308C\u305F\u5F15\u6570''{0}'' (\u5927/\u5C0F\u6587\u5B57\u3092\u533A\u5225)\u306F\u6709\u52B9\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002
|
||||
NullArgument = \u5F15\u6570''{0}''\u306Fnull\u306B\u3067\u304D\u307E\u305B\u3093\u3002
|
||||
InvalidPath = \u30D1\u30B9''{0}''\u306F\u7121\u52B9\u3067\u3059\u3002
|
||||
ParserConf = SAX\u30D1\u30FC\u30B5\u30FC\u306E\u69CB\u6210\u4E2D\u306B\u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002
|
||||
ParsingFailed = \u30AB\u30BF\u30ED\u30B0\u30FB\u30D5\u30A1\u30A4\u30EB\u306E\u89E3\u6790\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002
|
||||
NoCatalogFound = \u30AB\u30BF\u30ED\u30B0\u304C\u6307\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002
|
||||
NoMatchFound = publicId ''{0}''\u304A\u3088\u3073systemId ''{1}''\u306B\u4E00\u81F4\u3059\u308B\u3082\u306E\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
NoMatchURIFound = href ''{0}''\u304A\u3088\u3073base ''{1}''\u306B\u4E00\u81F4\u3059\u308B\u3082\u306E\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002
|
||||
FailedCreatingURI = href ''{0}''\u304A\u3088\u3073base ''{1}''\u3092\u4F7F\u7528\u3057\u3066URI\u3092\u751F\u6210\u3067\u304D\u307E\u305B\u3093\u3002
|
||||
OtherError = \u4E88\u671F\u3057\u306A\u3044\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = \uBA54\uC2DC\uC9C0 \uD0A4\uC5D0 \uD574\uB2F9\uD558\uB294 \uC624\uB958 \uBA54\uC2DC\uC9C0\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
FormatFailed = \uB2E4\uC74C \uBA54\uC2DC\uC9C0\uC758 \uD615\uC2DD\uC744 \uC9C0\uC815\uD558\uB294 \uC911 \uB0B4\uBD80 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: \uBA54\uC2DC\uC9C0 \uD0A4\uC5D0 \uD574\uB2F9\uD558\uB294 \uC624\uB958 \uBA54\uC2DC\uC9C0\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
FormatFailed = JAXP09000002: \uB2E4\uC74C \uBA54\uC2DC\uC9C0\uC758 \uD615\uC2DD\uC744 \uC9C0\uC815\uD558\uB294 \uC911 \uB0B4\uBD80 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.\n
|
||||
OtherError = JAXP09000003: \uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = \uCE74\uD0C8\uB85C\uADF8\uC758 \uBB38\uC11C \uC694\uC18C\uB294 \uCE74\uD0C8\uB85C\uADF8\uC5EC\uC57C \uD569\uB2C8\uB2E4.
|
||||
InvalidEntryType = \uD56D\uBAA9 \uC720\uD615 ''{0}''\uC774(\uAC00) \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
CircularReference = \uC21C\uD658 \uCC38\uC870\uAC00 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC74C: ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: \uC21C\uD658 \uCC38\uC870\uAC00 \uD5C8\uC6A9\uB418\uC9C0 \uC54A\uC74C: ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: Catalog\uC758 \uBB38\uC11C \uC694\uC18C\uB294 \uCE74\uD0C8\uB85C\uADF8\uC5EC\uC57C \uD569\uB2C8\uB2E4.
|
||||
InvalidEntryType = JAXP09020002: \uD56D\uBAA9 \uC720\uD615 ''{0}''\uC774(\uAC00) \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
UriNotAbsolute = JAXP09020003: \uC9C0\uC815\uB41C URI ''{0}''\uC774(\uAC00) \uC808\uB300 \uACBD\uB85C\uAC00 \uC544\uB2D9\uB2C8\uB2E4.
|
||||
UriNotValidUrl = JAXP09020004: \uC9C0\uC815\uB41C URI ''{0}''\uC774(\uAC00) \uBD80\uC801\uD569\uD55C URL\uC785\uB2C8\uB2E4.
|
||||
InvalidArgument = JAXP09020005: ''{1}''\uC5D0 \uB300\uD574 \uC9C0\uC815\uB41C \uC778\uC218 ''{0}''(\uB300\uC18C\uBB38\uC790 \uAD6C\uBD84)\uC774(\uAC00) \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
NullArgument = JAXP09020006: ''{0}'' \uC778\uC218\uB294 \uB110\uC77C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
InvalidPath = JAXP09020007: ''{0}'' \uACBD\uB85C\uAC00 \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: SAX \uAD6C\uBB38\uBD84\uC11D\uAE30\uB97C \uAD6C\uC131\uD558\uB294 \uC911 \uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.
|
||||
ParsingFailed = JAXP09030002: Catalog \uD30C\uC77C\uC758 \uAD6C\uBB38\uBD84\uC11D\uC744 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.
|
||||
NoCatalogFound = JAXP09030003: \uC9C0\uC815\uB41C catalog\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: publicId ''{0}'', systemId ''{1}''\uC5D0 \uB300\uD55C \uC77C\uCE58 \uD56D\uBAA9\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
NoMatchURIFound = JAXP09040002: href ''{0}'', base ''{1}''\uC5D0 \uB300\uD55C \uC77C\uCE58 \uD56D\uBAA9\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
FailedCreatingURI = JAXP09040003: href ''{0}'', base ''{1}''\uC744(\uB97C) \uC0AC\uC6A9\uD558\uC5EC URI\uB97C \uAD6C\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = \uC9C0\uC815\uB41C URI ''{0}''\uC774(\uAC00) \uC808\uB300 \uACBD\uB85C\uAC00 \uC544\uB2D9\uB2C8\uB2E4.
|
||||
UriNotValidUrl = \uC9C0\uC815\uB41C URI ''{0}''\uC774(\uAC00) \uBD80\uC801\uD569\uD55C URL\uC785\uB2C8\uB2E4.
|
||||
InvalidArgument = ''{1}''\uC5D0 \uB300\uD574 \uC9C0\uC815\uB41C \uC778\uC218 ''{0}''(\uB300\uC18C\uBB38\uC790 \uAD6C\uBD84)\uC774(\uAC00) \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
NullArgument = ''{0}'' \uC778\uC218\uB294 \uB110\uC77C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
InvalidPath = ''{0}'' \uACBD\uB85C\uAC00 \uBD80\uC801\uD569\uD569\uB2C8\uB2E4.
|
||||
ParserConf = SAX \uAD6C\uBB38 \uBD84\uC11D\uAE30\uB97C \uAD6C\uC131\uD558\uB294 \uC911 \uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.
|
||||
ParsingFailed = \uCE74\uD0C8\uB85C\uADF8 \uD30C\uC77C\uC758 \uAD6C\uBB38 \uBD84\uC11D\uC744 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4.
|
||||
NoCatalogFound = \uC9C0\uC815\uB41C \uCE74\uD0C8\uB85C\uADF8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
NoMatchFound = publicId ''{0}'', systemId ''{1}''\uC5D0 \uB300\uD55C \uC77C\uCE58 \uD56D\uBAA9\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
NoMatchURIFound = href ''{0}'', base ''{1}''\uC5D0 \uB300\uD55C \uC77C\uCE58 \uD56D\uBAA9\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
FailedCreatingURI = href ''{0}'', base ''{1}''\uC744(\uB97C) \uC0AC\uC6A9\uD558\uC5EC URI\uB97C \uAD6C\uC131\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.
|
||||
OtherError = \uC608\uC0C1\uCE58 \uC54A\uC740 \uC624\uB958\uC785\uB2C8\uB2E4.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = N\u00E3o foi poss\u00EDvel encontrar a mensagem de erro correspondente \u00E0 chave da mensagem.
|
||||
FormatFailed = Ocorreu um erro interno ao formatar a mensagem a seguir:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: N\u00E3o foi poss\u00EDvel encontrar a mensagem de erro correspondente \u00E0 chave da mensagem.
|
||||
FormatFailed = JAXP09000002: Ocorreu um erro interno ao formatar a mensagem a seguir:\n
|
||||
OtherError = JAXP09000003: Erro inesperado.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = O elemento de documento de um cat\u00E1logo deve ser o cat\u00E1logo.
|
||||
InvalidEntryType = O tipo de entrada "{0}" n\u00E3o \u00E9 v\u00E1lido.
|
||||
CircularReference = A refer\u00EAncia circular n\u00E3o \u00E9 permitida: ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: A refer\u00EAncia circular n\u00E3o \u00E9 permitida: ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: O elemento de documento de um cat\u00E1logo deve ser o cat\u00E1logo.
|
||||
InvalidEntryType = JAXP09020002: O tipo de entrada "{0}" n\u00E3o \u00E9 v\u00E1lido.
|
||||
UriNotAbsolute = JAXP09020003: O URI especificado ''{0}'' n\u00E3o \u00E9 absoluto.
|
||||
UriNotValidUrl = JAXP09020004: O URI especificado ''{0}'' n\u00E3o \u00E9 um URL v\u00E1lido.
|
||||
InvalidArgument = JAXP09020005: O argumento especificado ''{0}'' (distingue mai\u00FAsculas de min\u00FAsculas) para ''{1}'' n\u00E3o \u00E9 v\u00E1lido.
|
||||
NullArgument = JAXP09020006: O argumento ''{0}'' n\u00E3o pode ser nulo.
|
||||
InvalidPath = JAXP09020007: O caminho ''{0}'' \u00E9 inv\u00E1lido.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: Erro inesperado ao configurar um parser SAX.
|
||||
ParsingFailed = JAXP09030002: Falha ao fazer parsing do arquivo de cat\u00E1logo.
|
||||
NoCatalogFound = JAXP09030003: Nenhum Cat\u00E1logo foi especificado.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: Nenhuma correspond\u00EAncia foi encontrada para publicId ''{0}'' e systemId ''{1}''.
|
||||
NoMatchURIFound = JAXP09040002: Nenhuma correspond\u00EAncia foi encontrada para href ''{0}'' e base ''{1}''.
|
||||
FailedCreatingURI = JAXP09040003: N\u00E3o \u00E9 poss\u00EDvel construir o URI usando href ''{0}'' e base ''{1}''.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = O URI especificado ''{0}'' n\u00E3o \u00E9 absoluto.
|
||||
UriNotValidUrl = O URI especificado ''{0}'' n\u00E3o \u00E9 um URL v\u00E1lido.
|
||||
InvalidArgument = O argumento especificado ''{0}'' (distingue mai\u00FAsculas de min\u00FAsculas) para ''{1}'' n\u00E3o \u00E9 v\u00E1lido.
|
||||
NullArgument = O argumento ''{0}'' n\u00E3o pode ser nulo.
|
||||
InvalidPath = O caminho ''{0}'' \u00E9 inv\u00E1lido.
|
||||
ParserConf = Erro inesperado ao configurar um parser SAX.
|
||||
ParsingFailed = Falha ao fazer parsing do arquivo de cat\u00E1logo.
|
||||
NoCatalogFound = Nenhum arquivo do Cat\u00E1logo foi especificado.
|
||||
NoMatchFound = Nenhuma correspond\u00EAncia foi encontrada para publicId ''{0}'' e systemId ''{1}''.
|
||||
NoMatchURIFound = Nenhuma correspond\u00EAncia foi encontrada para href ''{0}'' e base ''{1}''.
|
||||
FailedCreatingURI = N\u00E3o \u00E9 poss\u00EDvel construir o URI usando href ''{0}'' e base ''{1}''.
|
||||
OtherError = Erro inesperado.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = Hittar inte felmeddelandet som motsvarar meddelandenyckeln.
|
||||
FormatFailed = Ett internt fel intr\u00E4ffade vid formatering av f\u00F6ljande meddelande:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: Det felmeddelande som motsvarar meddelandenyckeln kan inte hittas.
|
||||
FormatFailed = JAXP09000002: Ett internt fel intr\u00E4ffade vid formatering av f\u00F6ljande meddelande:\n
|
||||
OtherError = JAXP09000003: Ov\u00E4ntat fel.
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = Dokumentelementet f\u00F6r en katalog m\u00E5ste vara "catalog".
|
||||
InvalidEntryType = Posttypen ''{0}'' \u00E4r inte giltig.
|
||||
CircularReference = Cirkul\u00E4r referens \u00E4r inte till\u00E5ten: ''{0}''.
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: Cirkul\u00E4r referens \u00E4r inte till\u00E5ten: ''{0}''.
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: Dokumentelementet f\u00F6r en katalog m\u00E5ste vara "catalog".
|
||||
InvalidEntryType = JAXP09020002: Posttypen ''{0}'' \u00E4r inte giltig.
|
||||
UriNotAbsolute = JAXP09020003: Den angivna URI:n, ''{0}'', \u00E4r inte absolut.
|
||||
UriNotValidUrl = JAXP09020004: Den angivna URI:n, ''{0}'', \u00E4r inte en giltig URL.
|
||||
InvalidArgument = JAXP09020005: Det angivna argumentet, ''{0}'' (skiftl\u00E4gesk\u00E4nsligt), f\u00F6r ''{1}'' \u00E4r inte giltigt.
|
||||
NullArgument = JAXP09020006: Argumentet ''{0}'' kan inte vara null.
|
||||
InvalidPath = JAXP09020007: S\u00F6kv\u00E4gen ''{0}'' \u00E4r ogiltig.
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: Ov\u00E4ntat fel vid konfiguration av en SAX-parser.
|
||||
ParsingFailed = JAXP09030002: Kunde inte tolka katalogfilen.
|
||||
NoCatalogFound = JAXP09030003: Ingen katalog har angetts.
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: Ingen matchning hittades f\u00F6r publicId = ''{0}'' och systemId = ''{1}''.
|
||||
NoMatchURIFound = JAXP09040002: Ingen matchning hittades f\u00F6r href = ''{0}'' och bas = ''{1}''.
|
||||
FailedCreatingURI = JAXP09040003: Kan inte skapa URI med href = ''{0}'' och bas = ''{1}''.
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = Den angivna URI:n, ''{0}'', \u00E4r inte absolut.
|
||||
UriNotValidUrl = Den angivna URI:n, ''{0}'', \u00E4r inte en giltig URL.
|
||||
InvalidArgument = Det angivna argumentet, ''{0}'' (skiftl\u00E4gesk\u00E4nsligt), f\u00F6r ''{1}'' \u00E4r inte giltigt.
|
||||
NullArgument = Argumentet ''{0}'' kan inte vara null.
|
||||
InvalidPath = S\u00F6kv\u00E4gen ''{0}'' \u00E4r ogiltig.
|
||||
ParserConf = Ov\u00E4ntat fel vid konfiguration av en SAX-parser.
|
||||
ParsingFailed = Kunde inte tolka katalogfilen.
|
||||
NoCatalogFound = Ingen katalog har angetts.
|
||||
NoMatchFound = Ingen matchning hittades f\u00F6r publicId = ''{0}'' och systemId = ''{1}''.
|
||||
NoMatchURIFound = Ingen matchning hittades f\u00F6r href = ''{0}'' och bas = ''{1}''.
|
||||
FailedCreatingURI = Kan inte skapa URI med href = ''{0}'' och bas = ''{1}''.
|
||||
OtherError = Ov\u00E4ntat fel.
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = \u627E\u4E0D\u5230\u4E0E\u6D88\u606F\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u9519\u8BEF\u6D88\u606F\u3002
|
||||
FormatFailed = \u8BBE\u7F6E\u4EE5\u4E0B\u6D88\u606F\u7684\u683C\u5F0F\u65F6\u51FA\u73B0\u5185\u90E8\u9519\u8BEF:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: \u627E\u4E0D\u5230\u4E0E\u6D88\u606F\u5173\u952E\u5B57\u5BF9\u5E94\u7684\u9519\u8BEF\u6D88\u606F\u3002
|
||||
FormatFailed = JAXP09000002: \u8BBE\u7F6E\u4EE5\u4E0B\u6D88\u606F\u7684\u683C\u5F0F\u65F6\u51FA\u73B0\u5185\u90E8\u9519\u8BEF:\n
|
||||
OtherError = JAXP09000003: \u610F\u5916\u9519\u8BEF\u3002
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = \u76EE\u5F55\u7684\u6587\u6863\u5143\u7D20\u5FC5\u987B\u662F\u76EE\u5F55\u3002
|
||||
InvalidEntryType = \u6761\u76EE\u7C7B\u578B ''{0}'' \u65E0\u6548\u3002
|
||||
CircularReference = \u4E0D\u5141\u8BB8\u5FAA\u73AF\u5F15\u7528: ''{0}''\u3002
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: \u4E0D\u5141\u8BB8\u5FAA\u73AF\u5F15\u7528: ''{0}''\u3002
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: catalog \u7684\u6587\u6863\u5143\u7D20\u5FC5\u987B\u662F catalog\u3002
|
||||
InvalidEntryType = JAXP09020002: \u6761\u76EE\u7C7B\u578B ''{0}'' \u65E0\u6548\u3002
|
||||
UriNotAbsolute = JAXP09020003: \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u7EDD\u5BF9\u7684\u3002
|
||||
UriNotValidUrl = JAXP09020004: \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u6709\u6548\u7684 URL\u3002
|
||||
InvalidArgument = JAXP09020005: \u4E3A ''{1}'' \u6307\u5B9A\u7684\u53C2\u6570 ''{0}'' (\u533A\u5206\u5927\u5C0F\u5199) \u65E0\u6548\u3002
|
||||
NullArgument = JAXP09020006: \u53C2\u6570 ''{0}'' \u4E0D\u80FD\u4E3A\u7A7A\u503C\u3002
|
||||
InvalidPath = JAXP09020007: \u8DEF\u5F84 ''{0}'' \u65E0\u6548\u3002
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: \u914D\u7F6E SAX \u89E3\u6790\u5668\u65F6\u51FA\u73B0\u610F\u5916\u9519\u8BEF\u3002
|
||||
ParsingFailed = JAXP09030002: \u65E0\u6CD5\u5BF9 catalog \u6587\u4EF6\u8FDB\u884C\u89E3\u6790\u3002
|
||||
NoCatalogFound = JAXP09030003: \u672A\u6307\u5B9A catalog\u3002
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: \u5BF9\u4E8E publicId ''{0}'' \u548C systemId ''{1}'', \u672A\u627E\u5230\u5339\u914D\u9879\u3002
|
||||
NoMatchURIFound = JAXP09040002: \u5BF9\u4E8E href ''{0}'' \u548C base ''{1}'', \u672A\u627E\u5230\u5339\u914D\u9879\u3002
|
||||
FailedCreatingURI = JAXP09040003: \u65E0\u6CD5\u4F7F\u7528 href ''{0}'' \u548C base ''{1}'' \u6784\u9020 URI\u3002
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u7EDD\u5BF9 URI\u3002
|
||||
UriNotValidUrl = \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u6709\u6548\u7684 URL\u3002
|
||||
InvalidArgument = \u4E3A ''{1}'' \u6307\u5B9A\u7684\u53C2\u6570 ''{0}'' (\u533A\u5206\u5927\u5C0F\u5199) \u65E0\u6548\u3002
|
||||
NullArgument = \u53C2\u6570 ''{0}'' \u4E0D\u80FD\u4E3A\u7A7A\u503C\u3002
|
||||
InvalidPath = \u8DEF\u5F84 ''{0}'' \u65E0\u6548\u3002
|
||||
ParserConf = \u914D\u7F6E SAX \u89E3\u6790\u5668\u65F6\u51FA\u73B0\u610F\u5916\u9519\u8BEF\u3002
|
||||
ParsingFailed = \u65E0\u6CD5\u5BF9\u76EE\u5F55\u6587\u4EF6\u8FDB\u884C\u89E3\u6790\u3002
|
||||
NoCatalogFound = \u672A\u6307\u5B9A\u76EE\u5F55\u3002
|
||||
NoMatchFound = \u5BF9\u4E8E publicId ''{0}'' \u548C systemId ''{1}'', \u672A\u627E\u5230\u5339\u914D\u9879\u3002
|
||||
NoMatchURIFound = \u5BF9\u4E8E href ''{0}'' \u548C base ''{1}'', \u672A\u627E\u5230\u5339\u914D\u9879\u3002
|
||||
FailedCreatingURI = \u65E0\u6CD5\u4F7F\u7528 href ''{0}'' \u548C base ''{1}'' \u6784\u9020 URI\u3002
|
||||
OtherError = \u610F\u5916\u9519\u8BEF\u3002
|
||||
|
@ -21,25 +21,32 @@
|
||||
# or visit www.oracle.com if you need additional information or have any
|
||||
# questions.
|
||||
|
||||
# Messages for message reporting
|
||||
BadMessageKey = \u627E\u4E0D\u5230\u5C0D\u61C9\u8A0A\u606F\u7D22\u5F15\u9375\u7684\u932F\u8AA4\u8A0A\u606F\u3002
|
||||
FormatFailed = \u683C\u5F0F\u5316\u4E0B\u5217\u8A0A\u606F\u6642\u767C\u751F\u5167\u90E8\u932F\u8AA4:\n
|
||||
# General errors
|
||||
BadMessageKey = JAXP09000001: \u627E\u4E0D\u5230\u76F8\u5C0D\u61C9\u65BC\u6B64\u8A0A\u606F\u7D22\u5F15\u9375\u7684\u932F\u8AA4\u8A0A\u606F\u3002
|
||||
FormatFailed = JAXP09000002: \u683C\u5F0F\u5316\u4E0B\u5217\u8A0A\u606F\u6642\u767C\u751F\u5167\u90E8\u932F\u8AA4:\n
|
||||
OtherError = JAXP09000003: \u672A\u9810\u671F\u7684\u932F\u8AA4\u3002
|
||||
|
||||
#invalid catalog file
|
||||
InvalidCatalog = \u76EE\u9304\u7684\u6587\u4EF6\u5143\u7D20\u5FC5\u9808\u662F\u76EE\u9304\u3002
|
||||
InvalidEntryType = \u9805\u76EE\u985E\u578B ''{0}'' \u7121\u6548\u3002
|
||||
CircularReference = \u4E0D\u5141\u8A31\u5FAA\u74B0\u53C3\u7167: ''{0}''\u3002
|
||||
# Implementation restriction
|
||||
CircularReference = JAXP09010001: \u4E0D\u5141\u8A31\u5FAA\u74B0\u53C3\u7167: ''{0}''\u3002
|
||||
|
||||
# Input or configuration errors
|
||||
InvalidCatalog = JAXP09020001: Catalog \u7684\u6587\u4EF6\u5143\u7D20\u5FC5\u9808\u662F Catalog\u3002
|
||||
InvalidEntryType = JAXP09020002: \u9805\u76EE\u985E\u578B ''{0}'' \u7121\u6548\u3002
|
||||
UriNotAbsolute = JAXP09020003: \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u7D55\u5C0D\u8DEF\u5F91\u3002
|
||||
UriNotValidUrl = JAXP09020004: \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u6709\u6548\u7684 URL\u3002
|
||||
InvalidArgument = JAXP09020005: \u70BA ''{1}'' \u6307\u5B9A\u7684\u5F15\u6578 ''{0}'' (\u6709\u5927\u5C0F\u5BEB\u4E4B\u5206) \u7121\u6548\u3002
|
||||
NullArgument = JAXP09020006: \u5F15\u6578''{0}'' \u4E0D\u53EF\u70BA\u7A7A\u503C\u3002
|
||||
InvalidPath = JAXP09020007: \u8DEF\u5F91 ''{0}'' \u7121\u6548\u3002
|
||||
|
||||
|
||||
# Parsing errors
|
||||
ParserConf = JAXP09030001: \u8A2D\u5B9A SAX \u5256\u6790\u5668\u6642\u767C\u751F\u672A\u9810\u671F\u7684\u932F\u8AA4\u3002
|
||||
ParsingFailed = JAXP09030002: \u7121\u6CD5\u5256\u6790 Catalog \u6A94\u6848\u3002
|
||||
NoCatalogFound = JAXP09030003: \u672A\u6307\u5B9A Catalog\u3002
|
||||
|
||||
|
||||
# Resolving errors
|
||||
NoMatchFound = JAXP09040001: \u627E\u4E0D\u5230\u7B26\u5408 publicId ''{0}'' \u548C systemId ''{1}'' \u7684\u9805\u76EE\u3002
|
||||
NoMatchURIFound = JAXP09040002: \u627E\u4E0D\u5230\u7B26\u5408 href ''{0}'' \u548C\u57FA\u790E ''{1}'' \u7684\u9805\u76EE\u3002
|
||||
FailedCreatingURI = JAXP09040003: \u7121\u6CD5\u4F7F\u7528 href ''{0}'' \u548C\u57FA\u790E ''{1}'' \u5EFA\u69CB URI\u3002
|
||||
|
||||
#errors
|
||||
UriNotAbsolute = \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u7D55\u5C0D\u8DEF\u5F91\u3002
|
||||
UriNotValidUrl = \u6307\u5B9A\u7684 URI ''{0}'' \u4E0D\u662F\u6709\u6548\u7684 URL\u3002
|
||||
InvalidArgument = ''{1}'' \u7684\u6307\u5B9A\u5F15\u6578 ''{0}'' (\u6709\u5927\u5C0F\u5BEB\u4E4B\u5206) \u7121\u6548\u3002
|
||||
NullArgument = \u5F15\u6578''{0}'' \u4E0D\u53EF\u70BA\u7A7A\u503C\u3002
|
||||
InvalidPath = \u8DEF\u5F91 ''{0}'' \u7121\u6548\u3002
|
||||
ParserConf = \u8A2D\u5B9A SAX \u5256\u6790\u5668\u6642\u767C\u751F\u672A\u9810\u671F\u7684\u932F\u8AA4\u3002
|
||||
ParsingFailed = \u7121\u6CD5\u5256\u6790\u76EE\u9304\u6A94\u6848\u3002
|
||||
NoCatalogFound = \u672A\u6307\u5B9A\u4EFB\u4F55\u76EE\u9304\u3002
|
||||
NoMatchFound = \u627E\u4E0D\u5230\u76F8\u7B26\u7684 publicId ''{0}'' \u548C systemId ''{1}''\u3002
|
||||
NoMatchURIFound = \u627E\u4E0D\u5230\u76F8\u7B26\u7684 href ''{0}'' \u548C\u57FA\u790E ''{1}''\u3002
|
||||
FailedCreatingURI = \u7121\u6CD5\u4F7F\u7528 href ''{0}'' \u548C\u57FA\u790E ''{1}'' \u5EFA\u69CB URI\u3002
|
||||
OtherError = \u672A\u9810\u671F\u7684\u932F\u8AA4\u3002
|
||||
|
@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Provides the classes for implementing
|
||||
* <a href="https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html">
|
||||
* XML Catalogs OASIS Standard V1.1, 7 October 2005</a>.
|
||||
*
|
||||
* <p>
|
||||
* The Catalog API defines a standard solution for resolving external resources
|
||||
* referenced by XML documents. It is fully supported by the XML Processors
|
||||
* allowing application developers to configure a catalog through an XML processor
|
||||
* or system property or the jaxp.properties file to take advantage of the feature.
|
||||
* <p>
|
||||
* The XML Catalog API defines the following interfaces:
|
||||
* <ul>
|
||||
* <li>{@link Catalog} -- The {@link Catalog} interface represents an entity
|
||||
* catalog as defined by the Catalog standard. A {@link Catalog} object
|
||||
* is immutable. Once created, it can be used to find matches in a
|
||||
* {@code system}, {@code public} or {@code uri} entry.
|
||||
* A custom resolver implementation may find it useful for locating local
|
||||
* resources through a catalog.
|
||||
* </li>
|
||||
* <li>{@link CatalogFeatures} -- The {@link CatalogFeatures} class holds all
|
||||
* of the features and properties the Catalog API supports, including
|
||||
* {@code javax.xml.catalog.files}, {@code javax.xml.catalog.defer},
|
||||
* {@code javax.xml.catalog.prefer}, and {@code javax.xml.catalog.resolve}.
|
||||
* </li>
|
||||
* <li>{@link CatalogManager} -- The {@link CatalogManager} class manages the
|
||||
* creation of XML catalogs and catalog resolvers.
|
||||
* </li>
|
||||
* <li>{@link CatalogResolver} -- The {@link CatalogResolver} class is a
|
||||
* {@code Catalog} resolver that implements {@link org.xml.sax.EntityResolver},
|
||||
* {@link javax.xml.stream.XMLResolver}, {@link org.w3c.dom.ls.LSResourceResolver},
|
||||
* and {@link javax.xml.transform.URIResolver}, and resolves external
|
||||
* references using catalogs.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* Unless otherwise noted, passing a null argument to
|
||||
* a constructor or method in any class or interface in this package will
|
||||
* cause a {@code NullPointerException} to be thrown.
|
||||
*
|
||||
* @since 9
|
||||
*
|
||||
*/
|
||||
|
||||
package javax.xml.catalog;
|
@ -1,44 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Provides the classes for implementing
|
||||
<a href="https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html">
|
||||
XML Catalogs OASIS Standard V1.1, 7 October 2005</a>.
|
||||
|
||||
<p>
|
||||
Unless otherwise noted, passing a null argument to
|
||||
a constructor or method in any class or interface in this package will
|
||||
cause a <code>NullPointerException</code> to be thrown.
|
||||
</p>
|
||||
|
||||
@since 9
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* <p>
|
||||
* Defines XML/Java Type Mappings.
|
||||
*
|
||||
* <p>
|
||||
* This API provides XML/Java type mappings.
|
||||
*
|
||||
* <p>
|
||||
* The following XML standards apply:
|
||||
*
|
||||
* <ul>
|
||||
* <li><a href="http://www.w3.org/TR/xmlschema-2/#dateTime">
|
||||
* W3C XML Schema 1.0 Part 2, Section 3.2.7-14</a>
|
||||
* </li>
|
||||
* <li><a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
|
||||
* XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>
|
||||
* </li>
|
||||
* <li><a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
|
||||
* XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*
|
||||
* <hr>
|
||||
*
|
||||
* <table class="striped">
|
||||
* <caption> W3C XML Schema/Java Type Mappings</caption>
|
||||
* <thead>
|
||||
* <tr>
|
||||
* <th>W3C XML Schema Data Type</th>
|
||||
* <th>Java Data Type</th>
|
||||
* </tr>
|
||||
* </thead>
|
||||
*
|
||||
* <tbody>
|
||||
* <tr>
|
||||
* <td>xs:date</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:dateTime</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:duration</td>
|
||||
* <td>{@link javax.xml.datatype.Duration}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:gDay</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:gMonth </td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:gMonthDay</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:gYear</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:gYearMonth</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xs:time</td>
|
||||
* <td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
* </tr>
|
||||
*
|
||||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* <hr>
|
||||
*
|
||||
*
|
||||
* <table class="striped">
|
||||
* <caption>XQuery and XPath/Java Type Mappings</caption>
|
||||
* <thead>
|
||||
* <tr>
|
||||
* <th>XQuery 1.0 and XPath 2.0 Data Model</th>
|
||||
* <th>Java Data Type</th>
|
||||
* </tr>
|
||||
* </thead>
|
||||
*
|
||||
* <tbody>
|
||||
* <tr>
|
||||
* <td>xdt:dayTimeDuration</td>
|
||||
* <td>{@link javax.xml.datatype.Duration}</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>xdt:yearMonthDuration</td>
|
||||
* <td>{@link javax.xml.datatype.Duration}</td>
|
||||
* </tr>
|
||||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* <hr>
|
||||
*
|
||||
* <p>
|
||||
* W3C XML Schema data types that have a "<em>natural</em>" mapping to Java types are defined by
|
||||
* JSR 31: Java™ Architecture for XML Binding (JAXB) Specification, Binding XML Schema to Java Representations.
|
||||
* JAXB defined mappings for XML Schema built-in data types include:
|
||||
*
|
||||
* <ul>
|
||||
* <li>xs:anySimpleType</li>
|
||||
* <li>xs:base64Binary</li>
|
||||
* <li>xs:boolean</li>
|
||||
* <li>xs:byte</li>
|
||||
* <li>xs:decimal</li>
|
||||
* <li>xs:double</li>
|
||||
* <li>xs:float</li>
|
||||
* <li>xs:hexBinary</li>
|
||||
* <li>xs:int</li>
|
||||
* <li>xs:integer</li>
|
||||
* <li>xs:long</li>
|
||||
* <li>xs:QName</li>
|
||||
* <li>xs:short</li>
|
||||
* <li>xs:string</li>
|
||||
* <li>xs:unsignedByte</li>
|
||||
* <li>xs:unsignedInt</li>
|
||||
* <li>xs:unsignedShort</li>
|
||||
* </ul>
|
||||
*
|
||||
* <hr>
|
||||
*
|
||||
* <ul>
|
||||
* <li>Author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a></li>
|
||||
* <li>See <a href="http://www.w3.org/TR/xmlschema-2/#dateTime">
|
||||
* W3C XML Schema 1.0 Part 2, Section 3.2.7-14</a>
|
||||
* </li>
|
||||
* <li>See <a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">
|
||||
* XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>
|
||||
* </li>
|
||||
* <li>See <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">
|
||||
* XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>
|
||||
* </li>
|
||||
* <li>Since 1.5</li>
|
||||
* </ul>
|
||||
*
|
||||
* <hr>
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.datatype;
|
@ -1,170 +0,0 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>javax.xml.xpath</title>
|
||||
|
||||
<meta name="@author" content="mailto:Jeff.Suttor@Sun.com" />
|
||||
<meta name="@see" content='<a href="http://www.w3.org/TR/xmlschema-2/#dateTime">W3C XML Schema 1.0 Part 2, Section 3.2.7-14</a>' />
|
||||
<meta name="@see" content='<a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a>' />
|
||||
<meta name="@see" content='<a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a>' />
|
||||
<meta name="@since" content="1.5" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>XML/Java Type Mappings.</p>
|
||||
|
||||
<p><code>javax.xml.datatype</code>API provides XML/Java type mappings.</p>
|
||||
|
||||
<p>The following XML standards apply:</p>
|
||||
<ul>
|
||||
<li><a href="http://www.w3.org/TR/xmlschema-2/#dateTime">W3C XML Schema 1.0 Part 2, Section 3.2.7-14</a></li>
|
||||
<li><a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a></li>
|
||||
<li><a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a></li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<table class="striped">
|
||||
<caption> W3C XML Schema/Java Type Mappings</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>W3C XML Schema Data Type</th>
|
||||
<th>Java Data Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>xs:date</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:dateTime</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:duration</td>
|
||||
<td>{@link javax.xml.datatype.Duration}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:gDay</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:gMonth </td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:gMonthDay</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:gYear</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:gYearMonth</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xs:time</td>
|
||||
<td>{@link javax.xml.datatype.XMLGregorianCalendar}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<table class="striped">
|
||||
<caption>XQuery and XPath/Java Type Mappings</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>XQuery 1.0 and XPath 2.0 Data Model</th>
|
||||
<th>Java Data Type</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>xdt:dayTimeDuration</td>
|
||||
<td>{@link javax.xml.datatype.Duration}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>xdt:yearMonthDuration</td>
|
||||
<td>{@link javax.xml.datatype.Duration}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
|
||||
<p>
|
||||
W3C XML Schema data types that have a "<em>natural</em>" mapping to Java types are defined by
|
||||
JSR 31: Java™ Architecture for XML Binding (JAXB) Specification, Binding XML Schema to Java Representations.
|
||||
JAXB defined mappings for XML Schema built-in data types include:
|
||||
</p>
|
||||
<ul>
|
||||
<li>xs:anySimpleType</li>
|
||||
<li>xs:base64Binary</li>
|
||||
<li>xs:boolean</li>
|
||||
<li>xs:byte</li>
|
||||
<li>xs:decimal</li>
|
||||
<li>xs:double</li>
|
||||
<li>xs:float</li>
|
||||
<li>xs:hexBinary</li>
|
||||
<li>xs:int</li>
|
||||
<li>xs:integer</li>
|
||||
<li>xs:long</li>
|
||||
<li>xs:QName</li>
|
||||
<li>xs:short</li>
|
||||
<li>xs:string</li>
|
||||
<li>xs:unsignedByte</li>
|
||||
<li>xs:unsignedInt</li>
|
||||
<li>xs:unsignedShort</li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<ul>
|
||||
<li>Author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a></li>
|
||||
<li>See <a href="http://www.w3.org/TR/xmlschema-2/#dateTime">W3C XML Schema 1.0 Part 2, Section 3.2.7-14</a></li>
|
||||
<li>See <a href="http://www.w3.org/TR/xpath-datamodel#dt-dayTimeDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration</a></li>
|
||||
<li>See <a href="http://www.w3.org/TR/xpath-datamodel#dt-yearMonthDuration">XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration</a></li>
|
||||
<li>Since 1.5</li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* <p>
|
||||
* Defines XML Namespace processing.
|
||||
*
|
||||
* <p>
|
||||
* The following XML standards apply:
|
||||
*
|
||||
* <ul>
|
||||
* <li><a href="http://www.w3.org/TR/xmlschema-2/#QName">
|
||||
* XML Schema Part2: Datatypes specification</a>
|
||||
* </li>
|
||||
* <li><a href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
|
||||
* Namespaces in XML</a>
|
||||
* </li>
|
||||
* <li><a href="http://www.w3.org/XML/xml-names-19990114-errata">
|
||||
* Namespaces in XML Errata</a>
|
||||
* </li>
|
||||
* </ul>
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.namespace;
|
@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>javax.xml.namespace</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:28 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>XML Namespace processing.</p>
|
||||
|
||||
<p>The following XML standards apply:</p>
|
||||
<ul>
|
||||
<li><a href="http://www.w3.org/TR/xmlschema-2/#QName">XML Schema Part2: Datatypes specification</a></li>
|
||||
<li><a href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">Namespaces in XML</a></li>
|
||||
<li><a href="http://www.w3.org/XML/xml-names-19990114-errata">Namespaces in XML Errata</a></li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
34
jaxp/src/java.xml/share/classes/javax/xml/package-info.java
Normal file
34
jaxp/src/java.xml/share/classes/javax/xml/package-info.java
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Defines constants for XML processing.
|
||||
*
|
||||
* @since 1.5
|
||||
*
|
||||
*/
|
||||
|
||||
package javax.xml;
|
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Provides the classes for processing XML documents with a SAX (Simple API for XML)
|
||||
* parser or a DOM (Document Object Model) Document builder. The JAXP Plugability
|
||||
* layer allows an application programmer to specify an implementation and
|
||||
* configure where to locate it.
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
package javax.xml.parsers;
|
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>javax.xml.parsers</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:29 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Provides classes allowing the processing of XML documents. Two types
|
||||
of plugable parsers are supported:
|
||||
</p>
|
||||
<ul>
|
||||
<li>SAX (Simple API for XML)</li>
|
||||
<li>DOM (Document Object Model)</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Defines event interfaces for the Streaming API for XML (StAX).
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
|
||||
package javax.xml.stream.events;
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Defines interfaces and classes for the Streaming API for XML (StAX).
|
||||
*
|
||||
* <p>
|
||||
* StAX provides two basic functions: the cursor API allowing users to
|
||||
* read and write XML efficiently, and the event iterator API promoting
|
||||
* ease of use that is event based, easy to extend and pipeline.
|
||||
* The event iterator API is intended to layer on top of the cursor API.
|
||||
*
|
||||
* <p>
|
||||
* The cursor API defines two interfaces: {@link XMLStreamReader}
|
||||
* and {@link XMLStreamWriter}, while the event iterator API defines:
|
||||
* {@link XMLEventReader} and {@link XMLEventWriter}.
|
||||
*
|
||||
* <p>
|
||||
* StAX supports plugability with {@link XMLInputFactory} and
|
||||
* {@link XMLOutputFactory} that define how an implementation is
|
||||
* located through a process as described in the {@link newFactory}
|
||||
* method.
|
||||
*
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
|
||||
package javax.xml.stream;
|
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides utility classes for the Streaming API for XML (StAX).
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
|
||||
package javax.xml.stream.util;
|
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides DOM specific transformation classes.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.dom.DOMSource} class allows the
|
||||
* client of the implementation of this API to specify a DOM
|
||||
* {@link org.w3c.dom.Node} as the source of the input tree. The model of
|
||||
* how the Transformer deals with the DOM tree in terms of mismatches with the
|
||||
* <A href="http://www.w3.org/TR/xslt#data-model">XSLT data model</A> or
|
||||
* other data models is beyond the scope of this document. Any of the nodes
|
||||
* derived from {@link org.w3c.dom.Node} are legal input.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.dom.DOMResult} class allows
|
||||
* a {@link org.w3c.dom.Node} to be specified to which result DOM nodes will
|
||||
* be appended. If an output node is not specified, the transformer will use
|
||||
* {@link javax.xml.parsers.DocumentBuilder#newDocument} to create an
|
||||
* output {@link org.w3c.dom.Document} node. If a node is specified, it
|
||||
* should be one of the following: {@link org.w3c.dom.Document},
|
||||
* {@link org.w3c.dom.Element}, or
|
||||
* {@link org.w3c.dom.DocumentFragment}. Specification of any other node
|
||||
* type is implementation dependent and undefined by this API. If the result is a
|
||||
* {@link org.w3c.dom.Document}, the output of the transformation must have
|
||||
* a single element root to set as the document element.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.dom.DOMLocator} node may be passed
|
||||
* to {@link javax.xml.transform.TransformerException} objects, and
|
||||
* retrieved by trying to cast the result of the
|
||||
* {@link javax.xml.transform.TransformerException#getLocator()} method.
|
||||
* The implementation has no responsibility to use a DOMLocator instead of a
|
||||
* {@link javax.xml.transform.SourceLocator} (though line numbers and the
|
||||
* like do not make much sense for a DOM), so the result of getLocator must always
|
||||
* be tested with an instanceof.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.transform.dom;
|
@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>javax.xml.transform.dom</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:40 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
<body>
|
||||
<p>This package implements DOM-specific transformation APIs.</p>
|
||||
<p>The {@link javax.xml.transform.dom.DOMSource} class allows the
|
||||
client of the implementation of this API to specify a DOM
|
||||
{@link org.w3c.dom.Node} as the source of the input tree. The model of
|
||||
how the Transformer deals with the DOM tree in terms of mismatches with the
|
||||
<A href="http://www.w3.org/TR/xslt#data-model">XSLT data model</A> or
|
||||
other data models is beyond the scope of this document. Any of the nodes
|
||||
derived from {@link org.w3c.dom.Node} are legal input.</p>
|
||||
<p>The {@link javax.xml.transform.dom.DOMResult} class allows
|
||||
a {@link org.w3c.dom.Node} to be specified to which result DOM nodes will
|
||||
be appended. If an output node is not specified, the transformer will use
|
||||
{@link javax.xml.parsers.DocumentBuilder#newDocument} to create an
|
||||
output {@link org.w3c.dom.Document} node. If a node is specified, it
|
||||
should be one of the following: {@link org.w3c.dom.Document},
|
||||
{@link org.w3c.dom.Element}, or
|
||||
{@link org.w3c.dom.DocumentFragment}. Specification of any other node
|
||||
type is implementation dependent and undefined by this API. If the result is a
|
||||
{@link org.w3c.dom.Document}, the output of the transformation must have
|
||||
a single element root to set as the document element.</p>
|
||||
<p>The {@link javax.xml.transform.dom.DOMLocator} node may be passed
|
||||
to {@link javax.xml.transform.TransformerException} objects, and
|
||||
retrieved by trying to cast the result of the
|
||||
{@link javax.xml.transform.TransformerException#getLocator()} method.
|
||||
The implementation has no responsibility to use a DOMLocator instead of a
|
||||
{@link javax.xml.transform.SourceLocator} (though line numbers and the
|
||||
like do not make much sense for a DOM), so the result of getLocator must always
|
||||
be tested with an instanceof. </p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,216 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Defines the generic APIs for processing transformation instructions,
|
||||
* and performing a transformation from source to result. These interfaces have no
|
||||
* dependencies on SAX or the DOM standard, and try to make as few assumptions as
|
||||
* possible about the details of the source and result of a transformation. It
|
||||
* achieves this by defining {@link javax.xml.transform.Source} and
|
||||
* {@link javax.xml.transform.Result} interfaces.
|
||||
*
|
||||
* <p>
|
||||
* To provide concrete classes for the user, the API defines specializations
|
||||
* of the interfaces found at the root level. These interfaces are found in
|
||||
* {@link javax.xml.transform.sax}, {@link javax.xml.transform.dom},
|
||||
* {@link javax.xml.transform.stax}, and {@link javax.xml.transform.stream}.
|
||||
*
|
||||
*
|
||||
* <h3>Creating Objects</h3>
|
||||
*
|
||||
* <p>
|
||||
* The API allows a concrete {@link javax.xml.transform.TransformerFactory}
|
||||
* object to be created from the static function
|
||||
* {@link javax.xml.transform.TransformerFactory#newInstance}.
|
||||
*
|
||||
*
|
||||
* <h3>Specification of Inputs and Outputs</h3>
|
||||
*
|
||||
* <p>
|
||||
* This API defines two interface objects called {@link javax.xml.transform.Source}
|
||||
* and {@link javax.xml.transform.Result}. In order to pass Source and Result
|
||||
* objects to the interfaces, concrete classes must be used. The following concrete
|
||||
* representations are defined for each of these objects:
|
||||
* {@link javax.xml.transform.stream.StreamSource} and
|
||||
* {@link javax.xml.transform.stream.StreamResult},
|
||||
* {@link javax.xml.transform.stax.StAXSource} and
|
||||
* {@link javax.xml.transform.stax.StAXResult}, and
|
||||
* {@link javax.xml.transform.sax.SAXSource} and
|
||||
* {@link javax.xml.transform.sax.SAXResult}, and
|
||||
* {@link javax.xml.transform.dom.DOMSource} and
|
||||
* {@link javax.xml.transform.dom.DOMResult}. Each of these objects defines a
|
||||
* FEATURE string (which is in the form of a URL), which can be passed into
|
||||
* {@link javax.xml.transform.TransformerFactory#getFeature} to see if the given
|
||||
* type of Source or Result object is supported. For instance, to test if a
|
||||
* DOMSource and a StreamResult is supported, you can apply the following test.
|
||||
*
|
||||
* <pre>
|
||||
* <code>
|
||||
* TransformerFactory tfactory = TransformerFactory.newInstance();
|
||||
* if (tfactory.getFeature(DOMSource.FEATURE) &&
|
||||
* tfactory.getFeature(StreamResult.FEATURE)) {
|
||||
* ...
|
||||
* }
|
||||
* </code>
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <h3>
|
||||
* <a id="qname-delimiter">Qualified Name Representation</a>
|
||||
* </h3>
|
||||
*
|
||||
* <p>
|
||||
* <a href="http://www.w3.org/TR/REC-xml-names">Namespaces</a> present something
|
||||
* of a problem area when dealing with XML objects. Qualified Names appear in XML
|
||||
* markup as prefixed names. But the prefixes themselves do not hold identity.
|
||||
* Rather, it is the URIs that they contextually map to that hold the identity.
|
||||
* Therefore, when passing a Qualified Name like "xyz:foo" among Java programs,
|
||||
* one must provide a means to map "xyz" to a namespace.
|
||||
*
|
||||
* <p>
|
||||
* One solution has been to create a "QName" object that holds the namespace URI,
|
||||
* as well as the prefix and local name, but this is not always an optimal solution,
|
||||
* as when, for example, you want to use unique strings as keys in a dictionary
|
||||
* object. Not having a string representation also makes it difficult to specify
|
||||
* a namespaced identity outside the context of an XML document.
|
||||
*
|
||||
* <p>
|
||||
* In order to pass namespaced values to transformations, for instance when setting
|
||||
* a property or a parameter on a {@link javax.xml.transform.Transformer} object,
|
||||
* this specification defines that a String "qname" object parameter be passed as
|
||||
* two-part string, the namespace URI enclosed in curly braces ({}), followed by
|
||||
* the local name. If the qname has a null URI, then the String object only
|
||||
* contains the local name. An application can safely check for a non-null URI by
|
||||
* testing to see if the first character of the name is a '{' character.
|
||||
*
|
||||
* <p>
|
||||
* For example, if a URI and local name were obtained from an element defined with
|
||||
* <xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/>, then the
|
||||
* Qualified Name would be "{http://xyz.foo.com/yada/baz.html}foo". Note that the
|
||||
* prefix is lost.
|
||||
*
|
||||
*
|
||||
* <h3>Result Tree Serialization</h3>
|
||||
*
|
||||
* <p>
|
||||
* Serialization of the result tree to a stream can be controlled with the
|
||||
* {@link javax.xml.transform.Transformer#setOutputProperties} and the
|
||||
* {@link javax.xml.transform.Transformer#setOutputProperty} methods.
|
||||
* These properties only apply to stream results, they have no effect when
|
||||
* the result is a DOM tree or SAX event stream.
|
||||
*
|
||||
* <p>
|
||||
* Strings that match the <a href="http://www.w3.org/TR/xslt#output">XSLT
|
||||
* specification for xsl:output attributes</a> can be referenced from the
|
||||
* {@link javax.xml.transform.OutputKeys} class. Other strings can be
|
||||
* specified as well.
|
||||
* If the transformer does not recognize an output key, a
|
||||
* {@link java.lang.IllegalArgumentException} is thrown, unless the key name
|
||||
* is <a href="#qname-delimiter">namespace qualified</a>. Output key names
|
||||
* that are namespace qualified are always allowed, although they may be
|
||||
* ignored by some implementations.
|
||||
*
|
||||
* <p>
|
||||
* If all that is desired is the simple identity transformation of a
|
||||
* source to a result, then {@link javax.xml.transform.TransformerFactory}
|
||||
* provides a
|
||||
* {@link javax.xml.transform.TransformerFactory#newTransformer()} method
|
||||
* with no arguments. This method creates a Transformer that effectively copies
|
||||
* the source to the result. This method may be used to create a DOM from SAX
|
||||
* events or to create an XML or HTML stream from a DOM or SAX events.
|
||||
*
|
||||
* <h3>Exceptions and Error Reporting</h3>
|
||||
*
|
||||
* <p>
|
||||
* The transformation API throw three types of specialized exceptions. A
|
||||
* {@link javax.xml.transform.TransformerFactoryConfigurationError} is parallel to
|
||||
* the {@link javax.xml.parsers.FactoryConfigurationError}, and is thrown
|
||||
* when a configuration problem with the TransformerFactory exists. This error
|
||||
* will typically be thrown when the transformation factory class specified with
|
||||
* the "javax.xml.transform.TransformerFactory" system property cannot be found or
|
||||
* instantiated.
|
||||
*
|
||||
* <p>
|
||||
* A {@link javax.xml.transform.TransformerConfigurationException}
|
||||
* may be thrown if for any reason a Transformer can not be created. A
|
||||
* TransformerConfigurationException may be thrown if there is a syntax error in
|
||||
* the transformation instructions, for example when
|
||||
* {@link javax.xml.transform.TransformerFactory#newTransformer} is
|
||||
* called.
|
||||
*
|
||||
* <p>
|
||||
* {@link javax.xml.transform.TransformerException} is a general
|
||||
* exception that occurs during the course of a transformation. A transformer
|
||||
* exception may wrap another exception, and if any of the
|
||||
* {@link javax.xml.transform.TransformerException#printStackTrace()}
|
||||
* methods are called on it, it will produce a list of stack dumps, starting from
|
||||
* the most recent. The transformer exception also provides a
|
||||
* {@link javax.xml.transform.SourceLocator} object which indicates where
|
||||
* in the source tree or transformation instructions the error occurred.
|
||||
* {@link javax.xml.transform.TransformerException#getMessageAndLocation()}
|
||||
* may be called to get an error message with location info, and
|
||||
* {@link javax.xml.transform.TransformerException#getLocationAsString()}
|
||||
* may be called to get just the location string.
|
||||
*
|
||||
* <p>
|
||||
* Transformation warnings and errors are sent to an
|
||||
* {@link javax.xml.transform.ErrorListener}, at which point the application may
|
||||
* decide to report the error or warning, and may decide to throw an
|
||||
* <code>Exception</code> for a non-fatal error. The <code>ErrorListener</code>
|
||||
* may be set via {@link javax.xml.transform.TransformerFactory#setErrorListener}
|
||||
* for reporting errors that have to do with syntax errors in the transformation
|
||||
* instructions, or via {@link javax.xml.transform.Transformer#setErrorListener}
|
||||
* to report errors that occur during the transformation. The <code>ErrorListener</code>
|
||||
* on both objects will always be valid and non-<code>null</code>, whether set by
|
||||
* the application or a default implementation provided by the processor.
|
||||
* The default implementation provided by the processor will report all warnings
|
||||
* and errors to <code>System.err</code> and does not throw any <code>Exception</code>s.
|
||||
* Applications are <em>strongly</em> encouraged to register and use
|
||||
* <code>ErrorListener</code>s that insure proper behavior for warnings and
|
||||
* errors.
|
||||
*
|
||||
*
|
||||
* <h3>Resolution of URIs within a transformation</h3>
|
||||
*
|
||||
* <p>
|
||||
* The API provides a way for URIs referenced from within the stylesheet
|
||||
* instructions or within the transformation to be resolved by the calling
|
||||
* application. This can be done by creating a class that implements the
|
||||
* {@link javax.xml.transform.URIResolver} interface, with its one method,
|
||||
* {@link javax.xml.transform.URIResolver#resolve}, and use this class to
|
||||
* set the URI resolution for the transformation instructions or transformation
|
||||
* with {@link javax.xml.transform.TransformerFactory#setURIResolver} or
|
||||
* {@link javax.xml.transform.Transformer#setURIResolver}. The
|
||||
* <code>URIResolver.resolve</code> method takes two String arguments, the URI
|
||||
* found in the stylesheet instructions or built as part of the transformation
|
||||
* process, and the base URI against which the first argument will be made absolute
|
||||
* if the absolute URI is required.
|
||||
* The returned {@link javax.xml.transform.Source} object must be usable by
|
||||
* the transformer, as specified in its implemented features.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.transform;
|
@ -1,229 +0,0 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>javax.xml.transform</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:39 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>This package defines the generic APIs for processing transformation
|
||||
instructions, and performing a transformation from source to result. These
|
||||
interfaces have no dependencies on SAX or the DOM standard, and try to make as
|
||||
few assumptions as possible about the details of the source and result of a
|
||||
transformation. It achieves this by defining
|
||||
{@link javax.xml.transform.Source} and
|
||||
{@link javax.xml.transform.Result} interfaces.
|
||||
</p>
|
||||
|
||||
<p>To define concrete classes for the user, the API defines specializations
|
||||
of the interfaces found at the root level. These interfaces are found in
|
||||
{@link javax.xml.transform.sax}, {@link javax.xml.transform.dom},
|
||||
and {@link javax.xml.transform.stream}.
|
||||
</p>
|
||||
|
||||
|
||||
<h3>Creating Objects</h3>
|
||||
|
||||
<p>The API allows a concrete
|
||||
{@link javax.xml.transform.TransformerFactory} object to be created from
|
||||
the static function
|
||||
{@link javax.xml.transform.TransformerFactory#newInstance}.
|
||||
</p>
|
||||
|
||||
|
||||
<h3>Specification of Inputs and Outputs</h3>
|
||||
|
||||
<p>This API defines two interface objects called
|
||||
{@link javax.xml.transform.Source} and
|
||||
{@link javax.xml.transform.Result}. In order to pass Source and Result
|
||||
objects to the interfaces, concrete classes must be used.
|
||||
Three concrete representations are defined for each of these
|
||||
objects:
|
||||
{@link javax.xml.transform.stream.StreamSource} and
|
||||
{@link javax.xml.transform.stream.StreamResult},
|
||||
{@link javax.xml.transform.sax.SAXSource} and
|
||||
{@link javax.xml.transform.sax.SAXResult}, and
|
||||
{@link javax.xml.transform.dom.DOMSource} and
|
||||
{@link javax.xml.transform.dom.DOMResult}. Each of these objects defines
|
||||
a FEATURE string (which is i the form of a URL), which can be passed into
|
||||
{@link javax.xml.transform.TransformerFactory#getFeature} to see if the
|
||||
given type of Source or Result object is supported. For instance, to test if a
|
||||
DOMSource and a StreamResult is supported, you can apply the following
|
||||
test.
|
||||
</p>
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
TransformerFactory tfactory = TransformerFactory.newInstance();
|
||||
if (tfactory.getFeature(DOMSource.FEATURE) && tfactory.getFeature(StreamResult.FEATURE)) {
|
||||
...
|
||||
}
|
||||
</code>
|
||||
</pre>
|
||||
|
||||
|
||||
<h3>
|
||||
<a id="qname-delimiter">Qualified Name Representation</a>
|
||||
</h3>
|
||||
|
||||
<p><a href="http://www.w3.org/TR/REC-xml-names">Namespaces</a>
|
||||
present something of a problem area when dealing with XML objects. Qualified
|
||||
Names appear in XML markup as prefixed names. But the prefixes themselves do
|
||||
not hold identity. Rather, it is the URIs that they contextually map to that
|
||||
hold the identity. Therefore, when passing a Qualified Name like "xyz:foo"
|
||||
among Java programs, one must provide a means to map "xyz" to a namespace.
|
||||
</p>
|
||||
|
||||
<p>One solution has been to create a "QName" object that holds the
|
||||
namespace URI, as well as the prefix and local name, but this is not always an
|
||||
optimal solution, as when, for example, you want to use unique strings as keys
|
||||
in a dictionary object. Not having a string representation also makes it
|
||||
difficult to specify a namespaced identity outside the context of an XML
|
||||
document.
|
||||
</p>
|
||||
|
||||
<p>In order to pass namespaced values to transformations,
|
||||
for
|
||||
instance when setting a property or a parameter on a
|
||||
{@link javax.xml.transform.Transformer} object,
|
||||
this specification defines that a
|
||||
String "qname" object parameter be passed as two-part string, the namespace URI
|
||||
enclosed in curly braces ({}), followed by the local name. If the qname has a
|
||||
null URI, then the String object only contains the local name. An application
|
||||
can safely check for a non-null URI by testing to see if the first character of
|
||||
the name is a '{' character.
|
||||
</p>
|
||||
|
||||
<p>For example, if a URI and local name were obtained from an element
|
||||
defined with <xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/>,
|
||||
then the Qualified Name would be "{http://xyz.foo.com/yada/baz.html}foo".
|
||||
Note that the prefix is lost.
|
||||
</p>
|
||||
|
||||
|
||||
<h3>Result Tree Serialization</h3>
|
||||
|
||||
<p>Serialization of the result tree to a stream can be controlled with
|
||||
the {@link javax.xml.transform.Transformer#setOutputProperties} and the
|
||||
{@link javax.xml.transform.Transformer#setOutputProperty} methods.
|
||||
These properties only apply to stream results, they have no effect when
|
||||
the result is a DOM tree or SAX event stream.</p>
|
||||
|
||||
<p>Strings that match the <a href="http://www.w3.org/TR/xslt#output">XSLT
|
||||
specification for xsl:output attributes</a> can be referenced from the
|
||||
{@link javax.xml.transform.OutputKeys} class. Other strings can be
|
||||
specified as well.
|
||||
If the transformer does not recognize an output key, a
|
||||
{@link java.lang.IllegalArgumentException} is thrown, unless the
|
||||
key name is <a href="#qname-delimiter">namespace qualified</a>. Output key names
|
||||
that are namespace qualified are always allowed, although they may be
|
||||
ignored by some implementations.</p>
|
||||
|
||||
<p>If all that is desired is the simple identity transformation of a
|
||||
source to a result, then {@link javax.xml.transform.TransformerFactory}
|
||||
provides a
|
||||
{@link javax.xml.transform.TransformerFactory#newTransformer()} method
|
||||
with no arguments. This method creates a Transformer that effectively copies
|
||||
the source to the result. This method may be used to create a DOM from SAX
|
||||
events or to create an XML or HTML stream from a DOM or SAX events. </p>
|
||||
|
||||
<h3>Exceptions and Error Reporting</h3>
|
||||
|
||||
<p>The transformation API throw three types of specialized exceptions. A
|
||||
{@link javax.xml.transform.TransformerFactoryConfigurationError} is parallel to
|
||||
the {@link javax.xml.parsers.FactoryConfigurationError}, and is thrown
|
||||
when a configuration problem with the TransformerFactory exists. This error
|
||||
will typically be thrown when the transformation factory class specified with
|
||||
the "javax.xml.transform.TransformerFactory" system property cannot be found or
|
||||
instantiated.</p>
|
||||
|
||||
<p>A {@link javax.xml.transform.TransformerConfigurationException}
|
||||
may be thrown if for any reason a Transformer can not be created. A
|
||||
TransformerConfigurationException may be thrown if there is a syntax error in
|
||||
the transformation instructions, for example when
|
||||
{@link javax.xml.transform.TransformerFactory#newTransformer} is
|
||||
called.</p>
|
||||
|
||||
<p>{@link javax.xml.transform.TransformerException} is a general
|
||||
exception that occurs during the course of a transformation. A transformer
|
||||
exception may wrap another exception, and if any of the
|
||||
{@link javax.xml.transform.TransformerException#printStackTrace()}
|
||||
methods are called on it, it will produce a list of stack dumps, starting from
|
||||
the most recent. The transformer exception also provides a
|
||||
{@link javax.xml.transform.SourceLocator} object which indicates where
|
||||
in the source tree or transformation instructions the error occurred.
|
||||
{@link javax.xml.transform.TransformerException#getMessageAndLocation()}
|
||||
may be called to get an error message with location info, and
|
||||
{@link javax.xml.transform.TransformerException#getLocationAsString()}
|
||||
may be called to get just the location string.</p>
|
||||
|
||||
<p>Transformation warnings and errors are sent to an
|
||||
{@link javax.xml.transform.ErrorListener}, at which point the
|
||||
application may decide to report the error or warning, and may decide to throw
|
||||
an <code>Exception</code> for a non-fatal error. The <code>ErrorListener</code> may be set via
|
||||
{@link javax.xml.transform.TransformerFactory#setErrorListener} for
|
||||
reporting errors that have to do with syntax errors in the transformation
|
||||
instructions, or via
|
||||
{@link javax.xml.transform.Transformer#setErrorListener} to report
|
||||
errors that occur during the transformation. The <code>ErrorListener</code> on both objects
|
||||
will always be valid and non-<code>null</code>, whether set by the application or a default
|
||||
implementation provided by the processor.
|
||||
The default implementation provided by the processor will report all warnings and errors to <code>System.err</code>
|
||||
and does not throw any <code>Exception</code>s.
|
||||
Applications are <em>strongly</em> encouraged to register and use
|
||||
<code>ErrorListener</code>s that insure proper behavior for warnings and
|
||||
errors.
|
||||
</p>
|
||||
|
||||
|
||||
<h3>Resolution of URIs within a transformation</h3>
|
||||
|
||||
<p>The API provides a way for URIs referenced from within the stylesheet
|
||||
instructions or within the transformation to be resolved by the calling
|
||||
application. This can be done by creating a class that implements the
|
||||
{@link javax.xml.transform.URIResolver} interface, with its one method,
|
||||
{@link javax.xml.transform.URIResolver#resolve}, and use this class to
|
||||
set the URI resolution for the transformation instructions or transformation
|
||||
with {@link javax.xml.transform.TransformerFactory#setURIResolver} or
|
||||
{@link javax.xml.transform.Transformer#setURIResolver}. The
|
||||
<code>URIResolver.resolve</code> method takes two String arguments, the URI found in the
|
||||
stylesheet instructions or built as part of the transformation process, and the
|
||||
base URI
|
||||
against which the first argument will be made absolute if the
|
||||
absolute URI is required.
|
||||
The returned {@link javax.xml.transform.Source} object must be usable by
|
||||
the transformer, as specified in its implemented features.</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides SAX specific transformation classes.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.SAXSource} class allows the
|
||||
* setting of an {@link org.xml.sax.XMLReader} to be used for pulling
|
||||
* parse events, and an {@link org.xml.sax.InputSource} that may be used to
|
||||
* specify the SAX source.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.SAXResult} class allows the
|
||||
* setting of a {@link org.xml.sax.ContentHandler} to be the receiver of
|
||||
* SAX2 events from the transformation.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.SAXTransformerFactory} extends
|
||||
* {@link javax.xml.transform.TransformerFactory} to provide factory
|
||||
* methods for creating {@link javax.xml.transform.sax.TemplatesHandler},
|
||||
* {@link javax.xml.transform.sax.TransformerHandler}, and
|
||||
* {@link org.xml.sax.XMLReader} instances.
|
||||
* <p>
|
||||
* To obtain a {@link javax.xml.transform.sax.SAXTransformerFactory},
|
||||
* the caller must cast the {@link javax.xml.transform.TransformerFactory}
|
||||
* instance returned from
|
||||
* {@link javax.xml.transform.TransformerFactory#newInstance}.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.TransformerHandler} interface
|
||||
* allows a transformation to be created from SAX2 parse events, which is a "push"
|
||||
* model rather than the "pull" model that normally occurs for a transformation.
|
||||
* Normal parse events are received through the
|
||||
* {@link org.xml.sax.ContentHandler} interface, lexical events such as
|
||||
* startCDATA and endCDATA are received through the
|
||||
* {@link org.xml.sax.ext.LexicalHandler} interface, and events that signal
|
||||
* the start or end of disabling output escaping are received via
|
||||
* {@link org.xml.sax.ContentHandler#processingInstruction}, with the
|
||||
* target parameter being
|
||||
* {@link javax.xml.transform.Result#PI_DISABLE_OUTPUT_ESCAPING} and
|
||||
* {@link javax.xml.transform.Result#PI_ENABLE_OUTPUT_ESCAPING}. If
|
||||
* parameters, output properties, or other features need to be set on the
|
||||
* Transformer handler, a {@link javax.xml.transform.Transformer} reference
|
||||
* will need to be obtained from
|
||||
* {@link javax.xml.transform.sax.TransformerHandler#getTransformer}, and
|
||||
* the methods invoked from that reference.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.TemplatesHandler} interface
|
||||
* allows the creation of {@link javax.xml.transform.Templates} objects
|
||||
* from SAX2 parse events. Once the {@link org.xml.sax.ContentHandler}
|
||||
* events are complete, the Templates object may be obtained from
|
||||
* {@link javax.xml.transform.sax.TemplatesHandler#getTemplates}. Note that
|
||||
* {@link javax.xml.transform.sax.TemplatesHandler#setSystemId} should
|
||||
* normally be called in order to establish a base system ID from which relative
|
||||
* URLs may be resolved.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.sax.SAXTransformerFactory#newXMLFilter}
|
||||
* method allows the creation of a {@link org.xml.sax.XMLFilter}, which
|
||||
* encapsulates the SAX2 notion of a "pull" transformation. The resulting
|
||||
* {@code XMLFilters} can be chained together so that a series of transformations
|
||||
* can happen with one's output becoming another's input.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.transform.sax;
|
@ -1,104 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>javax.xml.transform.sax</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:41 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>This package implements SAX2-specific transformation APIs. It provides
|
||||
classes which allow input from {@link org.xml.sax.ContentHandler}
|
||||
events, and also classes that produce org.xml.sax.ContentHandler events. It
|
||||
also provides methods to set the input source as an
|
||||
{@link org.xml.sax.XMLReader}, or to use a
|
||||
{@link org.xml.sax.InputSource} as the source. It also allows the
|
||||
creation of a {@link org.xml.sax.XMLFilter}, which enables
|
||||
transformations to "pull" from other transformations, and lets the transformer
|
||||
to be used polymorphically as an {@link org.xml.sax.XMLReader}.</p>
|
||||
<p>The {@link javax.xml.transform.sax.SAXSource} class allows the
|
||||
setting of an {@link org.xml.sax.XMLReader} to be used for "pulling"
|
||||
parse events, and an {@link org.xml.sax.InputSource} that may be used to
|
||||
specify the SAX source.</p>
|
||||
<p>The {@link javax.xml.transform.sax.SAXResult} class allows the
|
||||
setting of a {@link org.xml.sax.ContentHandler} to be the receiver of
|
||||
SAX2 events from the transformation.
|
||||
<p>The {@link javax.xml.transform.sax.SAXTransformerFactory} extends
|
||||
{@link javax.xml.transform.TransformerFactory} to provide factory
|
||||
methods for creating {@link javax.xml.transform.sax.TemplatesHandler},
|
||||
{@link javax.xml.transform.sax.TransformerHandler}, and
|
||||
{@link org.xml.sax.XMLReader} instances.</p>
|
||||
<p>To obtain a {@link javax.xml.transform.sax.SAXTransformerFactory},
|
||||
the caller must cast the {@link javax.xml.transform.TransformerFactory}
|
||||
instance returned from
|
||||
{@link javax.xml.transform.TransformerFactory#newInstance}.
|
||||
|
||||
<p>The {@link javax.xml.transform.sax.TransformerHandler} interface
|
||||
allows a transformation to be created from SAX2 parse events, which is a "push"
|
||||
model rather than the "pull" model that normally occurs for a transformation.
|
||||
Normal parse events are received through the
|
||||
{@link org.xml.sax.ContentHandler} interface, lexical events such as
|
||||
startCDATA and endCDATA are received through the
|
||||
{@link org.xml.sax.ext.LexicalHandler} interface, and events that signal
|
||||
the start or end of disabling output escaping are received via
|
||||
{@link org.xml.sax.ContentHandler#processingInstruction}, with the
|
||||
target parameter being
|
||||
{@link javax.xml.transform.Result#PI_DISABLE_OUTPUT_ESCAPING} and
|
||||
{@link javax.xml.transform.Result#PI_ENABLE_OUTPUT_ESCAPING}. If
|
||||
parameters, output properties, or other features need to be set on the
|
||||
Transformer handler, a {@link javax.xml.transform.Transformer} reference
|
||||
will need to be obtained from
|
||||
{@link javax.xml.transform.sax.TransformerHandler#getTransformer}, and
|
||||
the methods invoked from that reference.
|
||||
|
||||
<p>The {@link javax.xml.transform.sax.TemplatesHandler} interface
|
||||
allows the creation of {@link javax.xml.transform.Templates} objects
|
||||
from SAX2 parse events. Once the {@link org.xml.sax.ContentHandler}
|
||||
events are complete, the Templates object may be obtained from
|
||||
{@link javax.xml.transform.sax.TemplatesHandler#getTemplates}. Note that
|
||||
{@link javax.xml.transform.sax.TemplatesHandler#setSystemId} should
|
||||
normally be called in order to establish a base system ID from which relative
|
||||
URLs may be resolved.
|
||||
<p>The
|
||||
{@link javax.xml.transform.sax.SAXTransformerFactory#newXMLFilter}
|
||||
method allows the creation of a {@link org.xml.sax.XMLFilter}, which
|
||||
encapsulates the SAX2 notion of a "pull" transformation. The following
|
||||
illustrates several transformations chained together. Each filter points to a
|
||||
parent {@link org.xml.sax.XMLReader}, and the final transformation is
|
||||
caused by invoking {@link org.xml.sax.XMLReader#parse} on the final
|
||||
reader in the chain.</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides StAX specific transformation classes.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.stax.StAXSource} class encapsulates a
|
||||
* {@link javax.xml.stream.XMLStreamReader} or {@link javax.xml.stream.XMLEventReader}
|
||||
* and can be used as an input where a {@link javax.xml.transform.Source}
|
||||
* object is accepted.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.stax.StAXResult} class encapsulates a
|
||||
* {@link javax.xml.stream.XMLStreamWriter} or {@link javax.xml.stream.XMLEventWriter}
|
||||
* and can be used as an output where a {@link javax.xml.transform.Result}
|
||||
* object is accepted.
|
||||
*
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
|
||||
package javax.xml.transform.stax;
|
@ -1,66 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>javax.xml.transform.stax</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/11/03 19:34:28 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
<meta name="AUTHOR"
|
||||
content="Neeraj.Bajaj@Sun.com" />
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This package implements StAX-specific transformation APIs. It provides
|
||||
classes which allow input from a StAX reader, that is,
|
||||
{@link javax.xml.stream.XMLStreamReader} or {@link javax.xml.stream.XMLEventReader},
|
||||
and output to a StAX writer, that is,
|
||||
{@link javax.xml.stream.XMLStreamWriter} or {@link javax.xml.stream.XMLEventWriter}.
|
||||
</p>
|
||||
<p>
|
||||
The {@link javax.xml.transform.stax.StAXSource} class encapsulates a
|
||||
{@link javax.xml.stream.XMLStreamReader} or {@link javax.xml.stream.XMLEventReader}
|
||||
and can be used as an input where a {@link javax.xml.transform.Source}
|
||||
object is accepted.
|
||||
</p>
|
||||
<p>
|
||||
The {@link javax.xml.transform.stax.StAXResult} class encapsulates a
|
||||
{@link javax.xml.stream.XMLStreamWriter} or {@link javax.xml.stream.XMLEventWriter}
|
||||
and can be used as an output where a {@link javax.xml.transform.Result}
|
||||
object is accepted.
|
||||
</p>
|
||||
|
||||
@since 1.6
|
||||
</body>
|
||||
</html>
|
||||
|
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides stream and URI specific transformation classes.
|
||||
*
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.stream.StreamSource} class
|
||||
* provides methods for specifying {@link java.io.InputStream} input,
|
||||
* {@link java.io.Reader} input, and URL input in the form of strings. Even
|
||||
* if an input stream or reader is specified as the source,
|
||||
* {@link javax.xml.transform.stream.StreamSource#setSystemId} should still
|
||||
* be called, so that the transformer can know from where it should resolve
|
||||
* relative URIs. The public identifier is always optional: if the application
|
||||
* writer includes one, it will be provided as part of the
|
||||
* {@link javax.xml.transform.SourceLocator} information.
|
||||
* <p>
|
||||
* The {@link javax.xml.transform.stream.StreamResult} class
|
||||
* provides methods for specifying {@link java.io.OutputStream},
|
||||
* {@link java.io.Writer}, or an output system ID, as the output of the
|
||||
* transformation result.
|
||||
* <p>
|
||||
* Normally streams should be used rather than readers or writers, for
|
||||
* both the Source and Result, since readers and writers already have the encoding
|
||||
* established to and from the internal Unicode format. However, there are times
|
||||
* when it is useful to write to a character stream, such as when using a
|
||||
* StringWriter in order to write to a String, or in the case of reading source
|
||||
* XML from a StringReader.
|
||||
*
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.transform.stream;
|
@ -1,64 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<title>javax.xml.transform.stream</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:42 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
<body>
|
||||
<p>This package implements stream- and URI- specific transformation APIs.
|
||||
</p>
|
||||
<p>The {@link javax.xml.transform.stream.StreamSource} class
|
||||
provides methods for specifying {@link java.io.InputStream} input,
|
||||
{@link java.io.Reader} input, and URL input in the form of strings. Even
|
||||
if an input stream or reader is specified as the source,
|
||||
{@link javax.xml.transform.stream.StreamSource#setSystemId} should still
|
||||
be called, so that the transformer can know from where it should resolve
|
||||
relative URIs. The public identifier is always optional: if the application
|
||||
writer includes one, it will be provided as part of the
|
||||
{@link javax.xml.transform.SourceLocator} information.</p>
|
||||
<p>The {@link javax.xml.transform.stream.StreamResult} class
|
||||
provides methods for specifying {@link java.io.OutputStream},
|
||||
{@link java.io.Writer}, or an output system ID, as the output of the
|
||||
transformation result.</p>
|
||||
<p>Normally streams should be used rather than readers or writers, for
|
||||
both the Source and Result, since readers and writers already have the encoding
|
||||
established to and from the internal Unicode format. However, there are times
|
||||
when it is useful to write to a character stream, such as when using a
|
||||
StringWriter in order to write to a String, or in the case of reading source
|
||||
XML from a StringReader.</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Provides an API for validation of XML documents. <em>Validation</em> is the
|
||||
* process of verifying that an XML document is an instance of a specified XML
|
||||
* <em>schema</em>. An XML schema defines the content model (also called a
|
||||
* <em>grammar</em> or <em>vocabulary</em>) that its instance documents will
|
||||
* represent.
|
||||
*
|
||||
* <p>
|
||||
* There are a number of popular technologies available for creating an XML schema.
|
||||
* Some of the most popular ones include:
|
||||
*
|
||||
* <ul>
|
||||
* <li><strong>Document Type Definition (DTD)</strong>
|
||||
* - XML's built-in schema language.
|
||||
* </li>
|
||||
* <li><strong><a href="http://www.w3.org/XML/Schema">W3C XML Schema (WXS)</a></strong> -
|
||||
* an object-oriented XML schema language. WXS also provides a type system
|
||||
* for constraining the character data of an XML document. WXS is maintained
|
||||
* by the <a href="http://www.w3.org">World Wide Web Consortium (W3C)</a>
|
||||
* and is a W3C Recommendation (that is, a ratified W3C standard specification).
|
||||
* </li>
|
||||
* <li><strong><a href="http://www.relaxng.org">RELAX NG (RNG)</a></strong> -
|
||||
* a pattern-based, user-friendly XML schema language. RNG schemas may
|
||||
* also use types to constrain XML character data. RNG is maintained by
|
||||
* the <a href="http://www.oasis-open.org">Organization for the Advancement
|
||||
* of Structured Information Standards (OASIS)</a> and is both an OASIS
|
||||
* and an <a href="http://www.iso.org">ISO (International Organization
|
||||
* for Standardization)</a> standard.
|
||||
* </li>
|
||||
* <li><strong><a href="http://www.schematron.com/">Schematron</a></strong> -
|
||||
* a rules-based XML schema language. Whereas DTD, WXS, and RNG are designed
|
||||
* to express the structure of a content model, Schematron is designed to
|
||||
* enforce individual rules that are difficult or impossible to express
|
||||
* with other schema languages. Schematron is intended to supplement a
|
||||
* schema written in structural schema language such as the aforementioned.
|
||||
* Schematron is in the process of becoming an ISO standard.
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* While JAXP supports validation as a feature of an XML parser, represented by
|
||||
* either a {@link javax.xml.parsers.SAXParser} or {@link javax.xml.parsers.DocumentBuilder}
|
||||
* instance, the {@code Validation} API is preferred.
|
||||
*
|
||||
* <p>
|
||||
* The JAXP validation API decouples the validation of an instance document from
|
||||
* the parsing of an XML document. This is advantageous for several reasons,
|
||||
* some of which are:
|
||||
*
|
||||
* <ul>
|
||||
* <li><strong>Support for additional schema langauges.</strong>
|
||||
* The JAXP parser implementations support only a subset of the available
|
||||
* XML schema languages. The Validation API provides a standard mechanism
|
||||
* through which applications may take of advantage of specialization
|
||||
* validation libraries which support additional schema languages.
|
||||
* </li>
|
||||
* <li><strong>Easy runtime coupling of an XML instance and schema.</strong>
|
||||
* Specifying the location of a schema to use for validation with JAXP
|
||||
* parsers can be confusing. The Validation API makes this process simple
|
||||
* (see <a href="#example-1">example</a> below).
|
||||
* </li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* <a id="example-1"><strong>Usage example</strong>.</a> The following example
|
||||
* demonstrates validating an XML document with the Validation API
|
||||
* (for readability, some exception handling is not shown):
|
||||
*
|
||||
* <pre>
|
||||
*
|
||||
* // parse an XML document into a DOM tree
|
||||
* DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
* Document document = parser.parse(new File("instance.xml"));
|
||||
*
|
||||
* // create a SchemaFactory capable of understanding WXS schemas
|
||||
* SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
|
||||
*
|
||||
* // load a WXS schema, represented by a Schema instance
|
||||
* Source schemaFile = new StreamSource(new File("mySchema.xsd"));
|
||||
* Schema schema = factory.newSchema(schemaFile);
|
||||
*
|
||||
* // create a Validator instance, which can be used to validate an instance document
|
||||
* Validator validator = schema.newValidator();
|
||||
*
|
||||
* // validate the DOM tree
|
||||
* try {
|
||||
* validator.validate(new DOMSource(document));
|
||||
* } catch (SAXException e) {
|
||||
* // instance document is invalid!
|
||||
* }
|
||||
* </pre>
|
||||
* <p>
|
||||
* The JAXP parsing API has been integrated with the Validation API. Applications
|
||||
* may create a {@link javax.xml.validation.Schema} with the validation API
|
||||
* and associate it with a {@link javax.xml.parsers.DocumentBuilderFactory} or
|
||||
* a {@link javax.xml.parsers.SAXParserFactory} instance by using the
|
||||
* {@link javax.xml.parsers.DocumentBuilderFactory#setSchema(Schema)} and
|
||||
* {@link javax.xml.parsers.SAXParserFactory#setSchema(Schema)} methods.
|
||||
* <strong>You should not</strong> both set a schema and call <code>setValidating(true)</code>
|
||||
* on a parser factory. The former technique will cause parsers to use the new
|
||||
* validation API; the latter will cause parsers to use their own internal validation
|
||||
* facilities. <strong>Turning on both of these options simultaneously will cause
|
||||
* either redundant behavior or error conditions.</strong>
|
||||
*
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package javax.xml.validation;
|
@ -1,120 +0,0 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>javax.xml.validation</title>
|
||||
|
||||
<meta name="CVS"
|
||||
content="$Id: package.html,v 1.2 2005/06/10 03:50:43 jeffsuttor Exp $" />
|
||||
<meta name="AUTHOR"
|
||||
content="Jeff.Suttor@Sun.com" />
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This package provides an API for validation of XML documents. <em>Validation</em> is the process of verifying
|
||||
that an XML document is an instance of a specified XML <em>schema</em>. An XML schema defines the
|
||||
content model (also called a <em>grammar</em> or <em>vocabulary</em>) that its instance documents
|
||||
will represent.
|
||||
</p>
|
||||
<p>
|
||||
There are a number of popular technologies available for creating an XML schema. Some of the most
|
||||
popular include:
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong>Document Type Definition (DTD)</strong> - XML's built-in schema language.</li>
|
||||
<li><strong><a href="http://www.w3.org/XML/Schema">W3C XML Schema (WXS)</a></strong> - an object-oriented XML schema
|
||||
language. WXS also provides a type system for constraining the character data of an XML document.
|
||||
WXS is maintained by the <a href="http://www.w3.org">World Wide Web Consortium (W3C)</a> and is a W3C
|
||||
Recommendation (that is, a ratified W3C standard specification).</li>
|
||||
<li><strong><a href="http://www.relaxng.org">RELAX NG (RNG)</a></strong> - a pattern-based,
|
||||
user-friendly XML schema language. RNG schemas may also use types to constrain XML character data.
|
||||
RNG is maintained by the <a href="http://www.oasis-open.org">Organization for the Advancement of
|
||||
Structured Information Standards (OASIS)</a> and is both an OASIS and an
|
||||
<a href="http://www.iso.org">ISO (International Organization for Standardization)</a> standard.</li>
|
||||
<li><strong><a href="http://www.schematron.com/">Schematron</a></strong> - a rules-based XML schema
|
||||
language. Whereas DTD, WXS, and RNG are designed to express the structure of a content model,
|
||||
Schematron is designed to enforce individual rules that are difficult or impossible to express
|
||||
with other schema languages. Schematron is intended to supplement a schema written in
|
||||
structural schema language such as the aforementioned. Schematron is in the process
|
||||
of becoming an ISO standard.</li>
|
||||
</ul>
|
||||
<p>
|
||||
Previous versions of JAXP supported validation as a feature of an XML parser, represented by
|
||||
either a {@link javax.xml.parsers.SAXParser} or {@link javax.xml.parsers.DocumentBuilder} instance.
|
||||
</p>
|
||||
<p>
|
||||
The JAXP validation API decouples the validation of an instance document from the parsing of an
|
||||
XML document. This is advantageous for several reasons, some of which are:
|
||||
</p>
|
||||
<ul>
|
||||
<li><strong>Support for additional schema langauges.</strong> As of JDK 1.5, the two most
|
||||
popular JAXP parser implementations, Crimson and Xerces, only support a subset of the available
|
||||
XML schema languages. The Validation API provides a standard mechanism through which applications
|
||||
may take of advantage of specialization validation libraries which support additional schema
|
||||
languages.</li>
|
||||
<li><strong>Easy runtime coupling of an XML instance and schema.</strong> Specifying the location
|
||||
of a schema to use for validation with JAXP parsers can be confusing. The Validation API makes this
|
||||
process simple (see <a href="#example-1">example</a> below).</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a id="example-1"><strong>Usage example</strong>.</a> The following example demonstrates validating
|
||||
an XML document with the Validation API (for readability, some exception handling is not shown):
|
||||
</p>
|
||||
<pre>
|
||||
|
||||
// parse an XML document into a DOM tree
|
||||
DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
Document document = parser.parse(new File("instance.xml"));
|
||||
|
||||
// create a SchemaFactory capable of understanding WXS schemas
|
||||
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
|
||||
|
||||
// load a WXS schema, represented by a Schema instance
|
||||
Source schemaFile = new StreamSource(new File("mySchema.xsd"));
|
||||
Schema schema = factory.newSchema(schemaFile);
|
||||
|
||||
// create a Validator instance, which can be used to validate an instance document
|
||||
Validator validator = schema.newValidator();
|
||||
|
||||
// validate the DOM tree
|
||||
try {
|
||||
validator.validate(new DOMSource(document));
|
||||
} catch (SAXException e) {
|
||||
// instance document is invalid!
|
||||
}
|
||||
</pre>
|
||||
<p>
|
||||
The JAXP parsing API has been integrated with the Validation API. Applications may create a {@link javax.xml.validation.Schema} with the validation API
|
||||
and associate it with a {@link javax.xml.parsers.DocumentBuilderFactory} or a {@link javax.xml.parsers.SAXParserFactory} instance
|
||||
by using the {@link javax.xml.parsers.DocumentBuilderFactory#setSchema(Schema)} and {@link javax.xml.parsers.SAXParserFactory#setSchema(Schema)}
|
||||
methods. <strong>You should not</strong> both set a schema and call <code>setValidating(true)</code> on a parser factory. The former technique
|
||||
will cause parsers to use the new validation API; the latter will cause parsers to use their own internal validation
|
||||
facilities. <strong>Turning on both of these options simultaneously will cause either redundant behavior or error conditions.</strong>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,401 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Provides an <em>object-model neutral</em> API for the
|
||||
* evaluation of XPath expressions and access to the evaluation
|
||||
* environment.
|
||||
*
|
||||
* <p>
|
||||
* The XPath API supports <a href="http://www.w3.org/TR/xpath">
|
||||
* XML Path Language (XPath) Version 1.0</a>
|
||||
*
|
||||
* <hr>
|
||||
*
|
||||
* <ul>
|
||||
* <li><a href='#XPath.Overview'>1. XPath Overview</a></li>
|
||||
* <li><a href='#XPath.Expressions'>2. XPath Expressions</a></li>
|
||||
* <li><a href='#XPath.Datatypes'>3. XPath Data Types</a>
|
||||
* <ul>
|
||||
* <li><a href='#XPath.Datatypes.QName'>3.1 QName Types</a>
|
||||
* <li><a href='#XPath.Datatypes.Class'>3.2 Class Types</a>
|
||||
* <li><a href='#XPath.Datatypes.Enum'>3.3 Enum Types</a>
|
||||
* </ul>
|
||||
* </li>
|
||||
* <li><a href='#XPath.Context'>4. XPath Context</a></li>
|
||||
* <li><a href='#XPath.Use'>5. Using the XPath API</a></li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* <a id="XPath.Overview"></a>
|
||||
* <h3>1. XPath Overview</h3>
|
||||
*
|
||||
* <p>
|
||||
* The XPath language provides a simple, concise syntax for selecting
|
||||
* nodes from an XML document. XPath also provides rules for converting a
|
||||
* node in an XML document object model (DOM) tree to a boolean, double,
|
||||
* or string value. XPath is a W3C-defined language and an official W3C
|
||||
* recommendation; the W3C hosts the XML Path Language (XPath) Version
|
||||
* 1.0 specification.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* XPath started in life in 1999 as a supplement to the XSLT and
|
||||
* XPointer languages, but has more recently become popular as a
|
||||
* stand-alone language, as a single XPath expression can be used to
|
||||
* replace many lines of DOM API code.
|
||||
*
|
||||
*
|
||||
* <a id="XPath.Expressions"></a>
|
||||
* <h3>2. XPath Expressions</h3>
|
||||
*
|
||||
* <p>
|
||||
* An XPath <em>expression</em> is composed of a <em>location
|
||||
* path</em> and one or more optional <em>predicates</em>. Expressions
|
||||
* may also include XPath variables.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* The following is an example of a simple XPath expression:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* /foo/bar
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* This example would select the <code><bar></code> element in
|
||||
* an XML document such as the following:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* <foo>
|
||||
* <bar/>
|
||||
* </foo>
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>The expression <code>/foo/bar</code> is an example of a location
|
||||
* path. While XPath location paths resemble Unix-style file system
|
||||
* paths, an important distinction is that XPath expressions return
|
||||
* <em>all</em> nodes that match the expression. Thus, all three
|
||||
* <code><bar></code> elements in the following document would be
|
||||
* selected by the <code>/foo/bar</code> expression:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* <foo>
|
||||
* <bar/>
|
||||
* <bar/>
|
||||
* <bar/>
|
||||
* </foo>
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* A special location path operator, <code>//</code>, selects nodes at
|
||||
* any depth in an XML document. The following example selects all
|
||||
* <code><bar></code> elements regardless of their location in a
|
||||
* document:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* //bar
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* A wildcard operator, *, causes all element nodes to be selected.
|
||||
* The following example selects all children elements of a
|
||||
* <code><foo></code> element:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* /foo/*
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* In addition to element nodes, XPath location paths may also address
|
||||
* attribute nodes, text nodes, comment nodes, and processing instruction
|
||||
* nodes. The following table gives examples of location paths for each
|
||||
* of these node types:
|
||||
*
|
||||
* <table class="striped">
|
||||
* <caption>Examples of Location Path</caption>
|
||||
* <thead>
|
||||
* <tr>
|
||||
* <th>Location Path</th>
|
||||
* <th>Description</th>
|
||||
* </tr>
|
||||
* </thead>
|
||||
* <tbody>
|
||||
* <tr>
|
||||
* <td>
|
||||
* <code>/foo/bar/<strong>@id</strong></code>
|
||||
* </td>
|
||||
* <td>
|
||||
* Selects the attribute <code>id</code> of the <code><bar></code> element
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td><code>/foo/bar/<strong>text()</strong></code>
|
||||
* </td>
|
||||
* <td>
|
||||
* Selects the text nodes of the <code><bar></code> element. No
|
||||
* distinction is made between escaped and non-escaped character data.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td><code>/foo/bar/<strong>comment()</strong></code>
|
||||
* </td>
|
||||
* <td>
|
||||
* Selects all comment nodes contained in the <code><bar></code> element.
|
||||
* </td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td><code>/foo/bar/<strong>processing-instruction()</strong></code>
|
||||
* </td>
|
||||
* <td>
|
||||
* Selects all processing-instruction nodes contained in the
|
||||
* <code><bar></code> element.
|
||||
* </td>
|
||||
* </tr>
|
||||
* </tbody>
|
||||
* </table>
|
||||
*
|
||||
* <p>
|
||||
* Predicates allow for refining the nodes selected by an XPath
|
||||
* location path. Predicates are of the form
|
||||
* <code>[<em>expression</em>]</code>. The following example selects all
|
||||
* <code><foo></code> elements that contain an <code>include</code>
|
||||
* attribute with the value of <code>true</code>:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* //foo[@include='true']
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* Predicates may be appended to each other to further refine an
|
||||
* expression, such as:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* //foo[@include='true'][@mode='bar']
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <a id="XPath.Datatypes"></a>
|
||||
* <h3>3. XPath Data Types</h3>
|
||||
*
|
||||
* <p>
|
||||
* While XPath expressions select nodes in the XML document, the XPath
|
||||
* API allows the selected nodes to be coalesced into one of the
|
||||
* following data types:
|
||||
*
|
||||
* <ul>
|
||||
* <li><code>Boolean</code></li>
|
||||
* <li><code>Number</code></li>
|
||||
* <li><code>String</code></li>
|
||||
* </ul>
|
||||
*
|
||||
* <a id="XPath.Datatypes.QName"></a>
|
||||
* <h3>3.1 QName types</h3>
|
||||
* The XPath API defines the following {@link javax.xml.namespace.QName} types to
|
||||
* represent return types of an XPath evaluation:
|
||||
* <ul>
|
||||
* <li>{@link javax.xml.xpath.XPathConstants#NODESET}</li>
|
||||
* <li>{@link javax.xml.xpath.XPathConstants#NODE}</li>
|
||||
* <li>{@link javax.xml.xpath.XPathConstants#STRING}</li>
|
||||
* <li>{@link javax.xml.xpath.XPathConstants#BOOLEAN}</li>
|
||||
* <li>{@link javax.xml.xpath.XPathConstants#NUMBER}</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>
|
||||
* The return type is specified by a {@link javax.xml.namespace.QName} parameter
|
||||
* in method call used to evaluate the expression, which is either a call to
|
||||
* <code>XPathExpression.evalute(...)</code> or <code>XPath.evaluate(...)</code>
|
||||
* methods.
|
||||
*
|
||||
* <p>
|
||||
* When a <code>Boolean</code> return type is requested,
|
||||
* <code>Boolean.TRUE</code> is returned if one or more nodes were
|
||||
* selected; otherwise, <code>Boolean.FALSE</code> is returned.
|
||||
*
|
||||
* <p>
|
||||
* The <code>String</code> return type is a convenience for retrieving
|
||||
* the character data from a text node, attribute node, comment node, or
|
||||
* processing-instruction node. When used on an element node, the value
|
||||
* of the child text nodes is returned.
|
||||
*
|
||||
* <p>
|
||||
* The <code>Number</code> return type attempts to coalesce the text
|
||||
* of a node to a <code>double</code> data type.
|
||||
*
|
||||
* <a id="XPath.Datatypes.Class"></a>
|
||||
* <h3>3.2 Class types</h3>
|
||||
* In addition to the QName types, the XPath API supports the use of Class types
|
||||
* through the <code>XPathExpression.evaluteExpression(...)</code> or
|
||||
* <code>XPath.evaluateExpression(...)</code> methods.
|
||||
*
|
||||
* The XPath data types are mapped to Class types as follows:
|
||||
* <ul>
|
||||
* <li><code>Boolean</code> -- <code>Boolean.class</code></li>
|
||||
* <li><code>Number</code> -- <code>Number.class</code></li>
|
||||
* <li><code>String</code> -- <code>String.class</code></li>
|
||||
* <li><code>Nodeset</code> -- <code>XPathNodes.class</code></li>
|
||||
* <li><code>Node</code> -- <code>Node.class</code></li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>
|
||||
* Of the subtypes of Number, only Double, Integer and Long are supported.
|
||||
*
|
||||
* <a id="XPath.Datatypes.Enum"></a>
|
||||
* <h3>3.3 Enum types</h3>
|
||||
* Enum types are defined in {@link javax.xml.xpath.XPathEvaluationResult.XPathResultType}
|
||||
* that provide mappings between the QName and Class types above. The result of
|
||||
* evaluating an expression using the <code>XPathExpression.evaluteExpression(...)</code>
|
||||
* or <code>XPath.evaluateExpression(...)</code> methods will be of one of these types.
|
||||
*
|
||||
* <a id="XPath.Context"></a>
|
||||
* <h3>4. XPath Context</h3>
|
||||
*
|
||||
* <p>
|
||||
* XPath location paths may be relative to a particular node in the
|
||||
* document, known as the <code>context</code>. A context consists of:
|
||||
* <ul>
|
||||
* <li>a node (the context node)</li>
|
||||
* <li>a pair of non-zero positive integers (the context position and the context size)</li>
|
||||
* <li>a set of variable bindings</li>
|
||||
* <li>a function library</li>
|
||||
* <li>the set of namespace declarations in scope for the expression</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>
|
||||
* It is an XML document tree represented as a hierarchy of nodes, a
|
||||
* {@link org.w3c.dom.Node} for example, in the JDK implementation.
|
||||
*
|
||||
* <a id="XPath.Use"></a>
|
||||
* <h3>5. Using the XPath API</h3>
|
||||
*
|
||||
* Consider the following XML document:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* <widgets>
|
||||
* <widget>
|
||||
* <manufacturer/>
|
||||
* <dimensions/>
|
||||
* </widget>
|
||||
* </widgets>
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* The <code><widget></code> element can be selected with the following process:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* // parse the XML as a W3C Document
|
||||
* DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
* Document document = builder.parse(new File("/widgets.xml"));
|
||||
*
|
||||
* //Get an XPath object and evaluate the expression
|
||||
* XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
* String expression = "/widgets/widget";
|
||||
* Node widgetNode = (Node) xpath.evaluate(expression, document, XPathConstants.NODE);
|
||||
*
|
||||
* //or using the evaluateExpression method
|
||||
* Node widgetNode = xpath.evaluateExpression(expression, document, Node.class);
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* With a reference to the <code><widget></code> element, a
|
||||
* relative XPath expression can be written to select the
|
||||
* <code><manufacturer></code> child element:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
* String expression = <b>"manufacturer";</b>
|
||||
* Node manufacturerNode = (Node) xpath.evaluate(expression, <b>widgetNode</b>, XPathConstants.NODE);
|
||||
*
|
||||
* //or using the evaluateExpression method
|
||||
* Node manufacturerNode = xpath.evaluateExpression(expression, <b>widgetNode</b>, Node.class);
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* In the above example, the XML file is read into a DOM Document before being passed
|
||||
* to the XPath API. The following code demonstrates the use of InputSource to
|
||||
* leave it to the XPath implementation to process it:
|
||||
*
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
* String expression = "/widgets/widget";
|
||||
* InputSource inputSource = new InputSource("widgets.xml");
|
||||
* NodeList nodes = (NodeList) xpath.evaluate(expression, inputSource, XPathConstants.NODESET);
|
||||
*
|
||||
* //or using the evaluateExpression method
|
||||
* XPathNodes nodes = xpath.evaluate(expression, inputSource, XPathNodes.class);
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* In the above cases, the type of the expected results are known. In case where
|
||||
* the result type is unknown or any type, the {@link javax.xml.xpath.XPathEvaluationResult}
|
||||
* may be used to determine the return type. The following code demonstrates the usage:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* XPathEvaluationResult<?> result = xpath.evaluateExpression(expression, document);
|
||||
* switch (result.type()) {
|
||||
* case NODESET:
|
||||
* XPathNodes nodes = (XPathNodes)result.value();
|
||||
* ...
|
||||
* break;
|
||||
* }
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* The XPath 1.0 Number data type is defined as a double. However, the XPath
|
||||
* specification also provides functions that returns Integer type. To facilitate
|
||||
* such operations, the XPath API allows Integer and Long to be used in
|
||||
* {@code evaluateExpression} method such as the following code:
|
||||
* <blockquote>
|
||||
* <pre>
|
||||
* int count = xpath.evaluate("count(/widgets/widget)", document, Integer.class);
|
||||
* </pre>
|
||||
* </blockquote>
|
||||
*
|
||||
* @since 1.5
|
||||
*
|
||||
*/
|
||||
|
||||
package javax.xml.xpath;
|
@ -1,382 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
||||
This code is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License version 2 only, as
|
||||
published by the Free Software Foundation. Oracle designates this
|
||||
particular file as subject to the "Classpath" exception as provided
|
||||
by Oracle in the LICENSE file that accompanied this code.
|
||||
|
||||
This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
version 2 for more details (a copy is included in the LICENSE file that
|
||||
accompanied this code).
|
||||
|
||||
You should have received a copy of the GNU General Public License version
|
||||
2 along with this work; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
or visit www.oracle.com if you need additional information or have any
|
||||
questions.
|
||||
-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
This package provides an <em>object-model neutral</em> API for the
|
||||
evaluation of XPath expressions and access to the evaluation
|
||||
environment.
|
||||
|
||||
<p>
|
||||
The XPath API supports <a href="http://www.w3.org/TR/xpath">
|
||||
XML Path Language (XPath) Version 1.0</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<ul>
|
||||
<li><a href='#XPath.Overview'>1. XPath Overview</a></li>
|
||||
<li><a href='#XPath.Expressions'>2. XPath Expressions</a></li>
|
||||
<li><a href='#XPath.Datatypes'>3. XPath Data Types</a>
|
||||
<ul>
|
||||
<li><a href='#XPath.Datatypes.QName'>3.1 QName Types</a>
|
||||
<li><a href='#XPath.Datatypes.Class'>3.2 Class Types</a>
|
||||
<li><a href='#XPath.Datatypes.Enum'>3.3 Enum Types</a>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='#XPath.Context'>4. XPath Context</a></li>
|
||||
<li><a href='#XPath.Use'>5. Using the XPath API</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
<a id="XPath.Overview"></a>
|
||||
<h3>1. XPath Overview</h3>
|
||||
|
||||
<p>The XPath language provides a simple, concise syntax for selecting
|
||||
nodes from an XML document. XPath also provides rules for converting a
|
||||
node in an XML document object model (DOM) tree to a boolean, double,
|
||||
or string value. XPath is a W3C-defined language and an official W3C
|
||||
recommendation; the W3C hosts the XML Path Language (XPath) Version
|
||||
1.0 specification.
|
||||
</p>
|
||||
|
||||
<p>XPath started in life in 1999 as a supplement to the XSLT and
|
||||
XPointer languages, but has more recently become popular as a
|
||||
stand-alone language, as a single XPath expression can be used to
|
||||
replace many lines of DOM API code.
|
||||
</p>
|
||||
|
||||
<a id="XPath.Expressions"></a>
|
||||
<h3>2. XPath Expressions</h3>
|
||||
|
||||
<p>An XPath <em>expression</em> is composed of a <em>location
|
||||
path</em> and one or more optional <em>predicates</em>. Expressions
|
||||
may also include XPath variables.
|
||||
</p>
|
||||
|
||||
<p>The following is an example of a simple XPath expression:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
/foo/bar
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>This example would select the <code><bar></code> element in
|
||||
an XML document such as the following:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
<foo>
|
||||
<bar/>
|
||||
</foo>
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>The expression <code>/foo/bar</code> is an example of a location
|
||||
path. While XPath location paths resemble Unix-style file system
|
||||
paths, an important distinction is that XPath expressions return
|
||||
<em>all</em> nodes that match the expression. Thus, all three
|
||||
<code><bar></code> elements in the following document would be
|
||||
selected by the <code>/foo/bar</code> expression:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
<foo>
|
||||
<bar/>
|
||||
<bar/>
|
||||
<bar/>
|
||||
</foo>
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>A special location path operator, <code>//</code>, selects nodes at
|
||||
any depth in an XML document. The following example selects all
|
||||
<code><bar></code> elements regardless of their location in a
|
||||
document:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
//bar
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>A wildcard operator, *, causes all element nodes to be selected.
|
||||
The following example selects all children elements of a
|
||||
<code><foo></code> element:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
/foo/*
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>In addition to element nodes, XPath location paths may also address
|
||||
attribute nodes, text nodes, comment nodes, and processing instruction
|
||||
nodes. The following table gives examples of location paths for each
|
||||
of these node types:</p>
|
||||
|
||||
<table class="striped">
|
||||
<caption>Examples of Location Path</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Location Path</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code>/foo/bar/<strong>@id</strong></code>
|
||||
</td>
|
||||
<td>Selects the attribute <code>id</code> of the <code><bar></code> element
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/foo/bar/<strong>text()</strong></code>
|
||||
</td>
|
||||
<td>Selects the text nodes of the <code><bar></code> element. No
|
||||
distinction is made between escaped and non-escaped character data.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/foo/bar/<strong>comment()</strong></code>
|
||||
</td>
|
||||
<td>Selects all comment nodes contained in the <code><bar></code> element.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>/foo/bar/<strong>processing-instruction()</strong></code>
|
||||
</td>
|
||||
<td>Selects all processing-instruction nodes contained in the
|
||||
<code><bar></code> element.
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>Predicates allow for refining the nodes selected by an XPath
|
||||
location path. Predicates are of the form
|
||||
<code>[<em>expression</em>]</code>. The following example selects all
|
||||
<code><foo></code> elements that contain an <code>include</code>
|
||||
attribute with the value of <code>true</code>:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
//foo[@include='true']
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>Predicates may be appended to each other to further refine an
|
||||
expression, such as:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
//foo[@include='true'][@mode='bar']
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<a id="XPath.Datatypes"></a>
|
||||
<h3>3. XPath Data Types</h3>
|
||||
|
||||
<p>While XPath expressions select nodes in the XML document, the XPath
|
||||
API allows the selected nodes to be coalesced into one of the
|
||||
following data types:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>Boolean</code></li>
|
||||
<li><code>Number</code></li>
|
||||
<li><code>String</code></li>
|
||||
</ul>
|
||||
|
||||
<a id="XPath.Datatypes.QName"></a>
|
||||
<h3>3.1 QName types</h3>
|
||||
The XPath API defines the following {@link javax.xml.namespace.QName} types to
|
||||
represent return types of an XPath evaluation:
|
||||
<ul>
|
||||
<li>{@link javax.xml.xpath.XPathConstants#NODESET}</li>
|
||||
<li>{@link javax.xml.xpath.XPathConstants#NODE}</li>
|
||||
<li>{@link javax.xml.xpath.XPathConstants#STRING}</li>
|
||||
<li>{@link javax.xml.xpath.XPathConstants#BOOLEAN}</li>
|
||||
<li>{@link javax.xml.xpath.XPathConstants#NUMBER}</li>
|
||||
</ul>
|
||||
|
||||
<p>The return type is specified by a {@link javax.xml.namespace.QName} parameter
|
||||
in method call used to evaluate the expression, which is either a call to
|
||||
<code>XPathExpression.evalute(...)</code> or <code>XPath.evaluate(...)</code>
|
||||
methods.
|
||||
|
||||
<p>When a <code>Boolean</code> return type is requested,
|
||||
<code>Boolean.TRUE</code> is returned if one or more nodes were
|
||||
selected; otherwise, <code>Boolean.FALSE</code> is returned.
|
||||
|
||||
<p>The <code>String</code> return type is a convenience for retrieving
|
||||
the character data from a text node, attribute node, comment node, or
|
||||
processing-instruction node. When used on an element node, the value
|
||||
of the child text nodes is returned.
|
||||
|
||||
<p>The <code>Number</code> return type attempts to coalesce the text
|
||||
of a node to a <code>double</code> data type.
|
||||
|
||||
<a id="XPath.Datatypes.Class"></a>
|
||||
<h3>3.2 Class types</h3>
|
||||
In addition to the QName types, the XPath API supports the use of Class types
|
||||
through the <code>XPathExpression.evaluteExpression(...)</code> or
|
||||
<code>XPath.evaluateExpression(...)</code> methods.
|
||||
|
||||
The XPath data types are mapped to Class types as follows:
|
||||
<ul>
|
||||
<li><code>Boolean</code> -- <code>Boolean.class</code></li>
|
||||
<li><code>Number</code> -- <code>Number.class</code></li>
|
||||
<li><code>String</code> -- <code>String.class</code></li>
|
||||
<li><code>Nodeset</code> -- <code>XPathNodes.class</code></li>
|
||||
<li><code>Node</code> -- <code>Node.class</code></li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Of the subtypes of Number, only Double, Integer and Long are supported.
|
||||
|
||||
<a id="XPath.Datatypes.Enum"></a>
|
||||
<h3>3.3 Enum types</h3>
|
||||
Enum types are defined in {@link javax.xml.xpath.XPathEvaluationResult.XPathResultType}
|
||||
that provide mappings between the QName and Class types above. The result of
|
||||
evaluating an expression using the <code>XPathExpression.evaluteExpression(...)</code>
|
||||
or <code>XPath.evaluateExpression(...)</code> methods will be of one of these types.
|
||||
|
||||
<a id="XPath.Context"></a>
|
||||
<h3>4. XPath Context</h3>
|
||||
|
||||
<p>XPath location paths may be relative to a particular node in the
|
||||
document, known as the <code>context</code>. A context consists of:
|
||||
<ul>
|
||||
<li>a node (the context node)</li>
|
||||
<li>a pair of non-zero positive integers (the context position and the context size)</li>
|
||||
<li>a set of variable bindings</li>
|
||||
<li>a function library</li>
|
||||
<li>the set of namespace declarations in scope for the expression</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
It is an XML document tree represented as a hierarchy of nodes, a
|
||||
{@link org.w3c.dom.Node} for example, in the JDK implementation.
|
||||
|
||||
<a id="XPath.Use"></a>
|
||||
<h3>5. Using the XPath API</h3>
|
||||
|
||||
Consider the following XML document:
|
||||
<blockquote>
|
||||
<pre>
|
||||
<widgets>
|
||||
<widget>
|
||||
<manufacturer/>
|
||||
<dimensions/>
|
||||
</widget>
|
||||
</widgets>
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
The <code><widget></code> element can be selected with the following process:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
// parse the XML as a W3C Document
|
||||
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
Document document = builder.parse(new File("/widgets.xml"));
|
||||
|
||||
//Get an XPath object and evaluate the expression
|
||||
XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
String expression = "/widgets/widget";
|
||||
Node widgetNode = (Node) xpath.evaluate(expression, document, XPathConstants.NODE);
|
||||
|
||||
//or using the evaluateExpression method
|
||||
Node widgetNode = xpath.evaluateExpression(expression, document, Node.class);
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>With a reference to the <code><widget></code> element, a
|
||||
relative XPath expression can be written to select the
|
||||
<code><manufacturer></code> child element:</p>
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
<strong>String expression = "manufacturer";</strong>
|
||||
Node manufacturerNode = (Node) xpath.evaluate(expression, <strong>widgetNode</strong>, XPathConstants.NODE);
|
||||
|
||||
//or using the evaluateExpression method
|
||||
Node manufacturerNode = xpath.evaluateExpression(expression, <strong>widgetNode</strong>, Node.class);
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
In the above example, the XML file is read into a DOM Document before being passed
|
||||
to the XPath API. The following code demonstrates the use of InputSource to
|
||||
leave it to the XPath implementation to process it:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
XPath xpath = XPathFactory.newInstance().newXPath();
|
||||
String expression = "/widgets/widget";
|
||||
InputSource inputSource = new InputSource("widgets.xml");
|
||||
NodeList nodes = (NodeList) xpath.evaluate(expression, inputSource, XPathConstants.NODESET);
|
||||
|
||||
//or using the evaluateExpression method
|
||||
XPathNodes nodes = xpath.evaluate(expression, inputSource, XPathNodes.class);
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
In the above cases, the type of the expected results are known. In case where
|
||||
the result type is unknown or any type, the {@link javax.xml.xpath.XPathEvaluationResult}
|
||||
may be used to determine the return type. The following code demonstrates the usage:
|
||||
<blockquote>
|
||||
<pre>
|
||||
XPathEvaluationResult<?> result = xpath.evaluateExpression(expression, document);
|
||||
switch (result.type()) {
|
||||
case NODESET:
|
||||
XPathNodes nodes = (XPathNodes)result.value();
|
||||
...
|
||||
break;
|
||||
}
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
The XPath 1.0 Number data type is defined as a double. However, the XPath
|
||||
specification also provides functions that returns Integer type. To facilitate
|
||||
such operations, the XPath API allows Integer and Long to be used in
|
||||
{@code evaluateExpression} method such as the following code:
|
||||
<blockquote>
|
||||
<pre>
|
||||
int count = xpath.evaluate("count(/widgets/widget)", document, Integer.class);
|
||||
</pre>
|
||||
</blockquote>
|
||||
|
||||
@since 1.5
|
||||
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides a factory for obtaining instances of <code>DOMImplementation</code>.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package org.w3c.dom.bootstrap;
|
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Provides interfaces for DOM Level 2 Events. Refer to the
|
||||
* <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>
|
||||
* Document Object Model (DOM) Level 2 Events Specification
|
||||
* </a>, the DOM Events module builds on
|
||||
* <a href="http://www.w3.org/TR/DOM-Level-2-Core/">
|
||||
* DOM Level 2 Core Specification</a> and
|
||||
* <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>
|
||||
* DOM Level 2 Views Specification</a>
|
||||
* that gives to programs and scripts a generic event system.
|
||||
*
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package org.w3c.dom.events;
|
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Provides interfaces for DOM Level 3 Load and Save. Refer to the
|
||||
* <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407'>
|
||||
* Document Object Model (DOM) Level 3 Load and Save Specification</a>,
|
||||
* the Load and Save interface allows programs and scripts to dynamically
|
||||
* load the content of an XML document into a DOM document and serialize a DOM
|
||||
* document into an XML document.
|
||||
*
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package org.w3c.dom.ls;
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/**
|
||||
* Provides the interfaces for the Document Object Model (DOM). Supports the
|
||||
* <a href="http://www.w3.org/TR/DOM-Level-2-Core/">
|
||||
* Document Object Model (DOM) Level 2 Core Specification</a>,
|
||||
* <a href="http://www.w3.org/TR/DOM-Level-3-Core">
|
||||
* Document Object Model (DOM) Level 3 Core Specification</a>,
|
||||
* and <a href="http://www.w3.org/TR/DOM-Level-3-LS">
|
||||
* Document Object Model (DOM) Level 3 Load and Save Specification</a>.
|
||||
*
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
package org.w3c.dom;
|
@ -1,13 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>org.w3c.dom package</title>
|
||||
</head>
|
||||
<body bgcolor="white">
|
||||
Provides the interfaces for the Document Object Model (DOM). Supports the
|
||||
<a href="http://www.w3.org/TR/DOM-Level-2-Core/">Document Object Model (DOM) Level 2 Core Specification</a>,
|
||||
<a href="http://www.w3.org/TR/DOM-Level-3-Core">Document Object Model (DOM) Level 3 Core Specification</a>,
|
||||
and <a href="http://www.w3.org/TR/DOM-Level-3-LS">Document Object Model (DOM) Level 3 Load and Save Specification</a>.
|
||||
|
||||
@since 1.4
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/**
|
||||
* <p>
|
||||
* Provides interfaces for DOM Level 2 Range. Refer to the
|
||||
* <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>
|
||||
* Document Object Model (DOM) Level 2 Traversal and Range Specification</a>,
|
||||
* the Range module defines specialized interfaces for identifying
|
||||
* and manipulating a range in a document.
|
||||
*
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package org.w3c.dom.ranges;
|
@ -1,111 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>W3C IPR SOFTWARE NOTICE</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Document Object Model Level 2 Traversal and Range is a
|
||||
platform and language-neutral interfaces that allow programs
|
||||
and scripts to dynamically traverse and identify a range of
|
||||
content in a document. The Document Object Model Level 2
|
||||
Traversal and Range build on the Document Object Model Level 2
|
||||
Core.
|
||||
</p>
|
||||
<p>
|
||||
The DOM Level 2 Traversal and Range specification is composed
|
||||
of two modules. The two modules contain specialized interfaces
|
||||
dedicated to traversing the document structure and identifying
|
||||
and manipulating a range in a document.
|
||||
</p>
|
||||
<h1>
|
||||
W3C IPR SOFTWARE NOTICE
|
||||
</h1>
|
||||
<h2>
|
||||
Copyright © 2000 <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved.
|
||||
</h2>
|
||||
<p>
|
||||
The DOM bindings are published under the W3C Software Copyright Notice
|
||||
and License. The software license requires "Notice of any changes or
|
||||
modifications to the W3C files, including the date changes were made."
|
||||
Consequently, modified versions of the DOM bindings must document that
|
||||
they do not conform to the W3C standard; in the case of the IDL binding,
|
||||
the pragma prefix can no longer be 'w3c.org'; in the case of the Java
|
||||
binding, the package names can no longer be in the 'org.w3c' package.
|
||||
</p>
|
||||
<p>
|
||||
<b>Note:</b> The original version of the W3C Software Copyright Notice
|
||||
and License could be found at <a
|
||||
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
|
||||
</p>
|
||||
<h2>
|
||||
Copyright © 1994-2000 <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved. http://www.w3.org/Consortium/Legal/
|
||||
</h2>
|
||||
<p>
|
||||
This W3C work (including software, documents, or other related items) is
|
||||
being provided by the copyright holders under the following license. By
|
||||
obtaining, using and/or copying this work, you (the licensee) agree that
|
||||
you have read, understood, and will comply with the following terms and
|
||||
conditions:
|
||||
</p>
|
||||
<p>
|
||||
Permission to use, copy, and modify this software and its documentation,
|
||||
with or without modification, for any purpose and without fee or
|
||||
royalty is hereby granted, provided that you include the following on ALL
|
||||
copies of the software and documentation or portions thereof, including
|
||||
modifications, that you make:
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
The full text of this NOTICE in a location viewable to users of the
|
||||
redistributed or derivative work.
|
||||
</li>
|
||||
<li>
|
||||
Any pre-existing intellectual property disclaimers, notices, or terms
|
||||
and conditions. If none exist, a short notice of the following form
|
||||
(hypertext is preferred, text is permitted) should be used within the
|
||||
body of any redistributed or derivative code: "Copyright ©
|
||||
[$date-of-software] <a href="http://www.w3.org/">World Wide Web
|
||||
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
|
||||
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
|
||||
National de Recherche en Informatique et en Automatique</a>, <a
|
||||
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
|
||||
Reserved. http://www.w3.org/Consortium/Legal/"
|
||||
</li>
|
||||
<li>
|
||||
Notice of any changes or modifications to the W3C files, including the
|
||||
date changes were made. (We recommend you provide URIs to the location
|
||||
from which the code is derived.)
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
|
||||
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
|
||||
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
|
||||
TRADEMARKS OR OTHER RIGHTS.
|
||||
</p>
|
||||
<p>
|
||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
|
||||
DOCUMENTATION.
|
||||
</p>
|
||||
<p>
|
||||
The name and trademarks of copyright holders may NOT be used in
|
||||
advertising or publicity pertaining to the software without specific,
|
||||
written prior permission. Title to copyright in this software and any
|
||||
associated documentation will at all times remain with copyright
|
||||
holders.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/**
|
||||
* <p>
|
||||
* Provides interfaces for DOM Level 2 Traversal. Refer to the
|
||||
* <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>
|
||||
* Document Object Model (DOM) Level 2 Traversal and Range Specification</a>,
|
||||
* the Traversal module contains specialized interfaces dedicated to
|
||||
* traversing the document structure.
|
||||
*
|
||||
* @since 1.5
|
||||
*/
|
||||
|
||||
package org.w3c.dom.traversal;
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides interfaces for DOM Level 2 Views. Refer to the
|
||||
* <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>
|
||||
* Document Object Model (DOM) Level 2 Views Specification</a>,
|
||||
* the Views module allows programs and scripts to dynamically access and update
|
||||
* the content of a representation of a document.
|
||||
*
|
||||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
|
||||
package org.w3c.dom.views;
|
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides interfaces to SAX2 facilities that
|
||||
* conformant SAX drivers won't necessarily support.
|
||||
*
|
||||
* <p>
|
||||
* See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
* for more information about SAX.
|
||||
*
|
||||
* <p>
|
||||
* This package is independent of the SAX2 core, though the functionality
|
||||
* exposed generally needs to be implemented within a parser core.
|
||||
* That independence has several consequences:
|
||||
*
|
||||
* <ul>
|
||||
*
|
||||
* <li>SAX2 drivers are <em>not</em> required to recognize these handlers.
|
||||
* </li>
|
||||
*
|
||||
* <li>You cannot assume that the class files will be present in every SAX2
|
||||
* installation.</li>
|
||||
*
|
||||
* <li>This package may be updated independently of SAX2 (i.e. new
|
||||
* handlers and classes may be added without updating SAX2 itself).</li>
|
||||
*
|
||||
* <li>The new handlers are not implemented by the SAX2
|
||||
* <code>org.xml.sax.helpers.DefaultHandler</code> or
|
||||
* <code>org.xml.sax.helpers.XMLFilterImpl</code> classes.
|
||||
* You can subclass these if you need such behavior, or
|
||||
* use the helper classes found here.</li>
|
||||
*
|
||||
* <li>The handlers need to be registered differently than core SAX2
|
||||
* handlers.</li>
|
||||
*
|
||||
* </ul>
|
||||
*
|
||||
* <p>This package, SAX2-ext, is a standardized extension to SAX2. It is
|
||||
* designed both to allow SAX parsers to pass certain types of information
|
||||
* to applications, and to serve as a simple model for other SAX2 parser
|
||||
* extension packages. Not all such extension packages should need to
|
||||
* be recognized directly by parsers, however.
|
||||
* As an example, most validation systems can be cleanly layered on top
|
||||
* of parsers supporting the standardized SAX2 interfaces.
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
package org.xml.sax.ext;
|
@ -1,46 +0,0 @@
|
||||
<HTML><HEAD>
|
||||
<!-- $Id: package.html,v 1.3 2007/10/02 19:32:24 ndw Exp $ -->
|
||||
</HEAD><BODY>
|
||||
|
||||
<p>
|
||||
This package contains interfaces to SAX2 facilities that
|
||||
conformant SAX drivers won't necessarily support.
|
||||
|
||||
<p>See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
for more information about SAX.</p>
|
||||
|
||||
<p> This package is independent of the SAX2 core, though the functionality
|
||||
exposed generally needs to be implemented within a parser core.
|
||||
That independence has several consequences:</p>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>SAX2 drivers are <em>not</em> required to recognize these handlers.
|
||||
</li>
|
||||
|
||||
<li>You cannot assume that the class files will be present in every SAX2
|
||||
installation.</li>
|
||||
|
||||
<li>This package may be updated independently of SAX2 (i.e. new
|
||||
handlers and classes may be added without updating SAX2 itself).</li>
|
||||
|
||||
<li>The new handlers are not implemented by the SAX2
|
||||
<code>org.xml.sax.helpers.DefaultHandler</code> or
|
||||
<code>org.xml.sax.helpers.XMLFilterImpl</code> classes.
|
||||
You can subclass these if you need such behavior, or
|
||||
use the helper classes found here.</li>
|
||||
|
||||
<li>The handlers need to be registered differently than core SAX2
|
||||
handlers.</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>This package, SAX2-ext, is a standardized extension to SAX2. It is
|
||||
designed both to allow SAX parsers to pass certain types of information
|
||||
to applications, and to serve as a simple model for other SAX2 parser
|
||||
extension packages. Not all such extension packages should need to
|
||||
be recognized directly by parsers, however.
|
||||
As an example, most validation systems can be cleanly layered on top
|
||||
of parsers supporting the standardized SAX2 interfaces. </p>
|
||||
|
||||
</BODY></HTML>
|
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Provides helper classes, including
|
||||
* support for bootstrapping SAX-based applications.
|
||||
*
|
||||
* <p>
|
||||
* See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
* for more information about SAX.
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
package org.xml.sax.helpers;
|
@ -1,11 +0,0 @@
|
||||
<HTML><HEAD>
|
||||
<!-- $Id: package.html,v 1.3 2007/10/02 19:32:24 ndw Exp $ -->
|
||||
</HEAD><BODY>
|
||||
|
||||
<p>This package contains "helper" classes, including
|
||||
support for bootstrapping SAX-based applications.
|
||||
|
||||
<p>See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
for more information about SAX.</p>
|
||||
|
||||
</BODY></HTML>
|
327
jaxp/src/java.xml/share/classes/org/xml/sax/package-info.java
Normal file
327
jaxp/src/java.xml/share/classes/org/xml/sax/package-info.java
Normal file
@ -0,0 +1,327 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Provides the core SAX APIs.
|
||||
* Some SAX1 APIs are deprecated to encourage integration of
|
||||
* namespace-awareness into designs of new applications
|
||||
* and into maintenance of existing infrastructure.
|
||||
*
|
||||
* <p>
|
||||
* See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
* for more information about SAX.
|
||||
*
|
||||
*
|
||||
* <h2> SAX2 Standard Feature Flags </h2>
|
||||
*
|
||||
* <p>
|
||||
* One of the essential characteristics of SAX2 is that it added
|
||||
* feature flags which can be used to examine and perhaps modify
|
||||
* parser modes, in particular modes such as validation.
|
||||
* Since features are identified by (absolute) URIs, anyone
|
||||
* can define such features.
|
||||
* Currently defined standard feature URIs have the prefix
|
||||
* <code>http://xml.org/sax/features/</code> before an identifier such as
|
||||
* <code>validation</code>. Turn features on or off using
|
||||
* <em>setFeature</em>. Those standard identifiers are:
|
||||
*
|
||||
*
|
||||
* <table border="1" cellpadding="3" cellspacing="0" width="100%">
|
||||
* <tr align="center" bgcolor="#ccccff">
|
||||
* <th>Feature ID</th>
|
||||
* <th>Access</th>
|
||||
* <th>Default</th>
|
||||
* <th>Description</th>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>external-general-entities</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>unspecified</em></td>
|
||||
* <td> Reports whether this parser processes external
|
||||
* general entities; always true if validating.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>external-parameter-entities</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>unspecified</em></td>
|
||||
* <td> Reports whether this parser processes external
|
||||
* parameter entities; always true if validating.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>is-standalone</td>
|
||||
* <td>(parsing) <em>read-only</em>, (not parsing) <em>none</em></td>
|
||||
* <td>not applicable</td>
|
||||
* <td> May be examined only during a parse, after the
|
||||
* <em>startDocument()</em> callback has been completed; read-only.
|
||||
* The value is true if the document specified standalone="yes" in
|
||||
* its XML declaration, and otherwise is false.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>lexical-handler/parameter-entities</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>unspecified</em></td>
|
||||
* <td> A value of "true" indicates that the LexicalHandler will report
|
||||
* the beginning and end of parameter entities.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>namespaces</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td>true</td>
|
||||
* <td> A value of "true" indicates namespace URIs and unprefixed local names
|
||||
* for element and attribute names will be available.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>namespace-prefixes</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td>false</td>
|
||||
* <td> A value of "true" indicates that XML qualified names (with prefixes) and
|
||||
* attributes (including <em>xmlns*</em> attributes) will be available.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>resolve-dtd-uris</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>true</em></td>
|
||||
* <td> A value of "true" indicates that system IDs in declarations will
|
||||
* be absolutized (relative to their base URIs) before reporting.
|
||||
* (That is the default behavior for all SAX2 XML parsers.)
|
||||
* A value of "false" indicates those IDs will not be absolutized;
|
||||
* parsers will provide the base URI from
|
||||
* <em>Locator.getSystemId()</em>.
|
||||
* This applies to system IDs passed in <ul>
|
||||
* <li><em>DTDHandler.notationDecl()</em>,
|
||||
* <li><em>DTDHandler.unparsedEntityDecl()</em>, and
|
||||
* <li><em>DeclHandler.externalEntityDecl()</em>.
|
||||
* </ul>
|
||||
* It does not apply to <em>EntityResolver.resolveEntity()</em>,
|
||||
* which is not used to report declarations, or to
|
||||
* <em>LexicalHandler.startDTD()</em>, which already provides
|
||||
* the non-absolutized URI.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>string-interning</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>unspecified</em></td>
|
||||
* <td> Has a value of "true" if all XML names (for elements, prefixes,
|
||||
* attributes, entities, notations, and local names),
|
||||
* as well as Namespace URIs, will have been interned
|
||||
* using <em>java.lang.String.intern</em>. This supports fast
|
||||
* testing of equality/inequality against string constants,
|
||||
* rather than forcing slower calls to <em>String.equals()</em>.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>unicode-normalization-checking</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>false</em></td>
|
||||
* <td> Controls whether the parser reports Unicode normalization
|
||||
* errors as described in section 2.13 and Appendix B of the
|
||||
* XML 1.1 Recommendation. If true, Unicode normalization
|
||||
* errors are reported using the ErrorHandler.error() callback.
|
||||
* Such errors are not fatal in themselves (though, obviously,
|
||||
* other Unicode-related encoding errors may be).
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>use-attributes2</td>
|
||||
* <td><em>read-only</em></td>
|
||||
* <td>not applicable</td>
|
||||
* <td> Returns "true" if the <em>Attributes</em> objects passed by
|
||||
* this parser in <em>ContentHandler.startElement()</em>
|
||||
* implement the <a href="ext/Attributes2.html"
|
||||
* ><em>org.xml.sax.ext.Attributes2</em></a> interface.
|
||||
* That interface exposes additional DTD-related information,
|
||||
* such as whether the attribute was specified in the
|
||||
* source text rather than defaulted.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>use-locator2</td>
|
||||
* <td><em>read-only</em></td>
|
||||
* <td>not applicable</td>
|
||||
* <td> Returns "true" if the <em>Locator</em> objects passed by
|
||||
* this parser in <em>ContentHandler.setDocumentLocator()</em>
|
||||
* implement the <a href="ext/Locator2.html"
|
||||
* ><em>org.xml.sax.ext.Locator2</em></a> interface.
|
||||
* That interface exposes additional entity information,
|
||||
* such as the character encoding and XML version used.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>use-entity-resolver2</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>true</em></td>
|
||||
* <td> Returns "true" if, when <em>setEntityResolver</em> is given
|
||||
* an object implementing the <a href="ext/EntityResolver2.html"
|
||||
* ><em>org.xml.sax.ext.EntityResolver2</em></a> interface,
|
||||
* those new methods will be used.
|
||||
* Returns "false" to indicate that those methods will not be used.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>validation</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>unspecified</em></td>
|
||||
* <td> Controls whether the parser is reporting all validity
|
||||
* errors; if true, all external entities will be read.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>xmlns-uris</td>
|
||||
* <td><em>read/write</em></td>
|
||||
* <td><em>false</em></td>
|
||||
* <td> Controls whether, when the <em>namespace-prefixes</em> feature
|
||||
* is set, the parser treats namespace declaration attributes as
|
||||
* being in the <em>http://www.w3.org/2000/xmlns/</em> namespace.
|
||||
* By default, SAX2 conforms to the original "Namespaces in XML"
|
||||
* Recommendation, which explicitly states that such attributes are
|
||||
* not in any namespace.
|
||||
* Setting this optional flag to "true" makes the SAX2 events conform to
|
||||
* a later backwards-incompatible revision of that recommendation,
|
||||
* placing those attributes in a namespace.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>xml-1.1</td>
|
||||
* <td><em>read-only</em></td>
|
||||
* <td>not applicable</td>
|
||||
* <td> Returns "true" if the parser supports both XML 1.1 and XML 1.0.
|
||||
* Returns "false" if the parser supports only XML 1.0.
|
||||
* </td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*
|
||||
* <p>
|
||||
* Support for the default values of the
|
||||
* <em>namespaces</em> and <em>namespace-prefixes</em>
|
||||
* properties is required.
|
||||
* Support for any other feature flags is entirely optional.
|
||||
*
|
||||
*
|
||||
* <p>
|
||||
* For default values not specified by SAX2,
|
||||
* each XMLReader implementation specifies its default,
|
||||
* or may choose not to expose the feature flag.
|
||||
* Unless otherwise specified here,
|
||||
* implementations may support changing current values
|
||||
* of these standard feature flags, but not while parsing.
|
||||
*
|
||||
*
|
||||
* <h2> SAX2 Standard Handler and Property IDs </h2>
|
||||
*
|
||||
* <p>
|
||||
* For parser interface characteristics that are described
|
||||
* as objects, a separate namespace is defined. The
|
||||
* objects in this namespace are again identified by URI, and
|
||||
* the standard property URIs have the prefix
|
||||
* <code>http://xml.org/sax/properties/</code> before an identifier such as
|
||||
* <code>lexical-handler</code> or
|
||||
* <code>dom-node</code>. Manage those properties using
|
||||
* <em>setProperty()</em>. Those identifiers are:
|
||||
*
|
||||
* <table border="1" cellpadding="3" cellspacing="0" width="100%">
|
||||
* <tr align="center" bgcolor="#ccccff">
|
||||
* <th>Property ID</th>
|
||||
* <th>Description</th>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>declaration-handler</td>
|
||||
* <td> Used to see most DTD declarations except those treated
|
||||
* as lexical ("document element name is ...") or which are
|
||||
* mandatory for all SAX parsers (<em>DTDHandler</em>).
|
||||
* The Object must implement <a href="ext/DeclHandler.html"
|
||||
* ><em>org.xml.sax.ext.DeclHandler</em></a>.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>document-xml-version</td>
|
||||
* <td> May be examined only during a parse, after the startDocument()
|
||||
* callback has been completed; read-only. This property is a
|
||||
* literal string describing the actual XML version of the document,
|
||||
* such as "1.0" or "1.1".
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>dom-node</td>
|
||||
* <td> For "DOM Walker" style parsers, which ignore their
|
||||
* <em>parser.parse()</em> parameters, this is used to
|
||||
* specify the DOM (sub)tree being walked by the parser.
|
||||
* The Object must implement the
|
||||
* <em>org.w3c.dom.Node</em> interface.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>lexical-handler</td>
|
||||
* <td> Used to see some syntax events that are essential in some
|
||||
* applications: comments, CDATA delimiters, selected general
|
||||
* entity inclusions, and the start and end of the DTD
|
||||
* (and declaration of document element name).
|
||||
* The Object must implement <a href="ext/LexicalHandler.html"
|
||||
* ><em>org.xml.sax.ext.LexicalHandler</em></a>.
|
||||
* </td>
|
||||
* </tr>
|
||||
*
|
||||
* <tr>
|
||||
* <td>xml-string</td>
|
||||
* <td> Readable only during a parser callback, this exposes a <b>TBS</b>
|
||||
* chunk of characters responsible for the current event.
|
||||
* </td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*
|
||||
* <p>
|
||||
* All of these standard properties are optional.
|
||||
* XMLReader implementations are not required to support them.
|
||||
*
|
||||
*
|
||||
* @since 1.4
|
||||
*/
|
||||
|
||||
package org.xml.sax;
|
@ -1,305 +0,0 @@
|
||||
<html><head>
|
||||
<!-- $Id: package.html,v 1.3 2007/10/02 19:32:24 ndw Exp $ -->
|
||||
</head><body>
|
||||
|
||||
<p> This package provides the core SAX APIs.
|
||||
Some SAX1 APIs are deprecated to encourage integration of
|
||||
namespace-awareness into designs of new applications
|
||||
and into maintenance of existing infrastructure. </p>
|
||||
|
||||
<p>See <a target='_top' href='http://www.saxproject.org'>http://www.saxproject.org</a>
|
||||
for more information about SAX.</p>
|
||||
|
||||
|
||||
<h2> SAX2 Standard Feature Flags </h2>
|
||||
|
||||
<p> One of the essential characteristics of SAX2 is that it added
|
||||
feature flags which can be used to examine and perhaps modify
|
||||
parser modes, in particular modes such as validation.
|
||||
Since features are identified by (absolute) URIs, anyone
|
||||
can define such features.
|
||||
Currently defined standard feature URIs have the prefix
|
||||
<code>http://xml.org/sax/features/</code> before an identifier such as
|
||||
<code>validation</code>. Turn features on or off using
|
||||
<em>setFeature</em>. Those standard identifiers are: </p>
|
||||
|
||||
|
||||
<table class="striped">
|
||||
<caption>SAX2 Standard Features </caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Feature ID</th>
|
||||
<th>Access</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>external-general-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Reports whether this parser processes external
|
||||
general entities; always true if validating.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>external-parameter-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Reports whether this parser processes external
|
||||
parameter entities; always true if validating.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>is-standalone</td>
|
||||
<td>(parsing) <em>read-only</em>, (not parsing) <em>none</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> May be examined only during a parse, after the
|
||||
<em>startDocument()</em> callback has been completed; read-only.
|
||||
The value is true if the document specified standalone="yes" in
|
||||
its XML declaration, and otherwise is false.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lexical-handler/parameter-entities</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> A value of "true" indicates that the LexicalHandler will report
|
||||
the beginning and end of parameter entities.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>namespaces</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td>true</td>
|
||||
<td> A value of "true" indicates namespace URIs and unprefixed local names
|
||||
for element and attribute names will be available.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>namespace-prefixes</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td>false</td>
|
||||
<td> A value of "true" indicates that XML qualified names (with prefixes) and
|
||||
attributes (including <em>xmlns*</em> attributes) will be available.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>resolve-dtd-uris</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>true</em></td>
|
||||
<td> A value of "true" indicates that system IDs in declarations will
|
||||
be absolutized (relative to their base URIs) before reporting.
|
||||
(That is the default behavior for all SAX2 XML parsers.)
|
||||
A value of "false" indicates those IDs will not be absolutized;
|
||||
parsers will provide the base URI from
|
||||
<em>Locator.getSystemId()</em>.
|
||||
This applies to system IDs passed in <ul>
|
||||
<li><em>DTDHandler.notationDecl()</em>,
|
||||
<li><em>DTDHandler.unparsedEntityDecl()</em>, and
|
||||
<li><em>DeclHandler.externalEntityDecl()</em>.
|
||||
</ul>
|
||||
It does not apply to <em>EntityResolver.resolveEntity()</em>,
|
||||
which is not used to report declarations, or to
|
||||
<em>LexicalHandler.startDTD()</em>, which already provides
|
||||
the non-absolutized URI.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>string-interning</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Has a value of "true" if all XML names (for elements, prefixes,
|
||||
attributes, entities, notations, and local names),
|
||||
as well as Namespace URIs, will have been interned
|
||||
using <em>java.lang.String.intern</em>. This supports fast
|
||||
testing of equality/inequality against string constants,
|
||||
rather than forcing slower calls to <em>String.equals()</em>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>unicode-normalization-checking</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>false</em></td>
|
||||
<td> Controls whether the parser reports Unicode normalization
|
||||
errors as described in section 2.13 and Appendix B of the
|
||||
XML 1.1 Recommendation. If true, Unicode normalization
|
||||
errors are reported using the ErrorHandler.error() callback.
|
||||
Such errors are not fatal in themselves (though, obviously,
|
||||
other Unicode-related encoding errors may be).
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-attributes2</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the <em>Attributes</em> objects passed by
|
||||
this parser in <em>ContentHandler.startElement()</em>
|
||||
implement the <a href="ext/Attributes2.html"
|
||||
><em>org.xml.sax.ext.Attributes2</em></a> interface.
|
||||
That interface exposes additional DTD-related information,
|
||||
such as whether the attribute was specified in the
|
||||
source text rather than defaulted.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-locator2</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the <em>Locator</em> objects passed by
|
||||
this parser in <em>ContentHandler.setDocumentLocator()</em>
|
||||
implement the <a href="ext/Locator2.html"
|
||||
><em>org.xml.sax.ext.Locator2</em></a> interface.
|
||||
That interface exposes additional entity information,
|
||||
such as the character encoding and XML version used.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>use-entity-resolver2</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>true</em></td>
|
||||
<td> Returns "true" if, when <em>setEntityResolver</em> is given
|
||||
an object implementing the <a href="ext/EntityResolver2.html"
|
||||
><em>org.xml.sax.ext.EntityResolver2</em></a> interface,
|
||||
those new methods will be used.
|
||||
Returns "false" to indicate that those methods will not be used.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>validation</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>unspecified</em></td>
|
||||
<td> Controls whether the parser is reporting all validity
|
||||
errors; if true, all external entities will be read.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xmlns-uris</td>
|
||||
<td><em>read/write</em></td>
|
||||
<td><em>false</em></td>
|
||||
<td> Controls whether, when the <em>namespace-prefixes</em> feature
|
||||
is set, the parser treats namespace declaration attributes as
|
||||
being in the <em>http://www.w3.org/2000/xmlns/</em> namespace.
|
||||
By default, SAX2 conforms to the original "Namespaces in XML"
|
||||
Recommendation, which explicitly states that such attributes are
|
||||
not in any namespace.
|
||||
Setting this optional flag to "true" makes the SAX2 events conform to
|
||||
a later backwards-incompatible revision of that recommendation,
|
||||
placing those attributes in a namespace.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xml-1.1</td>
|
||||
<td><em>read-only</em></td>
|
||||
<td>not applicable</td>
|
||||
<td> Returns "true" if the parser supports both XML 1.1 and XML 1.0.
|
||||
Returns "false" if the parser supports only XML 1.0.
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p> Support for the default values of the
|
||||
<em>namespaces</em> and <em>namespace-prefixes</em>
|
||||
properties is required.
|
||||
Support for any other feature flags is entirely optional.
|
||||
</p>
|
||||
|
||||
<p> For default values not specified by SAX2,
|
||||
each XMLReader implementation specifies its default,
|
||||
or may choose not to expose the feature flag.
|
||||
Unless otherwise specified here,
|
||||
implementations may support changing current values
|
||||
of these standard feature flags, but not while parsing.
|
||||
</p>
|
||||
|
||||
<h2> SAX2 Standard Handler and Property IDs </h2>
|
||||
|
||||
<p> For parser interface characteristics that are described
|
||||
as objects, a separate namespace is defined. The
|
||||
objects in this namespace are again identified by URI, and
|
||||
the standard property URIs have the prefix
|
||||
<code>http://xml.org/sax/properties/</code> before an identifier such as
|
||||
<code>lexical-handler</code> or
|
||||
<code>dom-node</code>. Manage those properties using
|
||||
<em>setProperty()</em>. Those identifiers are: </p>
|
||||
|
||||
<table class="striped">
|
||||
<caption>SAX2 Standard Properties </caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Property ID</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td>declaration-handler</td>
|
||||
<td> Used to see most DTD declarations except those treated
|
||||
as lexical ("document element name is ...") or which are
|
||||
mandatory for all SAX parsers (<em>DTDHandler</em>).
|
||||
The Object must implement <a href="ext/DeclHandler.html"
|
||||
><em>org.xml.sax.ext.DeclHandler</em></a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>document-xml-version</td>
|
||||
<td> May be examined only during a parse, after the startDocument()
|
||||
callback has been completed; read-only. This property is a
|
||||
literal string describing the actual XML version of the document,
|
||||
such as "1.0" or "1.1".
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>dom-node</td>
|
||||
<td> For "DOM Walker" style parsers, which ignore their
|
||||
<em>parser.parse()</em> parameters, this is used to
|
||||
specify the DOM (sub)tree being walked by the parser.
|
||||
The Object must implement the
|
||||
<em>org.w3c.dom.Node</em> interface.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>lexical-handler</td>
|
||||
<td> Used to see some syntax events that are essential in some
|
||||
applications: comments, CDATA delimiters, selected general
|
||||
entity inclusions, and the start and end of the DTD
|
||||
(and declaration of document element name).
|
||||
The Object must implement <a href="ext/LexicalHandler.html"
|
||||
><em>org.xml.sax.ext.LexicalHandler</em></a>.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>xml-string</td>
|
||||
<td> Readable only during a parser callback, this exposes a <b>TBS</b>
|
||||
chunk of characters responsible for the current event. </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p> All of these standard properties are optional;
|
||||
XMLReader implementations need not support them.
|
||||
</p>
|
||||
|
||||
</body></html>
|
Loading…
Reference in New Issue
Block a user