AnsweredAssumed Answered

problem with document()

Question asked by timlterry on Jul 20, 2007
Latest reply on Jul 24, 2007 by timlterry
I'm having some trouble with this code
<ul>
<xsl:for-each select="document('news1.xml')/items/link-text">
<li><xsl:value-of select="." disable-output-escaping="yes"/></li>
</xsl:for-each>
</ul>

The XSL file containing this code and the news1.xml file containing the link-text items I want to get are in the same directory.  The code works ok when I preview the XSL in Dreamweaver, but it totally fails (there is not HTML at all) when I create HTML from this XLS file in Alfresco.

I've replaced the code above with
<xsl:value-of select="document('news1.xml')"/> to see what happens.  Again, works in Dreamweaver but completely fails when I create HTML in Alfresco.

I'm stumped.  What I'm trying to do is have this file tied to a XSD style sheet that codes the body of the page, and then use the code above to get content from a different XML file that contains all of the news items.

Thanks for any assistance you might be able to provide.

Outcomes