Imported schemas

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

Imported schemas

mjgraham
Hi,

I have the following setup:

<xforms:model schema="oxf:/schema/schemaA.xsd">

and instance documents validate fine against this. Now there is an
extension schema, schemaB.xsd, which has an import statement in it:

<xsl:import namespace="http://name.space.schema.a"
schemaLocation="schemaA.xsd"/>

but when I try:

<xforms:model schema="oxf:/schema/schemaB.xsd">

no validation appears to be happening in that I can enter illegal values
and there are no errors thrown (but there are when I do the same with
schemaA). The schemas are all getting loaded as if I alter the
schemaLocation to something that does not exist, OPS complains about not
being able to find it.

Is this a known limitation?

    Cheers,

    Matthew



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Imported schemas

Alessandro Vernet
Administrator
HI Matthew,

Have you already tried modifying schemaB.xsd to have:

<xsl:import namespace="http://name.space.schema.a"
schemaLocation="oxf:/schema/schemaA.xsd"/>

Alex

On 4/19/07, Matthew Graham <[hidden email]> wrote:

> Hi,
>
> I have the following setup:
>
> <xforms:model schema="oxf:/schema/schemaA.xsd">
>
> and instance documents validate fine against this. Now there is an
> extension schema, schemaB.xsd, which has an import statement in it:
>
> <xsl:import namespace="http://name.space.schema.a"
> schemaLocation="schemaA.xsd"/>
>
> but when I try:
>
> <xforms:model schema="oxf:/schema/schemaB.xsd">
>
> no validation appears to be happening in that I can enter illegal values
> and there are no errors thrown (but there are when I do the same with
> schemaA). The schemas are all getting loaded as if I alter the
> schemaLocation to something that does not exist, OPS complains about not
> being able to find it.
>
> Is this a known limitation?
>
>     Cheers,
>
>     Matthew
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Imported schemas

mjgraham
In reply to this post by mjgraham
Hi Alex,

Yes, I have - unfortunately it makes no difference. As I said, if I put
in a bad schemaLocation then an error is thrown that the schema cannot
be found so the import schemas are definitely been found but it looks as
though they are not being applied.

    Cheers,
   
    Matthew

HI Matthew,

Have you already tried modifying schemaB.xsd to have:

<xsl:import namespace="http://name.space.schema.a"
<http://name.space.schema.a%22>;
schemaLocation="oxf:/schema/schemaA.xsd"/>

Alex

On 4/19/07, Matthew Graham <mjg@xxxxxxxxxxxxxxxx> wrote:
Hi,

I have the following setup:

<xforms:model schema="oxf:/schema/schemaA.xsd">

and instance documents validate fine against this. Now there is an
extension schema, schemaB.xsd, which has an import statement in it:

<xsl:import namespace="http://name.space.schema.a"
<http://name.space.schema.a%22>;
schemaLocation="schemaA.xsd"/>

but when I try:

<xforms:model schema="oxf:/schema/schemaB.xsd">

no validation appears to be happening in that I can enter illegal values
and there are no errors thrown (but there are when I do the same with
schemaA). The schemas are all getting loaded as if I alter the
schemaLocation to something that does not exist, OPS complains about not
being able to find it.

Is this a known limitation?

Cheers,

Matthew



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Imported schemas

Alessandro Vernet
Administrator
Hi Matthew,

Alright. Then I don't see any other workaround. Would you be able to
create a test case to reproduce this? One XHTML+XForms file plus two
Schema files should be enough to reproduce the issue.

Alex

On 4/19/07, Matthew Graham <[hidden email]> wrote:

> Hi Alex,
>
> Yes, I have - unfortunately it makes no difference. As I said, if I put
> in a bad schemaLocation then an error is thrown that the schema cannot
> be found so the import schemas are definitely been found but it looks as
> though they are not being applied.
>
>     Cheers,
>
>     Matthew
>
> HI Matthew,
>
> Have you already tried modifying schemaB.xsd to have:
>
> <xsl:import namespace="http://name.space.schema.a"
> <http://name.space.schema.a%22>;
> schemaLocation="oxf:/schema/schemaA.xsd"/>
>
> Alex
>
> On 4/19/07, Matthew Graham <mjg@xxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I have the following setup:
>
> <xforms:model schema="oxf:/schema/schemaA.xsd">
>
> and instance documents validate fine against this. Now there is an
> extension schema, schemaB.xsd, which has an import statement in it:
>
> <xsl:import namespace="http://name.space.schema.a"
> <http://name.space.schema.a%22>;
> schemaLocation="schemaA.xsd"/>
>
> but when I try:
>
> <xforms:model schema="oxf:/schema/schemaB.xsd">
>
> no validation appears to be happening in that I can enter illegal values
> and there are no errors thrown (but there are when I do the same with
> schemaA). The schemas are all getting loaded as if I alter the
> schemaLocation to something that does not exist, OPS complains about not
> being able to find it.
>
> Is this a known limitation?
>
> Cheers,
>
> Matthew
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Orbeon Forms - Web 2.0 Forms for the Enterprise
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws