users@jaxb.java.net

Custom XJC plugin

From: <aldibella_at_gmail.com>
Date: Tue, 6 Dec 2016 12:20:33 +0000 (UTC)

Hi,

I'm trying to write a plugin to help me with versioning schema . The
idea is to add 2 attributes to the <xs;schema> element like:

<xs:schema
        xmlns:version="http://mydomain/jaxb/version"
        version:current="2.0.0"
        version:supported=">=1.0.0 &amp; <=2.0.0"

I was able to create the plugin and to have it invoked by maven but I
can't figure out how to read version:current and version:supported
from:

public boolean run(Outline outline, Options opt, ErrorHandler
errorHandler ) throws SAXException

Am I missing something obvious?

Thanks,

Alex