forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r164303 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl
Date Sat, 23 Apr 2005 00:17:32 GMT
Author: rgardler
Date: Fri Apr 22 17:17:31 2005
New Revision: 164303

URL: http://svn.apache.org/viewcvs?rev=164303&view=rev
Log:
remove the repository type parameter, it is not required

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl?rev=164303&r1=164302&r2=164303&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl
Fri Apr 22 17:17:31 2005
@@ -22,17 +22,16 @@
   <xsl:param name="documentID"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='documentID']/req:value"/></xsl:param>
   <xsl:param name="repositoryURL"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='repositoryURL']/req:value"/></xsl:param>
 	<xsl:param name="repositoryPort"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='repositoryPort']/req:value"/></xsl:param>
-	<xsl:param name="repositoryType"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='repositoryType']/req:value"/></xsl:param>
-  <xsl:param name="repositoryCollection"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='repositoryCollection']/req:value"/></xsl:param>
+	<xsl:param name="repositoryCollection"><xsl:value-of select="req:request/req:requestParameters/req:parameter[@name='repositoryCollection']/req:value"/></xsl:param>
 	
   <xsl:template match="req:request">      
 			<xsl:choose>
 				<xsl:when test="$repositoryPort">
-					<xsl:variable name="document">cocoon:/do/getRepositoryData/<xsl:value-of select="$repositoryType"/>/<xsl:value-of
select="$repositoryURL"/>/port/<xsl:value-of select="$repositoryPort"/>/collection/<xsl:value-of
select="$repositoryCollection"/>/doc/<xsl:value-of select="$documentID"/>.xml</xsl:variable>
+					<xsl:variable name="document">cocoon:/do/getRepositoryData/daisy/<xsl:value-of
select="$repositoryURL"/>/port/<xsl:value-of select="$repositoryPort"/>/collection/<xsl:value-of
select="$repositoryCollection"/>/doc/<xsl:value-of select="$documentID"/>.xml</xsl:variable>
 		      <xsl:apply-templates select="document($document)"/>
 				</xsl:when>
 				<xsl:otherwise>
-					<xsl:variable name="document">cocoon:/do/getRepositoryData/<xsl:value-of select="$repositoryType"/>/<xsl:value-of
select="$repositoryURL"/>/collection/<xsl:value-of select="$repositoryCollection"/>/doc/<xsl:value-of
select="$documentID"/>.xml</xsl:variable>
+					<xsl:variable name="document">cocoon:/do/getRepositoryData/daisy/<xsl:value-of
select="$repositoryURL"/>/collection/<xsl:value-of select="$repositoryCollection"/>/doc/<xsl:value-of
select="$documentID"/>.xml</xsl:variable>
 		      <xsl:apply-templates select="document($document)"/>
 				</xsl:otherwise>
 		</xsl:choose>
@@ -46,7 +45,7 @@
           <xsl:when test="starts-with(@href, 'http://') or starts-with(@href, 'mailto:')">
             <xsl:value-of select="@href"/>
           </xsl:when>
-          <xsl:otherwise><xsl:value-of select="@href"/>?repositoryURL=<xsl:value-of
select="$repositoryURL"/>&amp;repositoryCollection=<xsl:value-of select="$repositoryCollection"/>&amp;repositoryPort=<xsl:value-of
select="$repositoryPort"/>&amp;repositoryType=<xsl:value-of select="$repositoryType"/>&amp;documentID=<xsl:value-of
select="@href"/></xsl:otherwise>
+          <xsl:otherwise><xsl:value-of select="@href"/>?repositoryURL=<xsl:value-of
select="$repositoryURL"/>&amp;repositoryCollection=<xsl:value-of select="$repositoryCollection"/>&amp;repositoryPort=<xsl:value-of
select="$repositoryPort"/>&amp;documentID=<xsl:value-of select="@href"/></xsl:otherwise>
         </xsl:choose>
       </xsl:attribute>
       <xsl:apply-templates select="node()[not(@href)]"/>



Mime
View raw message