[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Could not read secondary source document in XSLT

Subject: Re: Could not read secondary source document in XSLT stylesheet
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 14 Jul 2010 15:40:07 +0100
Re:  Could not read secondary source document in XSLT
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


________________________________________________________________________ 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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.