| Revision 295,
1.2 KB
checked in by jharrop, 4 years ago
(diff) |
|
Change license to Apache v2
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Copyright 2007-2008, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | package org.docx4j.jaxb; |
|---|
| 22 | |
|---|
| 23 | import javax.xml.bind.JAXBContext; |
|---|
| 24 | |
|---|
| 25 | /** |
|---|
| 26 | * @author jharrop |
|---|
| 27 | * |
|---|
| 28 | */ |
|---|
| 29 | public class WmlSchema { |
|---|
| 30 | |
|---|
| 31 | public static javax.xml.validation.Schema schema; |
|---|
| 32 | |
|---|
| 33 | static { |
|---|
| 34 | |
|---|
| 35 | try { |
|---|
| 36 | javax.xml.validation.SchemaFactory sf = |
|---|
| 37 | javax.xml.validation.SchemaFactory.newInstance( |
|---|
| 38 | javax.xml.XMLConstants.W3C_XML_SCHEMA_NS_URI); |
|---|
| 39 | |
|---|
| 40 | javax.xml.validation.Schema schema = sf.newSchema(new java.io.File("/home/jharrop/workspace200711/docx4j-001/src/main/resources/wml-local-subset.xsd")); |
|---|
| 41 | } catch (Exception ex) { |
|---|
| 42 | ex.printStackTrace(); |
|---|
| 43 | } |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.