refactoring
[fedora-idea.git] / xml / impl / src / com / intellij / javaee / InternalResourceProvider.java
blobc52f535a49ad18a74faa77995508ff9a83366565
1 /*
2 * Copyright 2000-2009 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package com.intellij.javaee;
18 import com.intellij.xml.util.XmlUtil;
20 /**
21 * @author Dmitry Avdeev
23 public class InternalResourceProvider implements StandardResourceProvider{
25 public void registerResources(ResourceRegistrar registrar) {
26 ResourceRegistrarImpl impl = (ResourceRegistrarImpl)registrar;
28 impl.addInternalResource(XmlUtil.XSLT_URI,"xslt-1_0.xsd");
29 impl.addInternalResource(XmlUtil.XSLT_URI,"2.0", "xslt-2_0.xsd");
30 impl.addInternalResource(XmlUtil.XINCLUDE_URI,"xinclude.xsd");
31 impl.addInternalResource(XmlUtil.XML_SCHEMA_URI, "XMLSchema.xsd");
32 impl.addInternalResource(XmlUtil.XML_SCHEMA_URI + ".xsd", "XMLSchema.xsd");
33 impl.addInternalResource("http://www.w3.org/2001/XMLSchema.dtd", "XMLSchema.dtd");
34 impl.addInternalResource(XmlUtil.XML_SCHEMA_INSTANCE_URI, "XMLSchema-instance.xsd");
35 impl.addInternalResource("http://www.w3.org/2001/xml.xsd","xml.xsd");
36 impl.addInternalResource(XmlUtil.XML_NAMESPACE_URI,"xml.xsd");
37 impl.addInternalResource(XmlUtil.XHTML_URI,"xhtml1-transitional.xsd");
38 impl.addInternalResource("http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd","xhtml1-strict.xsd");
40 impl.addInternalResource("http://www.w3.org/TR/html4/strict.dtd","xhtml1-strict.dtd");
41 impl.addInternalResource("http://www.w3.org/TR/html4/loose.dtd","xhtml1-transitional.dtd");
42 impl.addInternalResource("http://www.w3.org/TR/html4/frameset.dtd","xhtml1-frameset.dtd");
43 impl.addInternalResource("http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd","xhtml1-strict.dtd");
44 impl.addInternalResource("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd","xhtml1-transitional.dtd");
45 impl.addInternalResource("http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd","xhtml1-frameset.dtd");
46 impl.addInternalResource("http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd","xhtml11/xhtml11.dtd");
48 // Plugins DTDs // stathik
49 impl.addInternalResource("http://plugins.intellij.net/plugin.dtd", "plugin.dtd");
50 impl.addInternalResource("http://plugins.intellij.net/plugin-repository.dtd", "plugin-repository.dtd");