Retourner au contenu associé (journal : Basculer l'informatique en tout-XML?)
Posté par grafit le 19 avril 2006 à 22:00. En réponse au journal Basculer l'informatique en tout-XML?. Évalué à 10.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: /proc
Posté par grafit . En réponse au journal Basculer l'informatique en tout-XML?. Évalué à 10.
$ <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
:)