<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:11pt; color:black">
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:11pt; color:black">I'll post a schema you can use tonight or tomorrow.<br>
<br>
Typed wtih thmubs.<br>
<br>
<span style="color:black">-----Original Message----- <br>
<b>From:</b> Andreas Jaeger [aj@suse.com]<br>
<b>Received:</b> Sunday, 24 Nov 2013, 3:41pm<br>
<b>To:</b> openstack-docs@lists.openstack.org [openstack-docs@lists.openstack.org]<br>
<b>Subject:</b> [Openstack-docs] Validating docbook with wadl:resource ?<br>
<br>
</span></span></div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">If I validate file api-ref-orchestration.xml from<br>
api-site/api-ref/src/docbkx with:<br>
<br>
$xmllint  --xinclude --noout --noent --relaxng<br>
"<a href="http://docbook.org/xml/5.1CR1/rng/docbookxi.rng">http://docbook.org/xml/5.1CR1/rng/docbookxi.rng</a>" api-ref-orchestration.xml<br>
<br>
It errors with:<br>
api-ref-orchestration.xml:22: element info: Relax-NG validity error :<br>
Element book has extra content: info<br>
api-ref-orchestration.xml:21: element book: Relax-NG validity error :<br>
Did not expect element book there<br>
api-ref-orchestration.xml:21: element book: Relax-NG validity error :<br>
Expecting element section, got book<br>
api-ref-orchestration.xml:21: element book: Relax-NG validity error :<br>
Expecting element audiodata, got book<br>
api-ref-orchestration.xml:21: element book: Relax-NG validity error :<br>
Expecting element example, got book<br>
api-ref-orchestration.xml fails to validate<br>
<br>
If I uncomment these lines, the file validates:<br>
    <wadl:resources<br>
      href="../wadls/orchestration-api/src/v1/orchestration-api.wadl"<br>
      xmlns:wadl="<a href="http://wadl.dev.java.net/2009/02"/">http://wadl.dev.java.net/2009/02"/</a>><br>
<br>
What's the proper way to validate the xml file?<br>
<br>
Andreas<br>
-- <br>
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi<br>
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany<br>
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)<br>
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126<br>
<br>
_______________________________________________<br>
Openstack-docs mailing list<br>
Openstack-docs@lists.openstack.org<br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
</div>
</span></font>
</body>
</html>