forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 55562 - in forrest/trunk: . src/core/context/resources/schema/dtd src/core/fresh-site/src/documentation/content/xdocs src/core/fresh-site/src/documentation/content/xdocs/images src/core/fresh-site/src/documentation/content/xdocs/samples
Date Tue, 26 Oct 2004 03:25:47 GMT
Author: crossley
Date: Mon Oct 25 20:25:46 2004
New Revision: 55562

Added:
   forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/images/usemap.gif   (contents,
props changed)
   forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/usemap.xml  
(contents, props changed)
Modified:
   forrest/trunk/src/core/context/resources/schema/dtd/document-v20.mod
   forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/site.xml
   forrest/trunk/status.xml
Log:
Added to the document-v20 DTD to support usemap attribute in img tag.
Submitted by: Tamara Harpster
Issue: FOR-322 "Support for usemap attribute in img tag"


Modified: forrest/trunk/src/core/context/resources/schema/dtd/document-v20.mod
==============================================================================
--- forrest/trunk/src/core/context/resources/schema/dtd/document-v20.mod	(original)
+++ forrest/trunk/src/core/context/resources/schema/dtd/document-v20.mod	Mon Oct 25 20:25:46
2004
@@ -50,12 +50,16 @@
 <!ENTITY % text "#PCDATA">
 <!-- Entities referred to later on are defined up front -->
 <!ENTITY % markup "strong|em|code|sub|sup">
-<!ENTITY % special-inline "br|img|icon|acronym">
+<!ENTITY % special-inline "br|img|icon|acronym|map">
 <!ENTITY % links "a">
 <!ENTITY % paragraphs "p|source|note|warning|fixme">
 <!ENTITY % tables "table">
 <!ENTITY % lists "ol|ul|dl">
 <!ENTITY % special-blocks "figure|anchor">
+<!-- these are used for image maps -->
+<!ENTITY % Shape "(rect|circle|poly|default)">
+<!ENTITY % Coords "CDATA">
+
 <!-- =============================================================== -->
 <!-- Entities for general XML compliance -->
 <!-- =============================================================== -->
@@ -193,6 +197,19 @@
   ismap (ismap) #IMPLIED
   %common.att; 
 >
+<!-- support the img usemap attribute -->
+<!ELEMENT map ( area+)>
+<!ATTLIST map
+  name CDATA #IMPLIED
+>
+<!ELEMENT area EMPTY>
+<!ATTLIST area
+  shape %Shape; "rect"
+  coords %Coords; #IMPLIED
+  %link.att;
+  nohref (nohref) #IMPLIED
+  alt CDATA #REQUIRED
+>
 <!-- Image Icon (typically an inlined image placed as graphical item) -->
 <!ELEMENT icon EMPTY>
 <!ATTLIST icon
@@ -347,6 +364,7 @@
 <!ATTLIST anchor
   %common-idreq.att; 
 >
+
 <!-- =============================================================== -->
 <!-- Document -->
 <!-- =============================================================== -->

Added: forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/images/usemap.gif
==============================================================================
Binary file. No diff available.

Added: forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/usemap.xml
==============================================================================
--- (empty file)
+++ forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/samples/usemap.xml	Mon
Oct 25 20:25:46 2004
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 2002-2004 The Apache Software Foundation
+
+  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 document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
+<document> 
+  <header> 
+    <title>Interactive client-side imagemaps - the usemap attribute</title> 
+  </header> 
+  <body> 
+    <section id="demo">
+      <title>Imagemap demo</title>
+      <p>
+        <img src="/images/usemap.gif" usemap="#my-map"
+          alt="usemap demo" width="256" height="256"/>
+      </p>
+      <p>
+        <map name="my-map">
+          <area shape="rect" coords="173,14,240,71"
+             alt="Rectangle" href="ext:forrest"/>
+          <area shape="circle" coords="53,172,28"
+             alt="Circle" href="../index.html"/>
+          <area shape="default" coords="0,0.256,256"
+             alt="Default" href="http://www.apache.org"/>
+        </map>
+      </p>
+    </section>
+    <section id="source">
+      <title>Source code</title>
+      <source><![CDATA[
+      <p>
+        <img src="/images/usemap.gif" usemap="#my-map"
+          alt="usemap demo" width="256" height="256"/>
+      </p>
+      <p>
+        <map name="my-map">
+          <area shape="rect" coords="173,14,240,71"
+             alt="Rectangle" href="ext:forrest"/>
+          <area shape="circle" coords="53,172,28"
+             alt="Circle" href="../index.html"/>
+          <area shape="default" coords="0,0.256,256"
+             alt="Default" href="http://www.apache.org"/>
+        </map>
+      </p>
+]]></source>
+    </section>
+  </body>
+</document>

Modified: forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/site.xml
==============================================================================
--- forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/site.xml	(original)
+++ forrest/trunk/src/core/fresh-site/src/documentation/content/xdocs/site.xml	Mon Oct 25
20:25:46 2004
@@ -59,6 +59,8 @@
       description="Test iHTML page" />
     <sample-ascii-art label="ascii-art page" href="ascii-art.html" 
       description="Sample Ascii Art page" />
+    <sample-usemap label="usemap" href="usemap.html" 
+      description="Client-side imagemap" />
     <sample-openoffice-writer label="OpenOffice.org Writer" href="openoffice-writer.html"

       description="OpenOffice.org Writer sample" />       
     <faq label="FAQ" href="faq.html" description="Frequently Asked Questions" />

Modified: forrest/trunk/status.xml
==============================================================================
--- forrest/trunk/status.xml	(original)
+++ forrest/trunk/status.xml	Mon Oct 25 20:25:46 2004
@@ -44,6 +44,11 @@
 
   <changes>
     <release version="0.7-dev" date="not yet released">
+      <action dev="JJP" type="add" context="core"
+        due-to="Tamara Harpster" fixes-bug="FOR-322">
+        Added to the document-v20 DTD to support usemap attribute in img tag.
+        Also added demonstration of client-side imagemap to the "seed site".
+      </action>
       <action dev="JJP" type="update" context="docs"
         due-to="Joao Ferreira" fixes-bug="FOR-305">
         Added FAQ to explain character encoding for certain languages.

Mime
View raw message