Changeset 1108

Show
Ignore:
Timestamp:
12/04/07 16:06:49 (9 months ago)
Author:
nsteiner
Message:

Bugfix #104

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/examples/pages/txt/main_shop.xml

    r1077 r1108  
    1111        <stub:form send-to-page="shop">  
    1212          <stub:itemframe id="shopData"> 
    13             <stub:item name="id" type="dynamic" path="/document/shopData/analyzable/@id"/> 
     13            <stub:item name="id" type="text" path="/document/shopData/analyzable/@id"/> 
    1414            <stub:item name="title" type="text"/> 
    1515            <stub:item name="url" type="text"/> 
  • trunk/src/main/resources/xsl/stub.xsl

    r1077 r1108  
    282282              <xsl:value-of select="@name"/> 
    283283            </xsl:attribute> 
    284             <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' and local-name() != 'mandatory']"/> 
    285             <ixsl:if> 
    286               <xsl:attribute name="test"> 
    287                 <xsl:text>/document/forms/</xsl:text> 
    288                 <xsl:value-of select="$id"/> 
    289                 <xsl:text>/</xsl:text> 
    290                 <xsl:value-of select="@name"/> 
    291               </xsl:attribute> 
    292               <ixsl:attribute name="value"> 
    293                 <ixsl:value-of> 
    294                   <xsl:attribute name="select"> 
    295                     <xsl:text>/document/forms/</xsl:text> 
    296                     <xsl:value-of select="$id"/> 
    297                     <xsl:text>/</xsl:text> 
    298                     <xsl:value-of select="@name"/> 
    299                   </xsl:attribute> 
    300                 </ixsl:value-of> 
    301               </ixsl:attribute> 
    302             </ixsl:if> 
     284            <xsl:copy-of select="@*[local-name() != 'id' and local-name() != 'name' and local-name() != 'path' and local-name() != 'mandatory']"/> 
     285            <ixsl:choose> 
     286              <ixsl:when> 
     287                <xsl:attribute name="test"> 
     288                  <xsl:text>/document/forms/</xsl:text> 
     289                  <xsl:value-of select="$id"/> 
     290                  <xsl:text>/</xsl:text> 
     291                  <xsl:value-of select="@name"/> 
     292                </xsl:attribute> 
     293                <ixsl:attribute name="value"> 
     294                  <ixsl:value-of> 
     295                    <xsl:attribute name="select"> 
     296                      <xsl:text>/document/forms/</xsl:text> 
     297                      <xsl:value-of select="$id"/> 
     298                      <xsl:text>/</xsl:text> 
     299                      <xsl:value-of select="@name"/> 
     300                    </xsl:attribute> 
     301                  </ixsl:value-of> 
     302                </ixsl:attribute> 
     303              </ixsl:when> 
     304              <ixsl:otherwise>   
     305                <xsl:if test="@path and @path != ''"> 
     306                  <ixsl:attribute name="value"> 
     307                    <ixsl:value-of> 
     308                      <xsl:attribute name="select"> 
     309                        <xsl:value-of select="@path"/> 
     310                      </xsl:attribute> 
     311                    </ixsl:value-of> 
     312                  </ixsl:attribute> 
     313                </xsl:if> 
     314              </ixsl:otherwise> 
     315            </ixsl:choose> 
    303316          </input> 
    304317        </xsl:when>