xsl-list
[Top] [All Lists]

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

2010-07-14 09:40:22
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. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>