RE: [xsl] CSV to XML

Subject: RE: [xsl] CSV to XML
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 13 Nov 2007 23:15:14 -0000
> Thanks for the tips. It works after I removed this piece code 
> in the one you gave:  
> 
> as="xs:string()*"
> 
> Because otherwise, I see an error during the runtime: 
> "
>  XPST0003: SequenceType syntax error at char 0 in
> {xs:string()}:
>     Expected type name in SequenceType, found <function>( 
> Failed to compile stylesheet. 1 error detected.

Sorry, the "()" was a slip, it should be as="xs:string*". You need to
declare the namespace xmlns:xs="http://www.w3.org/2001/XMLSchema";. Declaring
the types of your variables should be second nature - it makes debugging so
much easier - and most of the types will be in the XML Schema namespace.

Michael Kay
http://www.saxonica.com/

Current Thread
  • Re: [xsl] CSV to XML, (continued)
        • mozer - Tue, 13 Nov 2007 20:18:54 +0100
        • Steve - Tue, 13 Nov 2007 14:23:27 -0500
        • Michael Kay - Tue, 13 Nov 2007 20:24:53 -0000
        • chun ji - Tue, 13 Nov 2007 14:12:17 -0800 (PST)
        • Michael Kay - Tue, 13 Nov 2007 23:15:14 -0000 <=