Subject: RE: 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: CSV to XML, (continued)
- mozer - 13 Nov 2007 19:22:02 -0000
- Steve - 13 Nov 2007 19:28:42 -0000
- Michael Kay - 13 Nov 2007 20:25:47 -0000
- chun ji - 13 Nov 2007 22:12:48 -0000
- Michael Kay - 13 Nov 2007 23:15:55 -0000 <=
|
|