Michael Wronna: Ein/ Ausblenden von Bereichen

Beitrag lesen

hallo timo,

ich habe fuer das firmen-intranet so etwas aehnliches, moechte
es aber hier im quelltext nich ganz zeigen. wenn du interesse
hast kann ich es dir mailen. hier schon mal ein teaser:

<xsl:template name="task" match="//Aufgabe">
<xsl:param name="AufgabenID"/>
<xsl:for-each select="./Anweisung">
  <xsl:variable name="BeschreibungsID">
    a_<xsl:value-of select="$AufgabenID"/>_<xsl:value-of
      select="position()"/>
  </xsl:variable>
  <!-- <xsl:value-of select="$BeschreibungsID"/> -->
  <input type="checkbox"/><a><xsl:if test="string-length(.)>10">
    <xsl:attribute name="onmouseover">this.style.cursor='hand'
      </xsl:attribute>
    <xsl:attribute name="onclick"><xsl:value-of
      select="$BeschreibungsID"/>.style.display='block'
        </xsl:attribute>&#172;
    </xsl:if><xsl:value-of select="./@Anzeige"/></a><br/>
  <span><xsl:attribute name="id">a_<xsl:value-of
    select="$AufgabenID"/>_<xsl:value-of select="position()"/>
  </xsl:attribute>
  <xsl:attribute name="onmouseover">this.style.cursor='hand'
    </xsl:attribute>
    <xsl:attribute name="onclick">this.style.display='none'
    </xsl:attribute>
    <xsl:value-of select="."/></span>
</xsl:for-each>
</xsl:template>

ich hoffe es hilft dir ein wenig, wichtig sind die attribute.
gruss vom bodensee,

michael