users@jaxb.java.net

xsd bindings regex

From: Mark Bastian <markbastian_at_gmail.com>
Date: Tue, 24 Jun 2008 08:46:40 -0600

I have a schema with several elements starting with the underscore
character. Is it possible to do something like this in a bindings file to
replace all of them with a particular character (say, the letter I to
indicate an interface):

    <bindings schemaLocation="myxsd.xsd">
        <bindings
            node="/xsd:schema/xsd:element[starts-with(@name,'_')]">
        <class name="I*" />
    </bindings>
    </bindings>

The above snippet will match all the nodes with leading underscores, but
doesn't perform a capture group or do a replace. I am at a loss as to how
to do this and I am sure if it is possible someone here knows how to do it
right away.

Thanks!