[Openstack-docs] Validating docbook with wadl:resource ?
David Cramer
david.cramer at RACKSPACE.COM
Sun Nov 24 21:43:21 UTC 2013
I'll post a schema you can use tonight or tomorrow.
Typed wtih thmubs.
-----Original Message-----
From: Andreas Jaeger [aj at suse.com]
Received: Sunday, 24 Nov 2013, 3:41pm
To: openstack-docs at lists.openstack.org [openstack-docs at lists.openstack.org]
Subject: [Openstack-docs] Validating docbook with wadl:resource ?
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
_______________________________________________
Openstack-docs mailing list
Openstack-docs at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20131124/379bf0f0/attachment.html>
More information about the Openstack-docs
mailing list