Author: rgardler
Date: Sat Oct 29 03:29:37 2005
New Revision: 329394
URL: http://svn.apache.org/viewcvs?rev=329394&view=rev
Log:
allow images that are not in the root (needed if a site is to be hosted
anywhere other than root on a serve)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisy-to-html.xsl
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisy-to-html.xsl
URL:
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisy-to-html.xsl?rev=329394&r1=329393&r2=329394&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisy-to-html.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/daisy-to-html.xsl
Sat Oct 29 03:29:37 2005
@@ -197,7 +197,7 @@
<xsl:when test="starts-with(@src, 'daisy:')">
<img>
<xsl:apply-templates select="@*"/>
- <xsl:attribute name="src">/<xsl:value-of
select="substring-after(@src, 'daisy:')"/>.daisy.img</xsl:attribute>
+ <xsl:attribute name="src"><xsl:value-of
select="substring-after(@src, 'daisy:')"/>.daisy.img</xsl:attribute>
<xsl:apply-templates/>
</img>
</xsl:when>
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
URL:
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl?rev=329394&r1=329393&r2=329394&view=diff
==============================================================================
---
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
(original)
+++
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/navigation-to-locationmap.xsl
Sat Oct 29 03:29:37 2005
@@ -52,9 +52,9 @@
</location>
</match>
- <match pattern="*.daisy.img">
+ <match pattern="**/*.daisy.img">
<location>
- <xsl:attribute name="src"><xsl:value-of
select="$publisherURL"/>blob?documentId={1}&version=live&partType=3</xsl:attribute>
+ <xsl:attribute name="src"><xsl:value-of
select="$publisherURL"/>blob?documentId={2}&version=live&partType=3</xsl:attribute>
</location>
</match>