Changeset 947
- Timestamp:
- 09/28/07 17:59:19 (10 months ago)
- Files:
-
- trunk/examples/pages/txt/main_index.xml (modified) (1 diff)
- trunk/src/main/resources/xsl/stub.xsl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/pages/txt/main_index.xml
r915 r947 29 29 <!-- test a link --> 30 30 <stub:link page="test"> 31 <stub:argument name="argument">wert</stub:argument>32 <stub:argument name="argument2">noch_ein_wert</stub:argument>33 Test34 </stub:link>31 <stub:argument name="argument">wert</stub:argument> 32 <stub:argument name="argument2">noch_ein_wert</stub:argument> 33 Test 34 </stub:link> 35 35 <!-- This is an include from a different file --> 36 36 <stub:include part="disclaimer" href="include/parts.xml"/> trunk/src/main/resources/xsl/stub.xsl
r915 r947 7 7 exclude-result-prefixes="php xi ixsl stub"> 8 8 9 <xsl:strip-space elements="stub:link" /> 10 9 11 <xsl:template match="stub:document"> 10 12 <ixsl:stylesheet version="1.0" exclude-result-prefixes="ixsl"> … … 15 17 <xsl:copy-of select="@doctype-system" /> 16 18 </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" />19 <ixsl:variable name="page" select="/document/@page" /> 20 <ixsl:variable name="__sessid" select="/document/session/id" /> 21 <ixsl:variable name="__sessname" select="/document/session/name" /> 20 22 <ixsl:template match="/"> 21 23 <xsl:apply-templates select="node()"/> … … 49 51 <xsl:template match="stub:link"> 50 52 <a> 51 <ixsl:attribute name="href"> 53 <ixsl:attribute name="href"> 54 <xsl:choose> 55 <xsl:when test="@processor"> 56 <xsl:value-of select="@processor"/> 57 </xsl:when> 58 <xsl:otherwise> 59 <xsl:text>xml</xsl:text> 60 </xsl:otherwise> 61 </xsl:choose> 62 <xsl:text>/</xsl:text> 63 <xsl:value-of select="@page"/> 64 <xsl:text>;</xsl:text> 65 <ixsl:value-of select="$__sessname"/> 66 <xsl:text>=</xsl:text> 67 <ixsl:value-of select="$__sessid"/> 68 <xsl:for-each select="./stub:argument"> 52 69 <xsl:choose> 53 <xsl:when test=" @processor">54 <xsl: value-of select="@processor"/>70 <xsl:when test="position() = 1"> 71 <xsl:text>?</xsl:text> 55 72 </xsl:when> 56 73 <xsl:otherwise> 57 <xsl:text>xml</xsl:text>74 <xsl:text>&</xsl:text> 58 75 </xsl:otherwise> 59 76 </xsl:choose> 60 <xsl:text>/</xsl:text> 61 <xsl:value-of select="@page"/> 62 <xsl:text>;</xsl:text> 63 <ixsl:value-of select="$__sessname"/> 64 <xsl:text>=</xsl:text> 65 <ixsl:value-of select="$__sessid"/> 66 <xsl:for-each select="./stub:argument"> 67 <xsl:choose> 68 <xsl:when test="position() = 1"> 69 <xsl:text>?</xsl:text> 70 </xsl:when> 71 <xsl:otherwise> 72 <xsl:text>&</xsl:text> 73 </xsl:otherwise> 74 </xsl:choose> 75 <xsl:value-of select="@name"/> 76 <xsl:text>=</xsl:text> 77 <xsl:value-of select="."/> 78 </xsl:for-each> 79 </ixsl:attribute> 80 <xsl:apply-templates/> 77 <xsl:value-of select="@name"/> 78 <xsl:text>=</xsl:text> 79 <xsl:value-of select="."/> 80 </xsl:for-each> 81 </ixsl:attribute> 82 <xsl:apply-templates/> 81 83 </a> 82 84 </xsl:template>
