sXMLBook基本サンプル
基本的なXML構造は以下のようになります。
<?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet href="sxmlbook.xsl" type="text/xsl" ?> <!DOCTYPE sxmlbook SYSTEM "sxmlbook.dtd"> <sxmlbook version="0.0" lang="ja"> <!-- ================================================================================ --> <info> <title>sXMLBook ドキュメント</title> <description>Simple XML Book Ver.0.0.0_0 ドキュメント</description> <release>$Id: sxmlbook.xml 95 2022-11-21 07:32:15Z sonohara $</release> <date>2007/05/01</date> <company>K.Sonohara</company> <homepage>https://www.e-software.company/</homepage> <copyright>Copyright (C) 2007 K.Sonohara All Right Reserved.</copyright> </info> <!-- ================================================================================ --> <index name="introduction"> <index name="summary"/> </index> <!-- ================================================================================ --> <item id="introduction"> <title>イントロダクション</title> </item> <!-- ================================================================================ --> <item id="summary"> <title>概要</title> <faq> <title>sXMLBookとは・・・</title> <text>XMLベースのドキュメントシステムです。</text> </faq> <text>複雑なHTMLなどリッチテキストを記載することなくリファレンスなどを容易に作成できます。</text> <text>単純なXMLで構成されているためプログラムからの生成が容易で逆にプログラムへの組み込みも容易です。</text> <text>よく似たシステムとしてxDocBookが存在しますがこちらは機能は豊富な分複雑です。</text> </item> </sxmlbook>