Re: [xsl] Could not read secondary source document in XSLT stylesheet

Subject: Re: [xsl] Could not read secondary source document in XSLT stylesheet
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 14 Jul 2010 15:40:07 +0100
On 14/07/2010 15:32, Jack Bush wrote:
10<xsl:template match="employee">
11<xsl:apply-templates select="document('C:\\STAFF.xml')"/>
12<xsl:template match="/ns:employee">


as it said in teh error message you quoted, you can not nest templates. You have

10 <xsl:template match="employee">
11 <xsl:apply-templates select="document('C:\\STAFF.xml')"/>
12 <xsl:template match="/ns:employee">


you need and </xsl:template> on line 12


also saxon may be forgivinbg these days but C:\\STAFF.xml should be a URI so file:///STAFF.xml

David


________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


Current Thread