Changeset 858
- Timestamp:
- 08/21/07 16:27:05 (11 months ago)
- Files:
-
- trunk/examples/config/xml/pages/txt/main_index.xml (modified) (1 diff)
- trunk/src/main/resources/xsl/master.xsl (modified) (2 diffs)
- trunk/src/main/resources/xsl/stub.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/config/xml/pages/txt/main_index.xml
r837 r858 25 25 <!-- This is an include in the same document --> 26 26 <stub:include part="caching"/> 27 27 <stub:link page="test">Test</stub:link> 28 28 <!-- This is an include from a different file --> 29 29 <stub:include part="disclaimer" href="include/parts.xml"/> trunk/src/main/resources/xsl/master.xsl
r838 r858 6 6 xmlns:stub="http://stubbles.net/stub" 7 7 exclude-result-prefixes="php xi ixsl stub"> 8 8 9 <xsl:import href="copy.xsl"/> 9 10 <xsl:import href="stub.xsl"/> … … 11 12 12 13 <xsl:param name="__path" select="@path"/> 13 <xsl:param name="__sessid" select="@sessid"/>14 <xsl:param name="__sessname" select="@sessname"/>15 <xsl:param name="page" select="@page"/>16 14 <xsl:param name="lang" select="@lang"/> 17 15 trunk/src/main/resources/xsl/stub.xsl
r839 r858 15 15 <xsl:copy-of select="@doctype-system" /> 16 16 </ixsl:output> 17 <ixsl:variable name="page" select="/document/@page" /> 18 <ixsl:variable name="__sessid" select="/document/session/id" /> 19 <ixsl:variable name="__sessname" select="/document/session/name" /> 17 20 <ixsl:template match="/"> 18 21 <xsl:apply-templates select="node()"/> … … 44 47 <xsl:template match="stub:link"> 45 48 <a> 46 < xsl:attribute name="href">49 <ixsl:attribute name="href"> 47 50 <xsl:choose> 48 51 <xsl:when test="@processor"> … … 53 56 </xsl:otherwise> 54 57 </xsl:choose> 58 <xsl:text>/</xsl:text> 55 59 <xsl:value-of select="@page"/> 56 <ixsl:if test="not($__sessid = '') and not($sessname = '')"> 57 <xsl:text>?</xsl:text> 58 <ixsl:value-of select="$__sessname"/> 59 <xsl:text>=</xsl:text> 60 <ixsl:value-of select="$__sessid"/> 61 </ixsl:if> 62 </xsl:attribute> 60 <xsl:text>;</xsl:text> 61 <ixsl:value-of select="$__sessname"/> 62 <xsl:text>=</xsl:text> 63 <ixsl:value-of select="$__sessid"/> 64 </ixsl:attribute> 63 65 <xsl:value-of select="."/> 64 66 </a>
