OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook] DocBook HTML Forms


Hello again,

Having looked though the document linked to previously I revisited
this problem. Taking the example directly from [1] and validating
using "xmllint" and either "docbook.rng" or "dbforms.rng" from the
most bleeding edge version of DocBook NG (Which seems to be "PTO" [2])
I only get the following output:

------------------------------------------
<?xml version="1.0"?>
<article xmlns="http://docbook.org/ns/docbook";
xmlns:html="http://www.w3.org/1999/xhtml";>
<title>Example html:form</title>

<html:form action="http://www.example.org/cgi-bin/dosomething";>
<!-- this is a really crude form -->
<para>id: <html:input name="id"/></para>
<para>url: <html:input name="url"/></para>
<para>title: <html:input name="title"/></para>
<para>excerpt: <html:input name="excerpt"/></para>
<para>blogname: <html:input name="blog_name"/></para>
<html:input type="submit"/>
</html:form>

</article>
test.xml:5: element form: Relax-NG validity error : Did not expect
element form there
test.xml:5: element form: Relax-NG validity error : Expecting element
example, got form
test.xml:5: element form: Relax-NG validity error : Expecting element
bridgehead, got form
test.xml:5: element form: Relax-NG validity error : Expecting element
annotation, got form
test.xml:5: element form: Relax-NG validity error : Element article
failed to validate content
test.xml fails to validate
------------------------------------------

For your reference, the command I am using is:

$ xmllint --relaxng ~/docbook/schema/docbook.rng test.xml

Why does this not validate against the RELAX NG Schema? Or am I
expecting too much at this early stage of DocBook NG's life?

Thanks again,
Noah

[1] http://www.docbook.org/tdg5/en/html/html.form.html
[2] http://www.docbook.org/docbook-ng/pto/index.html

--
"Creativity can be a social contribution, but only in so
far as society is free to use the results." - R. Stallman


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]