[xsde-users] xs:any and xs:anyAttribute

Jonathan Haws Jonathan.Haws at sdl.usu.edu
Fri Dec 23 00:25:51 EST 2011


Here is a quick question:

In the wildcard examples, how does the driver know that the xs:any is an envelope?  It seems that it is fine with how it is setup now, with envelope being the only option.  But let's say that we have two different envelopes - a square and a rectangle.  How does the driver distinguish that when making the call to _post()?

In my situation, I have a number of possibilities.  And the stuff in <detail> can be any number of things - a <color>, a <shape>, or something else.  Is there an example of that?  Or am I missing something?

Thanks!

Jonathan



-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Thursday, December 22, 2011 05:20
To: Jonathan Haws
Cc: xsde-users at codesynthesis.com
Subject: Re: [xsde-users] xs:any and xs:anyAttribute

Hi Jonathan,

Jonathan Haws <Jonathan.Haws at sdl.usu.edu> writes:

> Anyway, is there an example that would show how this can be done?

Yes, see the 'wildcard' example. As Eric mentioned in his reply, you
will need to compile each schema separately. Then you will need to
route the widlcard content callbacks to the corresponding parser or
serializer. The 'wildcard' example shows how to do this.

Boris



More information about the xsde-users mailing list