Thankyou Marcus. That's gotten me a lot further than I was previously.
I created a new xslt method called GeneratePortfolioHome. The code is below. This is actually generating the correct data but it's duplicated twice. I can't see why it would be doing that.
I created a new xslt method called GeneratePortfolioHome. The code is below. This is actually generating the correct data but it's duplicated twice. I can't see why it would be doing that.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:in="http://www.composite.net/ns/transformation/input/1.0" xmlns:lang="http://www.composite.net/ns/localization/1.0" xmlns:f="http://www.composite.net/ns/function/1.0" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl in lang f">
<xsl:variable name="PortfolioList" select="/in:inputs/in:result[@name='GetChildPageDetails']/PortfolioPages" />
<xsl:template match="/">
<html>
<head></head>
<body>
<div id="portfolioList">
<ul>
<xsl:for-each select="$PortfolioList/*">
<li>
<h3><xsl:value-of select="./@Title" /></h3>
<xsl:value-of select="./@ExternalLink" />
</li>
</xsl:for-each>
</ul>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>