DeepBlueCLtd / Fi3ldMan

Field Service Manual with advanced data exploitation
https://deepbluecltd.github.io/Fi3ldMan/
Apache License 2.0
1 stars 1 forks source link

Introduce `image` element in `class` #27

Closed IanMayo closed 1 year ago

IanMayo commented 1 year ago

Almost all class instances have a block of images.

The pages start with 3 images presented in a horizontal row at the top, though others may be present later on.

We should introduce an optional list of images at the top of the class element.

I guess we could have a compulsory images element after summary, but then the children are optional. Actually - I like this approach, since the placeholder for the images will always be there when creating a new document.

maybe we should do the same for propulsion, signatures, remarks?

brahnavank commented 1 year ago
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE class SYSTEM "../../../dtd/class.dtd">
<class id="unit_a">
    <title>Unit_a</title>
    <!-- compulsory -->
    <images>
        <!-- optional -->
        <image href="images/unit_db_2.jpg" align="left"></image>
        <!-- optional -->
        <image href="images/unit_db_2.jpg" align="left"></image>
        <!-- optional -->
        <image href="images/unit_db_2.jpg" align="left"></image>
    </images>
    <body>
        <summary>
            <property>
                <proptype>Drive</proptype>
                <propvalue>4 x V8 Diesel</propvalue>
            </property>
            <property>
                <proptype>Mode</proptype>
                <propvalue>DDA/C</propvalue>
            </property>
            <property>
                <proptype>Shaft x Blade</proptype>
                <propvalue>2 * 6</propvalue>
            </property>
            <property>
                <proptype>R:R</proptype>
                <propvalue>22.4:1</propvalue>
            </property>
            <property>
                <proptype>Max Speed</proptype>
                <propvalue>12</propvalue>
            </property>
            <property>
                <proptype>Av TPK</proptype>
                <propvalue>4.4</propvalue>
            </property>
        </summary>
        <!-- compulsory -->
        <images>
            <!-- optional -->
            <image href="images/unit_db_2.jpg" align="left"></image>
            <!-- optional -->
            <image href="images/unit_db_2.jpg" align="left"></image>
        </images>
        <signatures>
            <title>Signature</title>
            <table>
                <tgroup cols="4">
                    <thead>
                        <row>
                            <entry>Source</entry>
                            <entry>Ratio/Freq</entry>
                            <entry>Harmonics</entry>
                            <entry>Remarks</entry>
                        </row>
                    </thead>
                    <tbody>
                        <row>
                            <entry>DDA</entry>
                            <entry>12.3</entry>
                            <entry>H3-5</entry>
                            <entry>Dominant in cold weather</entry>
                        </row>
                        <row>
                            <entry>FGAR</entry>
                            <entry>22-45</entry>
                            <entry>H2</entry>
                            <entry>Only once warm-up complete</entry>
                        </row>
                    </tbody>
                </tgroup>
            </table>
        </signatures>

        <propulsion>
            <title>Propulsion</title>
            <p> some narrative content, including a table of varying structure. Plus diagrams,
                links, etc </p>
        </propulsion>

        <remarks>
            <title>Remarks</title>
            <span>
                <ol>
                    <li>Only introduced since summer 2013</li>
                    <li>Similar to unit_x, but with cheaper components</li>
                    <li>Can take 30 minutes to warm up</li>
                    <li>Be wary of unshielded 440/480V power line.</li>
                </ol>
                <p> More amplifying remarks </p>
            </span>
        </remarks>
    </body>
</class>