Changeset 1572 for trunk

Show
Ignore:
Timestamp:
05/21/08 18:55:18 (6 months ago)
Author:
mikey
Message:

fix stub:option to create correct xsl and xpath expressions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/resources/xsl/stub.xsl

    r1528 r1572  
    452452 
    453453  <xsl:template match="stub:option" name="stub:option"> 
    454     <xsl:param name="id" select="@id"/> 
    455454    <xsl:param name="name" select="@name"/> 
    456455    <option> 
    457       <xsl:copy-of select="@*"/> 
    458       <xsl:apply-templates select="text()"/> 
    459456      <ixsl:if> 
    460457        <xsl:attribute name="test"> 
    461458          <xsl:text>/document/forms/</xsl:text> 
    462           <xsl:value-of select="$id"/> 
     459          <xsl:value-of select="ancestor::stub:itemframe/@id"/> 
    463460          <xsl:text>/</xsl:text> 
    464461          <xsl:value-of select="$name"/> 
     
    468465        </ixsl:attribute> 
    469466      </ixsl:if> 
     467      <xsl:copy-of select="@*"/> 
     468      <xsl:apply-templates select="text()"/> 
    470469    </option> 
    471470  </xsl:template>