unnecessary error for <userinput>
Posted: Mon Oct 31, 2011 11:27 am
I could be wrong, but the example below shows what I think is an unnecessary error.
(The text below is cut down from a larger document.)
<section> is a valid parent for <userinput> in XML, so it doesn't need to be within a <para>. Yet the <userinput> text is flagged as an error.
<chapter xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<title>On Windows</title>
<section>
<title>On Windows</title>
<para>From a console window, change to ....</para>
<userinput>cd [install_dir]</userinput>
<para>
where ...
</para>
<para>Then type:
<userinput>bin\blah.bat</userinput></para>
</section>
</chapter>
This error is only flagged sometimes (particularly with nested sections) - the example below doesn't flag an error, so I think this is an problem with oXygen.
<section>
<title>On Windows</title>
<para>From a console window, change to ....</para>
<userinput>cd [install_dir]</userinput>
<para>
where ...
</para>
<para>Then type:
<userinput>bin\blah.bat</userinput></para>
</section>
(The text below is cut down from a larger document.)
<section> is a valid parent for <userinput> in XML, so it doesn't need to be within a <para>. Yet the <userinput> text is flagged as an error.
<chapter xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xlink="http://www.w3.org/1999/xlink" >
<title>On Windows</title>
<section>
<title>On Windows</title>
<para>From a console window, change to ....</para>
<userinput>cd [install_dir]</userinput>
<para>
where ...
</para>
<para>Then type:
<userinput>bin\blah.bat</userinput></para>
</section>
</chapter>
This error is only flagged sometimes (particularly with nested sections) - the example below doesn't flag an error, so I think this is an problem with oXygen.
<section>
<title>On Windows</title>
<para>From a console window, change to ....</para>
<userinput>cd [install_dir]</userinput>
<para>
where ...
</para>
<para>Then type:
<userinput>bin\blah.bat</userinput></para>
</section>