[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Reading external XML file XSLT2.0

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(.),

       <xsl:value-of select="$extNode/book-meta/book/@author"/> Error
shows here

Engine name: Saxon-EE
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.

Pankaj Chaturvedi

Current Thread