Copied to clipboard

Flag this post as spam?

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


  • nahavan 4 posts 20 karma points
    Jul 08, 2009 @ 22:36
    nahavan
    0

    xslt/xml from filemaker

    Hi

    I have used the xslt stylesheet from prgjonas ( http://forum.umbraco.org/yaf_postst5455_content-from-Filemaker-database-via-Net.aspx )</span></p>; <p><span style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">But now I need to get the fieldsname from some related records in a portal.</span></p> <p><span style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;">When I  connect to Filemaker and get the full xml everything is fine, but I cant get them with the simpleXml.xsl.</span>

    <?xml version="1.0" encoding="UTF-8"?>

    <?xslt-cwp-query params="-grammar=fmresultset"?>

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.filemaker.com/xml/fmresultset" exclude-result-prefixes="a"></p> <p><span style="white-space: pre;"> </span><xsl:output method="xml" encoding="UTF-8" /></p> <p><span style="white-space: pre;"> </span><xsl:template match="/"></p> <p><span style="white-space: pre;"> </span><xsl:element name="root"></p> <p><span style="white-space: pre;"> </span><xsl:for-each select="a:fmresultset/a:resultset/a:record"></p> <p><span style="white-space: pre;"> </span><xsl:element name="record"></p> <p><span style="white-space: pre;"> </span><xsl:for-each select="a:field"></p> <p><span style="white-space: pre;"> </span><xsl:element name="{@name}"></p> <p><span style="white-space: pre;"> </span><xsl:value-of select="a:data" /></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:for-each></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:for-each></p> <p><span style="white-space: pre;"> </span><xsl:call-template name="related" /></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:template></p> <p><span style="white-space: pre;"> </span><xsl:template name="related"></p> <p><span style="white-space: pre;"> </span><xsl:element name="relatedset"></p> <p><span style="white-space: pre;"> </span><xsl:for-each select="a:fmresultset/a:resultset/a:record/a:relatedset/a:record"></p> <p><span style="white-space: pre;"> </span><xsl:element name="record"></p> <p><span style="white-space: pre;"> </span><xsl:for-each select="a:field"></p> <p><span style="white-space: pre;"> </span><xsl:element name="{name()}"></p> <p><span style="white-space: pre;"> </span><xsl:value-of select="a:data" /></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:for-each></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:for-each></p> <p><span style="white-space: pre;"> </span></xsl:element></p> <p><span style="white-space: pre;"> </span></xsl:template>Thanks for your help.</span></span></div> </span>

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 08, 2009 @ 22:49
    Dirk De Grave
    1

    Hi mate,

     

    - Type in your text without pasting any code snippets yet.

    - In this box, select the 'Preformatted' style from the dropdown and you'll get a grey bar.

    - Copy'n'paste the code from notepad to the grey bar.

    - Hit submit

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft