>> not sure if you know about that. Restricted lists doesn't seem to be >> parsed since generateDS recognizes it as a simpleType restriction. >> >> (from WS-BPEL 2.0) > > I'm looking into it. Give me a day or two. I'm hoping I can prevent the > exception, even if the code generated for restriction/simpleType/list is > not all we want it to be. Once I've gotten that far, we can talk about > what the generated code really should do. > > By the way, what does a list mean in this context? Is it just a string > containing > words (NCNames in the spec) separated by spaces? I looked at the > XML Schema spec, and that seems to be the intent. This: > > http://www.w3.org/TR/xmlschema-0/#ListDt > > seems to be saying that > > <xsd:list itemType="BPELVariableName"/> > > defines a string containing names separated by white space. Am right > about that? You are. Sorry, I should have told you in advance. As you say, it's a string separated by white space. And as you see, the restriction says that there has to be at least one 'token'.
This kind of restriction is used two times in the xsd, which is available at http://docs.oasis-open.org/wsbpel/2.0/OS/process/executable/ws-bpel_executable.xsd One obviously way to represent it is with a Python list. And in case of WS-BPEL, this could be a list of references (to objects of that given type). But I don't know if it's a good idea to make it so. Maybe the more general case is to have just a list of strings. Cheers ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users