Hello Mark,

The template contains declaration
xmlns:xs="http://www.w3.org/2001/XMLSchema#";
whereas the built-in "well-known" namespace declaration is
xmlns:xs="http://www.w3.org/2001/XMLSchema";
Unfortunately the processor reported the error instead of something more
meaningful, because I've made poor error diagnostics :| I'll improve it.

The workaroud is to replace the namespace prefix or drop it at all ---
it's out of real use anyway.

Best Regards,

Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com

On Wed, 2011-09-21 at 23:30 +1000, Mark James wrote:
> Hi,
> I'm trying to run an xsl script from within Virtuoso that I've
> successfully run externally within a php class.
> 
> 
> When run within Virtuoso I get the following error.
> 
> 
> SQLState: 22007
> Message: XM003: XML parser detected an error:
>       ERROR  : 37000 XM028: XPath interpreter, line 1: Namespace prefix has 
> been used already for other namespace URI
> in the following expression:
> / in / in attribute match of tag 
> http://www.w3.org/1999/XSL/Transform:template in line 38 of file 
> virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:/DAV/VAD/rdf_mappers/xslt/main/xml2rdf25.xsl
> at line 38 column 33 of 
> 'virt://WS.WS.SYS_DAV_RES.RES_FULL_PATH.RES_CONTENT:/DAV/VAD/rdf_mappers/xslt/main/xml2rdf25.xsl'
>        <xsl:template match="/">
> -------------------------------^
> The query I run to cause this error is -
> select xslt (registry_get ('_rdf_mappers_path_') || 
> 'xslt/main/xml2rdf25.xsl', xtree_doc(file_to_string 
> ('/usr/local/virtuoso-opensource/var/lib/virtuoso/db/dummy.xml')));
> The xsl file and dummy xml file are attached. Would someone be able to
> explain why Virtuoso doesn't like it?
> 
> 
> Cheers
> Mark
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________ Virtuoso-users mailing list 
> [email protected] 
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users



Reply via email to