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/01/02 02:39:24 UTC
svn commit: r123863 - /forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl
Author: rgardler
Date: Sat Jan 1 17:39:23 2005
New Revision: 123863
URL: http://svn.apache.org/viewcvs?view=rev&rev=123863
Log:
clarification of the repository retrieval code
Modified:
forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl
Modified: forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl?view=diff&rev=123863&p1=forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl&r1=123862&p2=forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl&r2=123863
==============================================================================
--- forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl (original)
+++ forrest/trunk/plugins/IMSManifest/resources/stylesheets/imsmanifest2site.xsl Sat Jan 1 17:39:23 2005
@@ -95,11 +95,11 @@
</xsl:variable>
<sco><xsl:value-of select="$scoName"/></sco>
<repository><xsl:value-of select="$repositoryURI"/></repository>
+<repositoryCommand><xsl:value-of select="$repositoryCommand"/></repositoryCommand>
<xsl:choose>
<xsl:when test="$repositoryCommand='getSCO'">
- <xsl:variable name="scoName"><xsl:call-template name="getSCOName"><xsl:with-param name="path"><xsl:value-of select="//ims:resources/ims:resource[@identifier=$idref]/@href"/></xsl:with-param></xsl:call-template></xsl:variable>
- <xsl:variable name="sco">http://<xsl:value-of select="$repositoryURI"/>/<xsl:value-of select="$scoName"/>/src/documentation/content/xdocs/imsmanifest.xml</xsl:variable>
- <xsl:apply-templates select="document($sco)/ims:manifest">
+ <xsl:variable name="repositoryHREF">http://<xsl:value-of select="$repositoryURI"/>/<xsl:value-of select="$scoName"/>/src/documentation/content/xdocs/imsmanifest.xml</xsl:variable>
+ <xsl:apply-templates select="document($repositoryHREF)/ims:manifest">
<xsl:with-param name="asset_base">repositoryCommand/getSCO/<xsl:value-of select="$scoName"/>/repositoryURI/<xsl:value-of select="$repositoryURI"/>/</xsl:with-param>
</xsl:apply-templates>
</xsl:when>