|
Subject: [xsl] Reading external XML file XSLT2.0 From: "Pankaj Chaturvedi" <Pankaj.Chaturvedi@xxxxxxxxxxxxxx> Date: Wed, 8 May 2013 15:27:15 +0530 |
Hi all,
I am wondering what could be possibly wrong with my code, while I am
trying to read external XML (book_meta.xml) file in my style sheet. The
codes looks like below. I am working on Windows on XSLT2.0
<xsl:variable name="extNode" select="tokenize(document-uri(.),
'\.')[last()-2],'book_meta.xml'"/>
<xsl:value-of select="$extNode/book-meta/book/@author"/> Error
shows here
Engine name: Saxon-EE 9.3.0.5
Severity: fatal
Description: Required item type of first operand of '/' is node();
supplied value has item type xs:string
Start location: 46:65
URL: http://www.w3.org/TR/xpath20/#ERRXPTY0019
Is it something do with OS Windows, since way back I used to similar
manner on MAC and worked like charm even in XSLT1.0 on xsltproc.
Best,
Pankaj Chaturvedi
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XSLT 3.0 features in Saxo, David Sewell | Thread | Re: [xsl] Reading external XML file, Andrew Welch |
| Re: [xsl] XSLT 3.0 features in Saxo, David Sewell | Date | Re: [xsl] Reading external XML file, Andrew Welch |
| Month |