Search code examples
pdfspecificationsdtdxfa

Where can I find XFA specs or DTD/schema?


I have a hard time finding specifications or a DTD, RNG, or XSD for XFA.

Any hint where to find that information?


Solution

  • I found a copy of the 3.3 Spec here...

    http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.364.2157&rep=rep1&type=pdf

    Pages 1554-1555

    The XFA schemas are written in the language RELAX: Next Generation (RNG) which is described in RELAX-NG. XFA schemas are written in this language rather than the more usual XML-Schema 1.0 because XFA allows free ordering in situations where XML-Schema cannot support it. ... The schemas are included as file attachments in the PDF form of this document. If you are viewing a hard copy, obtain the PDF file from the Adobe website at http://adobe.com/go/xfa_specifications.

    note the xfa specifications link does not work, nor does goolge.com/archive.org have it cached.

    Files in the specification

    1. config.rng
      • configuration
    2. connectionset.rng
      • connections to web services
    3. data.rng
      • user data portion of the dataSets packet
    4. dataDescription.rng
      • data description portion of the dataSets packet
    5. localeset.rng
      • locale definitions
    6. pdf.rng
      • accompanying PDF
    7. sourceset.rng
      • connections to databases
    8. stylesheet.rng
      • XSLT stylesheet(s) for custom transformation of data and/or the template
    9. template.rng
      • template
    10. xdp.rng
      • container for everything else
    11. xfdf.rng
      • annotations
    12. xmldsig-core-schema.rng
      • signing control

    I'm not sure what your goal is but I wouldn't be investing much time in XFA. It's been removed from the PDF 2.0 specification.