jaxp.properties.sample 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #
  2. #=========================================================================
  3. #
  4. # IBM XSLT Processor
  5. # Licensed Materials - Property of IBM
  6. # (C) Copyright IBM Corp. and others 2002, 2007. All Rights Reserved.
  7. # US Government Users Restricted Rights - Use, duplication, or disclosure
  8. # restricted by GSA ADP Schedule Contract with IBM Corp.
  9. #
  10. #=========================================================================
  11. # Copyright 2004 The Apache Software Foundation.
  12. #
  13. # Licensed under the Apache License, Version 2.0 (the "License");
  14. # you may not use this file except in compliance with the License.
  15. # You may obtain a copy of the License at
  16. #
  17. # http://www.apache.org/licenses/LICENSE-2.0
  18. #
  19. # Unless required by applicable law or agreed to in writing, software
  20. # distributed under the License is distributed on an "AS IS" BASIS,
  21. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  22. # See the License for the specific language governing permissions and
  23. # limitations under the License.
  24. #=========================================================================
  25. #
  26. # JAXP provides a mechanism for applications to parse and transform
  27. # XML documents independent of any given XML processing implementation.
  28. # An application can swap between different implementations without
  29. # having to change any code. This is accomplished, in part by using
  30. # "Factory Finders" to locate a particular implementation, using a
  31. # prescribed ordered lookup procedure.
  32. #
  33. # IBM XL TXE-J uses the following procedure to determine which
  34. # implementations to use for the TransformerFactory, XPathFactory,
  35. # SAXParserFactory, DocumentBuilderFactory, SchemaFactory and
  36. # DatatypeFactory.
  37. #
  38. # * first, XL TXE-J will examine the system properties for the
  39. # following keys:
  40. # - javax.xml.transform.TransformerFactory
  41. # - javax.xml.xpath.XPathFactory
  42. # - javax.xml.parsers.SAXParserFactory
  43. # - javax.xml.parsers.DocumentBuilderFactory
  44. # - javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema
  45. # - javax.xml.datatype.DatatypeFactory
  46. # * next, it will try to find a file called jaxp.properties in
  47. # the lib subdirectory of your JRE installation and look
  48. # for the keys above
  49. # * next, it will examine all the jars on your classpath to
  50. # try and find one with the appropriate entries in its
  51. # META-INF/services directory
  52. # * if all else fails, it will use a hardcoded default. The
  53. # defaults for XL TXE-J are:
  54. # - com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl
  55. # ** this default tells XL TXE-J to use the Compiled
  56. # processor. If you want to use the XL TXE-J
  57. # Interpretive processor, change the entry in this file or
  58. # programmatically set the system property for the
  59. # javax.xml.transform.TransformerFactory key to
  60. # org.apache.xalan.processor.TransformerFactoryImpl
  61. # - org.apache.xpath.jaxp.XPathFactoryImpl
  62. # - org.apache.xerces.jaxp.SAXParserFactoryImpl
  63. # - org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
  64. # - org.apache.xerces.jaxp.validation.XMLSchemaFactory
  65. # - org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl
  66. #
  67. # The third step can be quite time-consuming, especially if you
  68. # have a lot of jars on your classpath and run applications which
  69. # require the creation of lots of transformer and parser factories.
  70. #
  71. # To improve XML parsing and processing performance, rename this
  72. # file to jaxp.properties and copy it into your JRE's lib directory.
  73. # You will also need to uncomment the entries below that you want
  74. # to use.
  75. #
  76. # ====================================================================
  77. #
  78. #javax.xml.transform.TransformerFactory=com.ibm.xtq.xslt.jaxp.compiler.TransformerFactoryImpl
  79. #javax.xml.xpath.XPathFactory=org.apache.xpath.jaxp.XPathFactoryImpl
  80. #javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
  81. #javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
  82. #javax.xml.validation.SchemaFactory:http\://www.w3.org/2001/XMLSchema=org.apache.xerces.jaxp.validation.XMLSchemaFactory
  83. #javax.xml.datatype.DatatypeFactory=org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl