XForms capabilities - "editing" an XML file

Discussion in 'XML' started by Victor Engmark, Apr 2, 2004.

  1. I am quite new to XForms, but I need to do a feasibility study to see
    whether a system I'm supposed to make can be done without any scripting
    or programming language (to make it simple and not need any installation
    except for an Xforms reader). The problem is, from what I've read, I
    cannot find clear answers to whether XForms can do everything it will
    need to...

    The challenges are as follows:
    - One input.xml file is generated by selecting rather a lot of data from
    a database [1]
    - The XForm must be able to display only a subset of this data,
    according to an arbitrary search string (this could perhaps be an XPath
    expression, but should be "human-readable" for non-techies)
    - Generally speaking, the search would have to be able to display any
    number of levels of element contents (no elements have mixed contents)
    - For example, the search page would prompt to choose any of "slots",
    "jobs", or "documents", the number of levels, and type an ID (with
    wildcards) which the elements must match to be displayed in the results page
    - The XForm must be able to generate "ref" attributes dynamically (by
    combining two values from the input.xml for each "ref"), e.g. like
    ref="slot_QBBI_.A12R1"
    - When submitting, the XForm must overwrite _only_ the subset of
    input.xml which was displayed (to avoid data loss)

    Any help would be greatly appreciated!

    --
    Victor Engmark

    [1] Example XML:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <data>
    <slot>
    <id>QBBI_.A12R1</id>
    <description>Interconnection MB-MB</description>
    <type></type>
    <dcumStart>455.9407</dcumStart>
    <otherId>QBBI_A12R1=RI18</otherId>
    <parent></parent>
    <item></item>
    <equipment></equipment>
    <comment></comment>
    <createdOn>2004-02-03</createdOn>
    <createdBy>MTF</createdBy>
    <job>
    <id>10559068</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    <job>
    <id>10559069</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    </slot>

    <slot>
    <id>QBBI_.A13R1</id>
    <description>Interconnection MB-MB</description>
    <type></type>
    <dcumStart>509.3907</dcumStart>
    <otherId>QBBI_A13R1=RI18</otherId>
    <parent></parent>
    <item></item>
    <equipment></equipment>
    <comment></comment>
    <createdOn>2004-02-03</createdOn>
    <createdBy>MTF</createdBy>
    <job>
    <id>10559079</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    <job>
    <id>10559080</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    <job>
    <id>10559081</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    </job>
    <job>
    <id>10559085</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    <job>
    <id>10559086</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    <job>
    <id>10559087</id>
    <status>Pending</status>
    <result></result>
    <phase></phase>
    <evmId></evmId>
    <responsible></responsible>
    <providedBy></providedBy>
    <executedBy></executedBy>
    <actualStartDate></actualStartDate>
    <actualEndDate></actualEndDate>
    <comment></comment>
    </job>
    </job>
    <document>
    <edmsId>ACL609040010</edmsId>
    <file>blah.txt</file>
    <nc>true</nc>
    </document>
    <document>
    <edmsId>ACR108710000</edmsId>
    <file></file>
    <nc></nc>
    </document>
    <document>
    <edmsId>LHC-HQB-CA-0001</edmsId>
    <file></file>
    <nc></nc>
    </document>
    </slot>
    </data>
    Victor Engmark, Apr 2, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor Engmark
    Replies:
    0
    Views:
    418
    Victor Engmark
    Apr 14, 2004
  2. inquirydog

    recursive xml and xforms?

    inquirydog, Sep 18, 2004, in forum: XML
    Replies:
    0
    Views:
    492
    inquirydog
    Sep 18, 2004
  3. arti
    Replies:
    0
    Views:
    559
  4. Brian

    XML Schema to XForms

    Brian, Mar 24, 2005, in forum: XML
    Replies:
    0
    Views:
    537
    Brian
    Mar 24, 2005
  5. William Gill

    Html forms, xml and Xforms?

    William Gill, Jul 7, 2007, in forum: HTML
    Replies:
    0
    Views:
    416
    William Gill
    Jul 7, 2007
Loading...

Share This Page