Subject: Re: [xsl] reading a document into a typed variable From: Georges Schmitz <georges.schmitz@xxxxxxxxx> Date: Wed, 30 Sep 2009 18:53:15 +0200 |
Configuration File $global.setup.file was not readable (missing or not valid)! [1]: xs:string: file:///D:/Empic/workspace/EmpicSuite-trunk/empic-suite/resources/xml-resolved/GlobalSetup-resolved.xmlx Error on line 52 of file:/D:/Empic/workspace/EmpicSuite-trunk/empic-suite/script/xsl-functions/profile-filter.xsl: XTTE0570: Required item type of value of variable $global.setup is document-node(element(global-setup)); supplied value has item type xs:string
Error at xsl:variable on line 52 column 212 of profile-filter.xsl: XTTE0570: Required item type of value of variable $global.setup is document-node(element(global-setup, xs:anyType)); supplied value has item type xs:string
I think you got me wrong here. I'm actually using the document function for reading.I don't understand the difference between two ways of loading an XML file into a variable (see A and B below). Case A used to work with old saxon 8.9, but with 9.2 only B is successful.
I would expect B to fail in the case that the file is not there (If you have defined $global.setup.file) as in A
you then have effectively
<xsl:variable name="global.setup" as="document-node(element(global-setup))"> <xsl:copy-of select="$global.setup.file"/> </xsl:variable>
and the type xs:string doesn't match document-node()
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] reading a document into a, David Carlisle | Thread | [xsl] Create a web interface to que, Manuel Souto Pico |
Re: [xsl] reading a document into a, David Carlisle | Date | [xsl] Create a web interface to que, Manuel Souto Pico |
Month |