haul 2002/05/31 00:38:00 Modified: src/webapp/stylesheets/page simple-page2html.xsl Log: add param "path" so that view source can be used from sub-sitemaps. Revision Changes Path 1.2 +2 -1 xml-cocoon2/src/webapp/stylesheets/page/simple-page2html.xsl Index: simple-page2html.xsl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/stylesheets/page/simple-page2html.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- simple-page2html.xsl 3 Jan 2002 12:31:46 -0000 1.1 +++ simple-page2html.xsl 31 May 2002 07:38:00 -0000 1.2 @@ -3,6 +3,7 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="view-source"/> + <xsl:param name="path">../</xsl:param> <xsl:template match="page"> <html> @@ -24,7 +25,7 @@ </xsl:if> <xsl:if test="$view-source"> <A> - <xsl:attribute name="HREF">../view-source?filename=/<xsl:value-of select="$view-source"/></xsl:attribute> + <xsl:attribute name="HREF"><xsl:value-of select="$path"/>view-source?filename=/<xsl:value-of select="$view-source"/></xsl:attribute> <xsl:attribute name="TARGET">_blank</xsl:attribute> <xsl:apply-templates/> </A>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]