| 
 
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 | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] CSV to XML, chun ji | Thread | [xsl] Change bar in xsl, Alexandre Moraes | 
| Re: [xsl] position() outside for-ea, David Carlisle | Date | RE: [xsl] position() outside for-ea, Michael Kay | 
| Month |