Hello Justin,
We tried this approach before posting our initial question, but were unable to get it working. It may just be that my limited XSD and namespace knowledge is preventing me from getting it right, and that I need an example to work off of.
We are generating the XSD from an example instance XML, and then using JAXB to generate classes based on the resulting schema. These generated classes are used to populate the XML that will eventually be bound to the XDP to produce a PDF.
I think one of our main hurdles is the fact that we can't find the XFA XSD online anywhere. Do you have a copy of it?
Anyway, if it's not too much of an inconvenience, could you please post an example XDP snippet that you are using to bind an image with. I would imagine that it is a 'field' element with a nested 'image' element that has 'href' and 'contentType' attributes, but I would like to confirm this.
???
Also, could you please post more context for the 'imageData' element in the XSD, so that I can compare it to my solution. More specifically, I guess I'm looking for the XSD snippet showing an element containing an 'imageData' element. The only other thing I can think of that I might be doing wrong in the XSD, is the XFA namespace and XSD import/include, so an example of that would be much appreciated as well.
Thank-you for taking the time to respond to my original post.
--diana (posting as Kevin)