users@jaxb.java.net

SCD and custom elements

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Mon, 18 Jun 2007 09:07:04 +0200

Hi.

I'm trying to use SCD to attach my own customization elements to classes and
properties.

This works:

    <jaxb:bindings schemaLocation="schema.xsd" node="/xs:schema">
        <jaxb:bindings node="xs:complexType[@name='PurchaseOrderType']"-->
            <hj:table name="po"/>
        </jaxb:bindings>
    </jaxb:bindings>


This does not:

    <jaxb:bindings scd="x-schema::">
        <jaxb:bindings scd="~PurchaseOrderType">
            <hj:table name="po"/>
        </jaxb:bindings>
    </jaxb:bindings>


I get:

[error] XJC while parsing schema(s)
file:/.../src/main/resources/bindings.xjb[13,25]:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of
element 'hj:table'.

Any ideas why and what can be done? I'd teally love to use the SCD.

Bye.
/lexi