Undeclared type prefix

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Undeclared type prefix

RachidEHTP
hello everybody


  I had an XPL page that work well, but with the new version of Orbeon (3.6) I have the following mistake :

   "Undeclared type prefix for type:xs:int" line 37

  you will find attached my xpl file.

   Thanks

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

produits-lit.xpl (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared type prefix

Erik Bruchez
Administrator
You must declare a namespace mapping for "xs", e.g.:

   xmlns:xs="http://www.w3.org/2001/XMLSchema"

-Erik

On Apr 9, 2008, at 8:09 AM, ZENOUAKI rachid wrote:

> hello everybody
>
>
>   I had an XPL page that work well, but with the new version of  
> Orbeon (3.6) I have the following mistake :
>
>    "Undeclared type prefix for type:xs:int" line 37
>
>   you will find attached my xpl file.
>
>    Thanks <produits-lit.xpl>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Undeclared type prefix

RachidEHTP
I have already added the namespace , but in this case i have another problem :

  "Illegal XML type for SQL type: {<a href="http://www.w3.org/2001/XMLSchema}int">http://www.w3.org/2001/XMLSchema}int, smallint"

  Line 46 in the same page.

    Thanks

2008/4/9, Erik Bruchez <[hidden email]>:
You must declare a namespace mapping for "xs", e.g.:

 xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.w3.org/2001/XMLSchema"

-Erik


On Apr 9, 2008, at 8:09 AM, ZENOUAKI rachid wrote:
hello everybody


 I had an XPL page that work well, but with the new version of Orbeon (3.6) I have the following mistake :

  "Undeclared type prefix for type:xs:int" line 37

 you will find attached my xpl file.

  Thanks <produits-lit.xpl>
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: <a href="http://www.ow2.org/wws" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ow2.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
<a href="http://www.orbeon.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.ow2.org/wws" target="_blank">http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Undeclared type prefix

Alessandro Vernet
Administrator
On Wed, Apr 9, 2008 at 8:41 AM, ZENOUAKI rachid
<[hidden email]> wrote:
> I have already added the namespace , but in this case i have another problem
> :
>
>   "Illegal XML type for SQL type: {http://www.w3.org/2001/XMLSchema}int,
> smallint"
>
>   Line 46 in the same page.

Could you quote the part of your XPL file that causing this?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Undeclared type prefix

RachidEHTP
Ok

  you will find attached the file, i quoted te part with ("  .....  ")

  Thanks

2008/4/9, Alessandro Vernet <[hidden email]>:
On Wed, Apr 9, 2008 at 8:41 AM, ZENOUAKI rachid
<[hidden email]> wrote:
> I have already added the namespace , but in this case i have another problem
> :
>
>   "Illegal XML type for SQL type: {<a href="http://www.w3.org/2001/XMLSchema}int">http://www.w3.org/2001/XMLSchema}int,
> smallint"
>
>   Line 46 in the same page.


Could you quote the part of your XPL file that causing this?

Alex

--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws

produits-lit.xpl (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Undeclared type prefix

RachidEHTP
Hi

  I ask if wa can use the (xs:smallint), because my id in the database is a smallint, but in my xpl i use int ( when i change it to smallint orbeon throw an error)

  Thanks


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Undeclared type prefix

RachidEHTP
Hello

  Can some one help me in this problem, i 'm bloked in the same point.

   Thanks


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Undeclared type prefix

Alessandro Vernet
Administrator
In reply to this post by RachidEHTP
Rachid,

On Wed, Apr 9, 2008 at 8:41 AM, ZENOUAKI rachid
<[hidden email]> wrote:
> I have already added the namespace , but in this case i have another problem
> :
>
>   "Illegal XML type for SQL type: {http://www.w3.org/2001/XMLSchema}int,
> smallint"

You code, try to replace:

<sql:get-column type="xs:int" column="famille_id"/>

With:

<sql:get-column type="xs:short" column="famille_id"/>

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Undeclared type prefix

RachidEHTP
hi

  I replaced 'int' with 'short' but always a error in the code :

Error attribute "type" has a bad value. Possible values are: xs:anyURI,xs:base64Binary,xs:boolean,xs:date,xs:dateTime,xs:decimal,xs:double,xs:float,xs:int,xs:string, and more(schema: http://orbeon.org/oxf/xml/sql) .

  Thanks




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: Undeclared type prefix

Alessandro Vernet
Administrator
Rachid,

On Fri, Apr 11, 2008 at 2:24 AM, ZENOUAKI rachid
<[hidden email]> wrote:
>   I replaced 'int' with 'short' but always a error in the code :
>
> Error attribute "type" has a bad value. Possible values are:
> xs:anyURI,xs:base64Binary,xs:boolean,xs:date,xs:dateTime,xs:decimal,xs:double,xs:float,xs:int,xs:string,
> and more(schema: http://orbeon.org/oxf/xml/sql) .

Looks like the schema is incomplete, because there is code to support
this type, at least in the current version. Can you try to disable the
processor validation in properties.xml by setting the
oxf.validation.processor property to "false" (more on
http://www.orbeon.com/ops/doc/reference-properties).

If it works after changing this, we can just update the schema
(src/java/org/orbeon/oxf/processor/sql/sql-processor-config.rng) to
support xs:short. When doing this we should check that the types
declared in GetterInterpreter (around line 380) are all declared in
the schema as well.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws