Jump to content

portal records


DSTUART

This topic is 7362 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

How does one get portal infomation from dso output via standard xsl

ie

<FMPDSORESULT>

<ROM>

<dave.stuarts>

<DATA>New Zealand</DATA>

<DATA>Canada</DATA>

</dave.stuarts>

</ROM>

<FMPDSORESULT>

I would assume you could navigate to it via

<xsl:value-of select="FMPDSORESULT/ROW/dave.stuart/DATA"> or a for loop or using an array type structure DATA[0] but I can't get it to work.

Thanks in advance

Link to comment
Share on other sites

Right fixed it. I just about had it but had stuffed some code up eariler on. The are some great xslt templates on the fileMaker web site

http://www.filemaker.com/technologies/xslt_library.html that helped me out

the xsl would look like this

<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" />

<xsl:template match="/">

<html>

<body>

<xsl:apply-templates select="FMPDSORESULT"></xsl:apply-templates>

</body>

</html>

</xsl:template>

<xsl:template match="FMPDSORESULT">

<table>

<tr>

<td>

<xsl:call-template name="daves"/>

</td>

</tr>

</table>

</xsl:template>

<xsl:template name="daves">

<table border="2" cellpadding="3" cellspacing="3">

<tr bgcolor="#CCCCCC">

<th>Type</th>

</tr>

<tr>

<td align="right">

<xsl:for-each select="ROW/dave.stuarts/*">

<xsl:value-of select="." /><br />

</xsl:for-each>

</td>

</tr>

</table>

</xsl:template>

</xsl:stylesheet>

Link to comment
Share on other sites

This topic is 7362 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.