- Create a project
- Create a new document
- Editing in source mode
- Editing in design mode
- Editing in text mode
XMLEspresso 4.0 comes with a built-in extensible catalog of
XML Documents. Once XMLEspresso 4.0 has been used once, this catalog
is installed in <user home directory>/.xmle4j/config directory,
in the file catalog.xml.
Open the default catalog XML file in any
editor, including XMLEspresso 4.0, and edit it according to the Document
Type Definition (DTD). Be sure to
make a copy of existing catalog.xml in
case your edits corrupt this catalog and make it invalid.
Catalog DTD
<!DOCTYPE catalogs
[
<!ELEMENT catalogs (catalog)+ >
<!ELEMENT catalog (entry)+ >
<!ELEMENT entry (name,ext?,root?,dtd?,public?,system?,targetNamespace?,
targetPrefix?,schema?,documentation)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT ext (#PCDATA)>
<!ELEMENT root (#PCDATA)>
<!ELEMENT dtd (#PCDATA)>
<!ELEMENT public (#PCDATA)>
<!ELEMENT system (#PCDATA)>
<!ELEMENT targetNamespace (#PCDATA)>
<!ELEMENT targetPrefix (#PCDATA)>
<!ELEMENT schema (#PCDATA)>
<!ELEMENT documentation (#PCDATA)>
<!ATTLIST catalog title CDATA #REQUIRED>
<!ATTLIST schema resource (true|false) #IMPLIED>
<!ATTLIST dtd resource (true|false) #IMPLIED>
<!ATTLIST entry mimeType CDATA #REQUIRED>
<!ATTLIST documentation source CDATA #IMPLIED>
]
>
Catalog XML File
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
< !--The root element of catalogs.xml is catalogs -->
< catalogs>
<catalog title="Text" >
<entry mimeType="text" >
<name>Text Document</name>
<documentation>This creates a plain text document.</documentation>
</entry>
</catalog>
<catalog title="Custom" >
<entry mimeType="text/xml" >
<name>Custom XML Document</name>
<documentation>This creates a custom XML document.</documentation>
</entry>
</catalog>
<catalog title="J2EE 1.2" >
<entry mimeType="text/xml" >
<name>J2EE Application Deployment Descriptor</name>
<root>application</root>
<dtd>http://java.sun.com/j2ee/dtds/application_1_2.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/GettingStarted.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>J2EE Application Client Deployment Descriptor</name>
<root>application-client</root>
<dtd>http://java.sun.com/j2ee/dtds/application-client_1_2.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/GettingStarted.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Ejb 1.1</name>
<root>ejb-jar</root>
<dtd>http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Servlet Deployment Descriptor</name>
<root>web-app</root>
<dtd>http://java.sun.com/j2ee/dtds/web-app_2_2.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Jsp Tag Library Descriptor </name>
<ext>.tld</ext>
<root>taglib</root>
<dtd>http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html" ></documentation>
</entry>
</catalog>
<catalog title="J2EE 1.3" >
<entry mimeType="text/xml" >
<name>J2EE Application Deployment Descriptor</name>
<root>application</root>
<dtd>http://java.sun.com/dtd/application_1_3.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/GettingStarted.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>J2EE Application Client Deployment Descriptor</name>
<root>application-client</root>
<dtd>http://java.sun.com/dtd/application-client_1_3.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/GettingStarted.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Ejb 2.0</name>
<root>ejb-jar</root>
<dtd>http://java.sun.com/dtd/ejb-jar_2_0.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Servlet Deployment Descriptor</name>
<root>web-app</root>
<dtd>http://java.sun.com/dtd/web-app_2_3.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html" >
</documentation>
</entry>
<entry mimeType="text/xml" >
<name>Jsp Tag Library Descriptor </name>
<ext>.tld</ext>
<root>taglib</root>
<dtd>http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html" ></documentation>
</entry>
<entry mimeType="text/xml" >
<name>J2EE Connector Descriptor</name>
<ext>.xml</ext>
<root>connector</root>
<dtd>http://java.sun.com/dtd/connector_1_0.dtd</dtd>
<public>-//Sun Microsystems, Inc.//DTD Connector 1.0//EN</public>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Connector.html" ></documentation>
</entry>
<entry mimeType="text/xml" >
<name>Java Server Page</name>
<ext>.jsp</ext>
<root>root</root>
<targetNamespace>http://java.sun.com/JSP/Page</targetNamespace>
<targetPrefix>jsp</targetPrefix>
<schema>http://java.sun.com/dtd/jspxml.xsd</schema>
<documentation source="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html" ></documentation>
</entry>
</catalog>
<catalog title="JBoss 3.0" >
<!--JBoss 3.0 dtds -->
<entry mimeType="text/xml" >
<name>JBoss EJB Deployment Descriptor</name>
<root>jboss</root>
<dtd resource="true" >dtds/jboss_3_0.dtd</dtd>
<public>-//JBoss//DTD JBOSS 3.0//EN</public>
<documentation>This creates a JBoss EJB deployment descriptor.</documentation>
</entry>
<entry mimeType="text/xml" >
<name>JBoss Web Application Descriptor</name>
<root>jboss-web</root>
<dtd resource="true" >dtds/jboss-web_3_0.dtd</dtd>
<public>-//JBoss//DTD Web Application 2.3//EN</public>
<documentation>This creates a JBoss Web application deployment descriptor.</documentation>
</entry>
<entry mimeType="text/xml" >
<name>JBoss Jaws Descriptor</name>
<root>jaws</root>
<dtd resource="true" >dtds/jaws_3_0.dtd</dtd>
<public>-//JBoss//DTD JAWS 3.0//EN</public>
<documentation>This creates a JBoss Jaws deployment descriptor.</documentation>
</entry>
</catalog>
<!--Ant Dtd -->
<catalog title="Ant 1.5" >
<entry mimeType="text/xml" >
<name>Apache Ant</name>
<root>project</root>
<schema resource="true" >schemas/project.xsd</schema>
<documentation source="http://ant.apache.org/manual/index.html" ></documentation>
</entry>
</catalog>
<catalog title="W3C XML Schema" >
<!--Schema Dtd -->
<entry mimeType="text/xml" >
<name>Xml Schema</name>
<ext>.xsd</ext>
<root>schema</root>
<dtd>http://www.w3.org/2001/XMLSchema.dtd</dtd>
<public>-//W3C//DTD XMLSCHEMA 200102//EN</public>
<system>http://www.w3.org/2001/XMLSchema.dtd </system>
<schema resource="true" >schemas/schema.xsd</schema>
<targetNamespace>http://www.w3.org/2001/XMLSchema</targetNamespace>
<targetPrefix>xs</targetPrefix>
<documentation source="http://www.w3.org/TR/xmlschema-1/" ></documentation>
</entry>
</catalog>
<catalog title="Xslt" >
<!--Xslt Dtd -->
<entry mimeType="text/xml" >
<name>Xslt </name>
<ext>.xsl</ext>
<root>stylesheet</root>
<schema resource="true" >schemas/xslt.xsd</schema>
<targetNamespace>http://www.w3.org/1999/XSL/Transform</targetNamespace>
<targetPrefix>xsl</targetPrefix>
<documentation source="http://www.w3.org/TR/xslt" ></documentation>
</entry>
</catalog>
<catalog title="W3C WSDL" >
<!--WSDL schema -->
<entry mimeType="text/xml" >
<name>Wsdl</name>
<ext>.wsdl</ext>
<root>definitions</root>
<schema resource="true" >schemas/wsdl.xsd</schema>
<documentation source="http://www.w3.org/TR/wsdl" ></documentation>
</entry>
</catalog>
<catalog title="Xhtml" >
<!--Xhtml dtds -->
<entry mimeType="text/xml" >
<name>Xhtml</name>
<ext>.html</ext>
<root>html</root>
<dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</dtd>
<public>-//W3C//DTD XHTML 1.0 Strict//EN</public>
<documentation source="http://www.w3.org/TR/xhtml1/" ></documentation>
</entry>
<entry mimeType="text/xml" >
<name>Xhtml Transitional</name>
<ext>.html</ext>
<root>html</root>
<dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</dtd>
<public>-//W3C//DTD XHTML 1.0 Transitional//EN</public>
<documentation source="http://www.w3.org/TR/xhtml1/" ></documentation>
</entry>
<entry mimeType="text/xml" >
<name>Xhtml Frameset</name>
<ext>.html</ext>
<root>html</root>
<dtd>http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd</dtd>
<public>-//W3C//DTD XHTML 1.0 Frameset//EN</public>
<documentation source="http://www.w3.org/TR/xhtml1/" ></documentation>
</entry>
</catalog>
|