[xsd-users] IDREFS issue

COPE, Giles, FM Giles.COPE at rbos.com
Fri Nov 4 05:43:25 EST 2005


Hi, we're trialling xsd and it's looking very useful. One thing I did note
is that when we add in a IDREFS attribute the generated code didn't seem to
build (not compiling when we had the --generate-serialization and
--generate-ostream options). It's not a biggy as we can change the schema to
get round this, but thought I'd let you know. We're not yet at the account
numbers and sort codes stage yet but once we are we'll let you know. (we're
about 10kloc of gen source - don't want to raise your hopes too high ;-)

The line in the xsd was:

  <xs:attribute name="refs" type="xs:IDREFS" use="optional"/>

And the error:

c:\xsd-1.5.0-i686-windows\libxsd\xsd\cxx\tree\types.hxx(1357) : error C2679:
binary '<<' : no operator found which takes a right-hand operand of type
'const xsd::cxx::tree::sequence<X>' (or there is no acceptable conversion)
with
[
X=xsd::cxx::tree::idref_template<xml_schema::type,char>
]
c:\xsd-1.4.0-i686-windows\examples\cxx\tree\hello\RiskEngineXmlApi.cpp(6898)
: see reference to function template instantiation
'std::basic_ostream<_Elem,_Traits> &xsd::cxx::tree::operator
<<<xml_schema::type,char>(std::basic_ostream<_Elem,_Traits> &,const
xsd::cxx::tree::idrefs_template<X,C> &)' being compiled
with
[
_Elem=char,
_Traits=std::char_traits<char>,
X=xml_schema::type,
C=char
]

Regards

Giles Cope


***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312.       Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.                                      
Authorised and regulated by the Financial Services Authority     
 
This e-mail message is confidential and for use by the                      
addressee only. If the message is received by anyone other             
than the addressee, please return the message to the sender          
by replying to it and then delete the message from your                    
computer. Internet e-mails are not necessarily secure. The               
Royal Bank of Scotland plc does not accept responsibility for          
changes made to this message after it was sent.                              
                                                                                                        
Whilst all reasonable care has been taken to avoid the                   
transmission of viruses, it is the responsibility of the recipient to        
ensure that the onward transmission, opening or use of this             
message and any attachments will not adversely affect its               
systems or data.  No responsibility is accepted by The Royal           
Bank of Scotland plc in this regard and the recipient should carry   
out such virus and other checks as it considers appropriate.           
                                                                                                               Visit our websites at:                                                                          
http://www.rbs.co.uk/CBFM                                                        
http://www.rbsmarkets.com                                                         
                                                                                                       ********************************************************************************




More information about the xsd-users mailing list