Changeset 275
- Timestamp:
- 02/16/07 14:16:48 (1 year ago)
- Files:
-
- trunk/config/xml/pages/txt/main_form.xml (modified) (1 diff)
- trunk/config/xml/pages/txt/main_index.xml (modified) (1 diff)
- trunk/src/main/resources/xsl/masterXInclude.xsl (modified) (1 diff)
- trunk/src/main/resources/xsl/stub.xsl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config/xml/pages/txt/main_form.xml
r268 r275 5 5 exclude-result-prefixes="stub ixsl"> 6 6 <part name="content"> 7 <stub:form >8 7 <stub:form send-to-page="actiontarget" method="get" id="simpleform"> 8 <!-- Content follows soon --> 9 9 </stub:form> 10 10 </part> trunk/config/xml/pages/txt/main_index.xml
r267 r275 23 23 <div><p><ixsl:value-of select="/document/Test/foo" /></p></div> 24 24 <p>foo</p> 25 <stub:form send-to-page="actiontarget" method="get" id="simpleform"> 26 <!-- Content follows soon --> 27 </stub:form> 25 28 </part> 26 29 </parts> trunk/src/main/resources/xsl/masterXInclude.xsl
r264 r275 8 8 <xsl:import href="copy.xsl"/> 9 9 <xsl:import href="stub.xsl"/> 10 <xsl:namespace-alias stylesheet-prefix="ixsl" result-prefix="xsl" /> 10 11 11 12 <xsl:param name="__path"></xsl:param> trunk/src/main/resources/xsl/stub.xsl
r268 r275 134 134 </xi:include> 135 135 </xsl:template> 136 136 137 137 <xsl:template match="stub:image"> 138 138 <xsl:variable name="dimensions" select="php:function('stubXSLCallback::invoke', 'image', 'getImageDimensions', @src)/child::*"/> … … 146 146 <xsl:template match="stub:form"> 147 147 <form> 148 <xsl:copy-of select="@*[local-name() != 'send-to-page']"/> 149 <xsl:variable name="method"> 148 <xsl:attribute name="action"> 150 149 <xsl:choose> 151 <xsl:when test="@method"> 150 <xsl:when test="@send-to-page and not(@send-to-page = '')"> 151 <xsl:value-of select="@send-to-page"/> 152 </xsl:when> 153 <xsl:otherwise> 154 <xsl:value-of select="'home'"/> 155 </xsl:otherwise> 156 </xsl:choose> 157 </xsl:attribute> 158 <ixsl:attribute name="method"> 159 <xsl:choose> 160 <xsl:when test="@method and not(@method = '')"> 152 161 <xsl:value-of select="@method"/> 153 162 </xsl:when> … … 156 165 </xsl:otherwise> 157 166 </xsl:choose> 158 </xsl:variable> 159 <xsl:attribute name="method" select="$method"/> 167 </ixsl:attribute> 168 <xsl:copy-of select="@*[local-name() != 'send-to-page' and local-name() != 'method']"/> 169 <!-- 160 170 <ixsl:if test="not($__sessid = '') and not($__sessname = '')"> 161 171 <input type="hidden"> … … 164 174 </input> 165 175 </ixsl:if> 176 --> 166 177 </form> 167 178 </xsl:template> 168 179 169 <xsl:template match="stub:langselect" >180 <xsl:template match="stub:langselect" name="stub:langselect"> 170 181 <xsl:variable name="langnodes" select="./stub:lang[@name = $lang]"/> 171 182 <xsl:variable name="defaultnodes" select="./stub:lang[@name = 'default']"/>
