• [^] # Re: /proc

    Posté par . En réponse au journal Basculer l'informatique en tout-XML?. Évalué à 10.

    et reimplémenter GNU en GNUX,

    $ <command>x-ls</comman>

    <?xml version="1.0"?>
    <gnux>
    <command name="ls" mode="output">
    <cookie>ETCHYFDJOSGFCACGKRTDCHH</cookie>
    <file date="3245543" rights="rw-r--r--" size="23456">
    <name>my-db.dia</name>
    </file>
    <file date="234564" rights="rw-r--r--" size="903455">
    <name>comptes.gnumeric</name>
    </file>
    <file date="3245543" rights="rw-r--r--" size="23456">
    <name>lettre3.sxw</name>
    </file>
    </command>
    </gnux>


    $ <command output-mode="good-old-gnu">x-ls</command>

    <?xml version="1.0"?>
    <gnux>
    <parsing-error>
    <cookie>DCJDJDDFHVFGHDBHJBGFKBHKVFDGF</cookie>
    <message type="error">
    <error>command: unknown property</error>
    </message>
    </parsing-error>
    </gnux>


    $ Grrrr....

    <?xml version="1.0"?>
    <gnux>
    <command name="Grrrr...." mode="output">
    <cookie>SRDTCUJKCGUJGCHTFJDFGCHYFJCFJGFJFGKVJF</cookie>
    <message type="error">
    <shell>bashx</shell>
    <error>command not found</error>
    </message>
    </command>
    </gnux>


    $ <command>x-ls</comman> | xsltproc good-old-gnu.xsl

    my-db.dia
    comptes.gnumeric
    lettre3.sxw

    :)