Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    Mar 18, 2010 @ 11:35
    Peter Bradsted Bodenhoff
    0

    Strange behaviour .... richtext-elements in XLST

    Hi,

    I am a bit confused....

    In my DocumentType I have defined two richtext-elements. One for each column in a table. When I call the elements in the Template they present nicely - but when i call "Column1" in my XSLT they return both "Column1" AND "Column2"...

    Is there some kind of explanation??

    TEMPLATE
    *********************************************
    <table>
    <tr>
    <td width="270" valign="top">
    <umbraco:Item field="column1" runat="server"></umbraco:Item>
    </td>
    <td width="10"></td>
    <td width="270" valign="top">
    <umbraco:Item field="column2" runat="server"></umbraco:Item>
    </td>
    </tr>
    </table>

     

    XLST
    *********************************************
    <xsl:if test="$template = 'table'">
    <table>
    <tr>
    <td width="270" valign="top">
    <xsl:value-of select="umbraco.library:GetXmlNodeById(umbraco.library:RequestQueryString('ID'))/self::node [data [@alias='column1']]" disable-output-escaping="yes"/>
    </td>
    <td width="10"></td>
    <td width="270" valign="top">
    <xsl:value-of select="umbraco.library:GetXmlNodeById(umbraco.library:RequestQueryString('ID'))/self::node [data [@alias='column2']]" disable-output-escaping="yes"/>
    </td>
    </tr>
    </table>
    </xsl:if>

     

Please Sign in or register to post replies

Write your reply to:

Draft