Copied to clipboard

Flag this post as spam?

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


  • Wesley Herpoelaert 52 posts 123 karma points
    Dec 06, 2010 @ 11:41
    Wesley Herpoelaert
    0

    Fieldset title in a xslt transformed email

    Hello,

    Is it possible to get the fieldset title in a xslt transformed email?

    Thanks in advance

    Best regards

  • Comment author was deleted

    Dec 06, 2010 @ 12:03

    Hey Wesley,

    If you take a look at the contour documentation, you can view an example of the raw xml that is being used... The fieldset title should also be available.

    Regards,
    Tim

  • Wesley Herpoelaert 52 posts 123 karma points
    Dec 06, 2010 @ 12:36
    Wesley Herpoelaert
    0

    Hey Tim,

    Is there a way to get it by using the workflow 'xslt transformed email'?

    Currently I am using this xml:

    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:user="urn:my-scripts"
    xmlns:umbraco.library="urn:umbraco.library"
    exclude-result-prefixes="xsl msxsl user umbraco.library">
     
      <xsl:output method="html" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
      doctype-system="DTD/xhtml1-strict.dtd"
      cdata-section-elements="script style"
      indent="yes"
      encoding="utf-8"/>

      <xsl:param name="records" />

      <xsl:template match="/">
        <table border="0" cellpadding="0" cellspacing="0">
          <xsl:for-each select="$records//fields/child::*">
            <xsl:sort select="@pageindex" />
            <xsl:sort select="@fieldsetindex" />
            <xsl:sort select="@sortorder" />
            <tr align="left" valign="top">
              <td align="left" colspan="2" valign="top" style="font-family: arial; font-size: 12px;">
                <strong>
                  <xsl:choose>
                    <xsl:when test="substring(./caption,1,1) = '#'">
                      <xsl:value-of select="umbraco.library:GetDictionaryItem(substring(./caption,2))" disable-output-escaping="yes"/>
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:value-of select="./caption" disable-output-escaping="yes"/>
                    </xsl:otherwise>
                  </xsl:choose>
                </strong>
              </td>
            </tr>
            <tr align="left" valign="top">
            <td style="width:16px"> </td>
              <td align="left" valign="top" style="font-family: arial; font-size: 12px;">
                <xsl:choose>
                  <xsl:when test="substring(.//value,1,1) = '#'">
                    <xsl:value-of select="umbraco.library:GetDictionaryItem(substring(.//value,2))"/>
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="umbraco.library:ReplaceLineBreaks(.//value)" disable-output-escaping="yes" />
                  </xsl:otherwise>
                </xsl:choose>
              </td>
            </tr>
            <tr style="height:6px; font-size:1px; line-height:1px"><td colspan="2"> </td></tr>
          </xsl:for-each>
        </table>

      </xsl:template>
    </xsl:stylesheet>

    Best regards

  • Kims 25 posts 34 karma points
    Feb 11, 2011 @ 01:19
    Kims
    0

    I don't see the fieldset title anywhere in the Contour Developer Documentation, if this is what Tim meant.

    I'm trying to do the same thing as Wesley..shouldn't be this difficult

    - Kim

Please Sign in or register to post replies

Write your reply to:

Draft