forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r164465 - in /forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations: resources/schema/ resources/schema/catalog.xcat resources/schema/locations-v10.dtd src/documentation/content/xdocs/locations.xml status.xml
Date Sun, 24 Apr 2005 11:08:02 GMT
Author: crossley
Date: Sun Apr 24 04:08:01 2005
New Revision: 164465

URL: http://svn.apache.org/viewcvs?rev=164465&view=rev
Log:
Added example of using DTDs in plugins.

Added:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/
    forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat
  (with props)
    forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd
  (with props)
Modified:
    forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/src/documentation/content/xdocs/locations.xml
    forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/status.xml

Added: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat?rev=164465&view=auto
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat
(added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat
Sun Apr 24 04:08:01 2005
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
+"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+
+<!-- OASIS XML Catalog for Forrest Documents -->
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
+         prefer="public">
+
+<public publicId="-//Apache Forrest//DTD Locations V1.0//EN"
+        uri="locations-v10.dtd"/>
+
+</catalog>

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/catalog.xcat
------------------------------------------------------------------------------
    svn:eol-style = native

Added: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd?rev=164465&view=auto
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd
(added)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd
Sun Apr 24 04:08:01 2005
@@ -0,0 +1,51 @@
+<!--
+  Copyright 2002-2004 The Apache Software Foundation or its licensors,
+  as applicable.
+
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- ===================================================================
+
+     Apache Forrest - Locations DTD (Version 1.0)
+
+PURPOSE: Simple list of locations.
+
+TYPICAL INVOCATION:
+
+  <!DOCTYPE locations PUBLIC
+       "-//Apache Forrest//DTD Locations Vx.y//EN"
+       "locations-v10.dtd">
+
+  where
+
+    x := major version
+    y := minor version
+
+==================================================================== -->
+
+<!ELEMENT locations (introduction?, location+)>
+<!ATTLIST locations
+  title CDATA #IMPLIED
+>
+<!ELEMENT introduction (#PCDATA)>
+<!ELEMENT location (id, title, place, url?, notes?)>
+<!ELEMENT id (#PCDATA)>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT place (#PCDATA)>
+<!ELEMENT url (#PCDATA)>
+<!ELEMENT notes (note+)>
+<!ELEMENT note (#PCDATA)>
+
+<!-- =============================================================== -->
+<!-- End of DTD -->
+<!-- =============================================================== -->

Propchange: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/resources/schema/locations-v10.dtd
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/src/documentation/content/xdocs/locations.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/src/documentation/content/xdocs/locations.xml?rev=164465&r1=164464&r2=164465&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/src/documentation/content/xdocs/locations.xml
(original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/src/documentation/content/xdocs/locations.xml
Sun Apr 24 04:08:01 2005
@@ -15,15 +15,7 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<!DOCTYPE locations [
-<!ELEMENT locations (introduction?, location+)>
-<!ATTLIST locations
-  title CDATA #IMPLIED
->
-<!ELEMENT location (id, title, place, url?, notes?)>
-<!ELEMENT notes (note+)>
-<!ELEMENT note (#PCDATA)>
-]>
+<!DOCTYPE locations PUBLIC "-//Apache Forrest//DTD Locations V1.0//EN" "http://forrest.apache.org/dtd/locations-v10.dtd">
 
 <locations title="Some golf driving ranges">
 

Modified: forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/status.xml?rev=164465&r1=164464&r2=164465&view=diff
==============================================================================
--- forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/status.xml (original)
+++ forrest/trunk/plugins/org.apache.forrest.plugin.input.listLocations/status.xml Sun Apr
24 04:08:01 2005
@@ -24,21 +24,19 @@
   <changes>
     <!-- Add new releases here -->
     <release version="0.1" date="unreleased">
-      <action dev="DC" type="add" context="admin">
+      <action dev="DC" type="add" context="core">
+        Added external DTD.
+      </action>
+      <action dev="DC" type="add" context="core">
         Initial plugin code.
       </action>
     </release>
   </changes>
 
   <todo>
-    <actions priority="high">
-      <action context="core" dev="open">
-        Add some more elements to the xml structure.
-      </action>
-    </actions>
     <actions priority="medium">
       <action context="core" dev="open">
-        Add an external DTD.
+        Add some more elements to the xml structure.
       </action>
     </actions>
   </todo>



Mime
View raw message