Sorry, but it is not really clear to me what the question is about ... ;-).
Werner > -----Ursprüngliche Nachricht----- > Von: Saladin Sharif [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 16. März 2007 23:31 > An: [email protected] > Betreff: Re: AW: AW: [castor-user] How to do XSD validation when the code > was not generated by the Castor code generator > > > And next I had to specify the namespace URI in the > castor mapping file. In particular, I had to specify > the namespace in the ns-uri attribute for the <map-to> > tag, like so: > > <map-to xml="Document" > ns-uri="http://www.nproj.com/japps/AcceptRunRequest"/> > > But for the <bind-xml> tag, i had to do two things: > > 1. Declare the namespace URI and namespace prefix in > the root <mapping> element of the castor mapping file, > like so: > > <mapping > xmlns:rns="http://www.nproj.com/japps/AcceptRunRequest"> > > And then use that namespace prefix in the name > attribute of the <bind-xml> tag, like so: > > <bind-xml name="rns:LOGIN_LIST"> > > > I assume that there is not another cleaner way for > specifying the namespace for both the <map-to> and the > <bind-xml> tags, so that they are both consistent in > the mapping file. I mean you cannot specify the > namespace URI in an ns-uri attribute for the > <bind-xml> tag, nor can you specify the namespace > prefix in the xml attribute of the <map-to> tag. > Please feel free to correct me if my assumptions are > incorrect. > > Thanks. > > -Saladin --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

