You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/07/28 23:29:49 UTC
svn commit: r225896 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy:
resources.xmap resources/stylesheets/daisyNavigation2siteSnippet.xsl
status.xml
Author: rgardler
Date: Thu Jul 28 14:29:36 2005
New Revision: 225896
URL: http://svn.apache.org/viewcvs?rev=225896&view=rev
Log:
Get site.xml snippets in response to *.daisy.navigation requests
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl (with props)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/status.xml
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap?rev=225896&r1=225895&r2=225896&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources.xmap Thu Jul 28 14:29:36 2005
@@ -36,5 +36,18 @@
<map:read src="{lm:{0}}"/>
</map:match>
</map:pipeline>
+
+ <!-- ============================================================ -->
+ <!-- Navigation elements -->
+ <!-- ============================================================ -->
+
+ <map:pipeline>
+ <map:match pattern="*.daisy.navigation">
+ <map:generate src="{lm:{0}}" />
+ <map:transform src="resources/stylesheets/daisyNavigation2siteSnippet.xsl"/>
+ <map:serialize type="xml" />
+ </map:match>
+ </map:pipeline>
+
</map:pipelines>
</map:sitemap>
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl?rev=225896&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl Thu Jul 28 14:29:36 2005
@@ -0,0 +1,43 @@
+<?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.
+-->
+
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:d="http://outerx.org/daisy/1.0#navigationspec"
+ version="1.0">
+
+ <xsl:template match="/">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <xsl:template match="d:doc">
+ <doc>
+ <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+ <xsl:attribute name="label"><xsl:value-of select="@label"/></xsl:attribute>
+ <xsl:attribute name="href"><xsl:value-of select="@id"/>.daisy.html</xsl:attribute>
+ </doc>
+ </xsl:template>
+
+ <xsl:template match="d:group">
+ <group>
+ <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+ <xsl:attribute name="label"><xsl:value-of select="@label"/></xsl:attribute>
+ <xsl:apply-templates/>
+ </group>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisyNavigation2siteSnippet.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/status.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/status.xml?rev=225896&r1=225895&r2=225896&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/status.xml (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/status.xml Thu Jul 28 14:29:36 2005
@@ -32,18 +32,25 @@
<changes>
<!-- Add new releases here -->
<release version="0.1" date="unreleased">
- <action dev="RDG" type="add" context="admin">
- Initial plugin code.
+ <action dev="RDG" type="add" context="code" importance="high">
+ Now uses locationmap to resolve content. Use *.daisy.source to get
+ the unprocessed source file from daisy. *.daisy.xml to get the document
+ as an XDoc. *.daisy.img to get an image and *.daisy.navigation to get a
+ site.xml snippet from a daisy navigation document.
+ </action>
+ <action dev="RDG" type="add" context="code">
+ Changed to use the daisy repository directly, bypassing the
+ daisy-wiki.
+ </action>
+ <action dev="RDG" type="add" context="code">
+ Initial plugin code, allows content to be included from the
+ daisy-wiki.
</action>
</release>
</changes>
<todo>
<actions priority="high">
- <action context="docs" dev="open">
- Images do not work, need to rewrite their src attributes and create
- a pipeline match to handle them.
- </action>
</actions>
</todo>