[Openstack-docs] Validating docbook with wadl:resource ?

Andreas Jaeger aj at suse.com
Sun Nov 24 21:39:25 UTC 2013


If I validate file api-ref-orchestration.xml from
api-site/api-ref/src/docbkx with:

$xmllint  --xinclude --noout --noent --relaxng
"http://docbook.org/xml/5.1CR1/rng/docbookxi.rng" api-ref-orchestration.xml

It errors with:
api-ref-orchestration.xml:22: element info: Relax-NG validity error :
Element book has extra content: info
api-ref-orchestration.xml:21: element book: Relax-NG validity error :
Did not expect element book there
api-ref-orchestration.xml:21: element book: Relax-NG validity error :
Expecting element section, got book
api-ref-orchestration.xml:21: element book: Relax-NG validity error :
Expecting element audiodata, got book
api-ref-orchestration.xml:21: element book: Relax-NG validity error :
Expecting element example, got book
api-ref-orchestration.xml fails to validate

If I uncomment these lines, the file validates:
    <wadl:resources
      href="../wadls/orchestration-api/src/v1/orchestration-api.wadl"
      xmlns:wadl="http://wadl.dev.java.net/2009/02"/>

What's the proper way to validate the xml file?

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Openstack-docs mailing list