JAXB External Binding with classimpl
Purushottama S Lolla <[email protected]> Mon, 21 Jun 2004 07:56:23 -0600
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi, I was trying to use the external binding as shown below and was not
working fine. The JAXB classes generated are ignoring my binding file for
implClass. The package portion is working fine.
Can you please let me know How I can still make the JAXB classes extend my
class?
I think the XPATH expression is wrong. But I don't know how to write that.
<jaxb:bindings node="//xs:element[@name='GrantApplication']">
<jaxb:class
implClass="gov.nsf.apps.grantsgov.proposal.sf424.parse.SF424Impl"></jaxb:cla
ss>
</jaxb:bindings>
Here is our schema.
<?xml version="1.0"?>
<xs:schema
targetNamespace="http://atapply.grants.gov/system/MetaGrantApplicati
on"
xmlns:grant="http://atapply.grants.gov/system/MetaGrantApplication"
xmlns:header="http://atapply.grants.gov/system/Header-V1.0"
xmlns:footer="http://atapply.grants.gov/system/Footer-V1.0"
xmlns:att="http://atapply.grants.gov/system/Attachments-V1.0"
xmlns:RR_SF424="http://atapply.grants.gov/forms/RR_SF424-V1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<!--System Data Types-->
<xs:import namespace="http://atapply.grants.gov/system/Header-V1.0"
schemaLocation="Header-V1.0.xsd"/>
<xs:import namespace="http://atapply.grants.gov/system/Footer-V1.0"
schemaLocation="Footer-V1.0.xsd"/>
<xs:import namespace="http://atapply.grants.gov/system/Attachments-
V1.0" schemaLocation="Attachments-V1.0.xsd"/>
<!--Included Mandatory Forms-->
<xs:import namespace="http://atapply.grants.gov/forms/RR_SF424-
V1.0" schemaLocation="RR_SF424-V1.0.xsd"/>
<xs:element name="GrantApplication">
<xs:complexType>
<xs:sequence>
<xs:element
ref="header:GrantSubmissionHeader"/>
<xs:element name="Forms">
<xs:complexType>
<xs:all>
<!--Included
Mandatory Forms-->
<xs:element
ref="RR_SF424:RR_SF424"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element
ref="footer:GrantSubmissionFooter"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Thanks,
S
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.