Hi Mike and others,
I am a newbie, trying to create a webbased User Guide.
I am trying to make it interactive by making the user click on a drop down and read/learn of a command(s) and the options available with the command.
For Example:
User selects a command from a drop down a table appears below the drop down and shows some info about the command.
My issue is, when it comes to commands with subcommands.
I have a Directory structure for a Particular command as follows
----------------------------------- drive:\\mysxml_proj\objectgroup\testappsobjgroups. ditamap
The ditamap file will be renamed to xsl before publishing the webpage.
drive:\mysxml_proj\objectgroup\concept\intro.html and MainCommand.html
drive:\mysxml_proj\objectgroup\reference\MainComma ndAgentCommunity.xml and MainCommandAgentEnable.xml
where MainCommandAgentCommunit and MainCommandAgentEnable are subcommands.
-----------------------------------
So MainCommand will be part of a Dropdown, when user selects it and the command has subcommands, a new drop down will appear and if the user chooses subcommand 1 then he see the table below update accordingly.
How can I dynamically create Drop downs? I see the following page has something similar but its done with umbraco.
http://www.atagverwarming.nl/home.aspx
Please suggest.
Content of my xmls
Main Command:
-----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
"http://docs.oasis-open.org/dita/dtd/concept.dtd">
<concept id="MainCommand">
<title>MainCommand</title>
<conbody>
<p>This group contains parameters to configure the Protocol agent and trap
capabilities of BOARD. One instance of the group is allowed.</p>
<p>The BOARD Protocol agent supports the standard Stuff.</p>
<note>For BOARD, use this object with the config or getconfig
subcommands.</note>
</conbody>
</concept>
----------------------------------
Subcommand1:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
"http://docs.oasis-open.org/dita/dtd/reference.dtd">
<reference id="referencetopic">
<title>MainCommandAgentCommunity (Read/Write)</title>
<refbody>
<section><table>
<tgroup cols="2">
<tbody>
<row>
<entry><b>Description</b></entry>
<entry>Specifies the Protocol Community Name (identical to community
string) used for Protocol traps. The community string acts as a
password shared between different hosts over the network. This
community string value must match with that of the other hosts
for any kind of communication through Protocol.</entry>
</row>
<row>
<entry><b>Legal Values</b></entry>
<entry>A string of up to 31 characters.</entry>
</row>
<row>
<entry><b>Default</b></entry>
<entry>public</entry>
</row>
<row>
<entry><b>Example</b></entry>
<entry>This is an example.</entry>
</row>
</tbody>
</tgroup>
</table></section>
</refbody>
</reference>
------------------------------------------
Subcommand 2:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
"http://docs.oasis-open.org/dita/dtd/reference.dtd">
<reference id="referencetopic">
<title>MainCommandAgentEnable (Read/Write)</title>
<refbody>
<section><table>
<tgroup cols="2">
<tbody>
<row>
<entry><b>Description</b></entry>
<entry>Enables or disables the Protocol agent in BOARD or
BOARD.</entry>
</row>
<row>
<entry><b>Legal Values</b></entry>
<entry><ul>
<li>1 (TRUE)</li>
<li>0 (FALSE)</li>
</ul></entry>
</row>
<row>
<entry><b>Default</b></entry>
<entry>public</entry>
</row>
<row>
<entry><b>Example</b></entry>
<entry>NA</entry>
</row>
</tbody>
</tgroup>
</table></section>
</refbody>
</reference>
------------------------------------
-Ranga