Sajat dtd es dsl kezdetleges valtozatai.
authorbeckerjc
Mon, 23 Feb 2004 16:38:49 +0000
changeset 1232d1da2e1644a
parent 122 0a60a10f43ac
child 124 8d24100ad408
Sajat dtd es dsl kezdetleges valtozatai.
doc-docbook/src/etik-ol-html.dsl
doc-docbook/src/etik-ol.dtd
doc-docbook/src/xml/graph-classes.xml
doc-docbook/src/xml/osztaly-forma.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc-docbook/src/etik-ol-html.dsl	Mon Feb 23 16:38:49 2004 +0000
     1.3 @@ -0,0 +1,102 @@
     1.4 +<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
     1.5 +<!ENTITY dbstyle PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
     1.6 +]>
     1.7 +
     1.8 +<style-sheet>
     1.9 +<style-specification use="docbook">
    1.10 +<style-specification-body>
    1.11 +
    1.12 +(element etik:class
    1.13 +            (process-children))
    1.14 +
    1.15 +(element (etik:class etik:name)
    1.16 +  (make element gi: "H2"
    1.17 +    (process-children)))
    1.18 +
    1.19 +(element (etik:class etik:description)
    1.20 +  (make sequence
    1.21 +    (make element gi: "H3"
    1.22 +	  (literal "Description"))
    1.23 +    (make element gi: "P"
    1.24 +	  (process-children))))
    1.25 +
    1.26 +(element (etik:class etik:example)
    1.27 +  (make sequence
    1.28 +    (make element gi: "H3"
    1.29 +	  (literal "Example"))
    1.30 +    (make element gi: "P"
    1.31 +	  (process-children))))
    1.32 +
    1.33 +(element (etik:class etik:definition)
    1.34 +  (make sequence
    1.35 +    (make element gi: "H3"
    1.36 +	  (literal "Definition"))
    1.37 +    (make element gi: "P"
    1.38 +	  (process-children))))
    1.39 +
    1.40 +(element (etik:template_param etik:templ_name)
    1.41 +  (make element gi: "TD"
    1.42 +    (process-children)))
    1.43 +(element (etik:template_param etik:templ_description)
    1.44 +  (make element gi: "TD"
    1.45 +    (process-children)))
    1.46 +(element (etik:template_param etik:templ_requirement)
    1.47 +  (make element gi: "TD"
    1.48 +    (process-children)))
    1.49 +(element (etik:template_param etik:templ_default)
    1.50 +  (make element gi: "TD"
    1.51 +    (process-children)))
    1.52 +
    1.53 +(element (etik:template_params etik:template_param)  
    1.54 +  (make element gi: "TR"
    1.55 +	  (process-children)))
    1.56 +
    1.57 +(element (etik:class etik:template_params)
    1.58 +  (make sequence
    1.59 +    (make element gi: "H3"
    1.60 +	  (literal "Template parameters"))
    1.61 +    (make element gi: "TABLE"
    1.62 +	  attributes: (list
    1.63 +		       (list "CELLSPACING" "1")
    1.64 +		       (list "BORDER" "1"))
    1.65 + 	  (make element gi: "TR"
    1.66 +	    (make element gi: "TH"  (literal "Name"))
    1.67 +	    (make element gi: "TH"  (literal "Description"))
    1.68 +	    (make element gi: "TH"  (literal "Requirement"))
    1.69 +	    (make element gi: "TH"  (literal "Default")))
    1.70 +	    (process-children))))
    1.71 +
    1.72 +
    1.73 +(element (etik:member etik:m_name)
    1.74 +  (make element gi: "TD"
    1.75 +    (process-children)))
    1.76 +(element (etik:member etik:m_where_def)
    1.77 +  (make element gi: "TD"
    1.78 +    (process-children)))
    1.79 +(element (etik:member etik:m_description)
    1.80 +  (make element gi: "TD"
    1.81 +    (process-children)))
    1.82 +
    1.83 +(element (etik:members etik:member)  
    1.84 +  (make element gi: "TR"
    1.85 +	  (process-children)))
    1.86 +
    1.87 +(element (etik:class etik:members)
    1.88 +  (make sequence
    1.89 +    (make element gi: "H3"
    1.90 +	  (literal "Public members"))
    1.91 +    (make element gi: "TABLE"
    1.92 +	  attributes: (list
    1.93 +		       (list "CELLSPACING" "1")
    1.94 +		       (list "BORDER" "1"))
    1.95 + 	  (make element gi: "TR"
    1.96 +	    (make element gi: "TH"  (literal "Name"))
    1.97 +	    (make element gi: "TH"  (literal "Where defined"))
    1.98 +	    (make element gi: "TH"  (literal "Description"))
    1.99 +	    (process-children)))))
   1.100 +
   1.101 +
   1.102 +</style-specification-body>
   1.103 +</style-specification>
   1.104 +<external-specification id="docbook" document="dbstyle">
   1.105 +</style-sheet>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/doc-docbook/src/etik-ol.dtd	Mon Feb 23 16:38:49 2004 +0000
     2.3 @@ -0,0 +1,69 @@
     2.4 +<?xml version="1.0"?>
     2.5 +<!ENTITY % local.chapter.class "|etik:class">
     2.6 +<!ENTITY % local.section.class "|etik:class">
     2.7 +<!ENTITY % local.sect1.class "|etik:class">
     2.8 +<!ENTITY % local.sect2.class "|etik:class">
     2.9 +<!ENTITY % local.sect3.class "|etik:class">
    2.10 +
    2.11 +<!-- load DocBook -->                               
    2.12 +<!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN">
    2.13 +%DocBookDTD;
    2.14 +
    2.15 +
    2.16 +<!ELEMENT etik:class (
    2.17 +          etik:name,
    2.18 +          etik:category?,
    2.19 +          etik:description,
    2.20 +          etik:example,
    2.21 +          etik:definition,
    2.22 +          etik:template_params?,
    2.23 +          etik:members?,
    2.24 +          etik:notes*)>
    2.25 +<!ELEMENT etik:name           (#PCDATA)*>
    2.26 +<!ELEMENT etik:category       (#PCDATA|xref)*>
    2.27 +<!ELEMENT etik:description    (#PCDATA|para|xref)*>
    2.28 +<!ELEMENT etik:example        (#PCDATA|para|programlisting|xref)*>
    2.29 +<!ELEMENT etik:definition     (#PCDATA|xref)*>
    2.30 +
    2.31 +<!ELEMENT etik:template_params (etik:template_param+)> 
    2.32 +<!ELEMENT etik:template_param ( 
    2.33 +                                etik:templ_name,
    2.34 +                                etik:templ_description,
    2.35 +                                etik:templ_requirement,
    2.36 +                                etik:templ_default)>
    2.37 +
    2.38 +<!ELEMENT etik:templ_name                  (#PCDATA)*>
    2.39 +<!ELEMENT etik:templ_description           (#PCDATA|xref)*>
    2.40 +<!ELEMENT etik:templ_requirement           (#PCDATA|xref)*>
    2.41 +<!ELEMENT etik:templ_default               (#PCDATA|xref)*>
    2.42 +
    2.43 +<!ELEMENT etik:members  (etik:member)+>
    2.44 +<!ELEMENT etik:member    (etik:m_name, 
    2.45 +                          etik:m_where_def,
    2.46 +                          etik:m_description)>
    2.47 +
    2.48 +
    2.49 +<!ELEMENT etik:m_name                    (#PCDATA)*>
    2.50 +<!ELEMENT etik:m_where_def               (#PCDATA|xref)*>
    2.51 +<!ELEMENT etik:m_description             (#PCDATA|xref)*>
    2.52 +
    2.53 +<!ELEMENT etik:notes                     (#PCDATA|para|xref)*>
    2.54 +
    2.55 +
    2.56 +
    2.57 +<!-- Keep this comment at the end of the file
    2.58 +Local variables:
    2.59 +mode: xml
    2.60 +sgml-omittag:nil
    2.61 +sgml-shorttag:nil
    2.62 +sgml-namecase-general:nil
    2.63 +sgml-general-insert-case:lower
    2.64 +sgml-minimize-attributes:nil
    2.65 +sgml-always-quote-attributes:t
    2.66 +sgml-indent-step:2
    2.67 +sgml-indent-data:nil
    2.68 +sgml-exposed-tags:nil
    2.69 +sgml-local-catalogs:nil
    2.70 +sgml-local-ecat-files:nil
    2.71 +End:
    2.72 +-->
     3.1 --- a/doc-docbook/src/xml/graph-classes.xml	Mon Feb 23 16:34:08 2004 +0000
     3.2 +++ b/doc-docbook/src/xml/graph-classes.xml	Mon Feb 23 16:38:49 2004 +0000
     3.3 @@ -3,10 +3,9 @@
     3.4  
     3.5    <para>Valami leiras mondjuk a hierarchiarol.</para>
     3.6  
     3.7 -  <sect1>
     3.8 -    <title>Egy konkret osztaly</title>
     3.9      &osztaly-forma;
    3.10 -  </sect1>
    3.11 +
    3.12 +
    3.13  
    3.14  </chapter>
    3.15  
     4.1 --- a/doc-docbook/src/xml/osztaly-forma.xml	Mon Feb 23 16:34:08 2004 +0000
     4.2 +++ b/doc-docbook/src/xml/osztaly-forma.xml	Mon Feb 23 16:38:49 2004 +0000
     4.3 @@ -1,55 +1,111 @@
     4.4 -<!-- Az osztaly definialasahoz a docbook altal adott classsynopsys
     4.5 -     element nem tunik jonak, ugyhogy egyelore ime egy sima synopsys 
     4.6 -     blokk, majd meg alakul... -->
     4.7 +<etik:class>
     4.8 + <etik:name> 
     4.9 +  Osztaly neve
    4.10 + </etik:name>
    4.11  
    4.12 -<synopsis>
    4.13 -<![CDATA[
    4.14 -class Osztaly {
    4.15 -public:
    4.16 -  int x;
    4.17 + <etik:description>
    4.18 + Ez itt egy tobbsoros, tobb reszes leiras arrol, hogy altalanossagban
    4.19 + mire is jo ez az osztaly.  Ez itt egy tobbsoros, tobb reszes leiras
    4.20 + arrol, hogy altalanossagban mire is jo ez az osztaly.
    4.21 +<para>
    4.22 + Ez itt az uj bekezdese a leirasnak, mert elofordulhat, hogy tobb
    4.23 + bekezdesre erdemes tagolni az iromanyt.
    4.24 +</para>
    4.25 + </etik:description>
    4.26  
    4.27 -  Osztaly(int i = 5);
    4.28 + <etik:example>
    4.29 +  Gyakran hasznos egy peldan bemutatni a mukodest. A kovetkezo egy
    4.30 +  egyszeru kis szemleltetes arra, hogy ezt milyen konnyen es gyorsan
    4.31 +  lehet hasznalni:
    4.32 +<programlisting>
    4.33  
    4.34 -  virtual longlong metodus(double alfa, char* s);
    4.35 +struct eqstr
    4.36 +{
    4.37 +  bool operator()(const char* s1, const char* s2) const
    4.38 +  {
    4.39 +    return strcmp(s1, s2) == 0;
    4.40 +  }
    4.41 +};
    4.42 +
    4.43 +
    4.44 +void lookup(const map_type& Map, const char* str)
    4.45 +{
    4.46 +
    4.47  }
    4.48 -]]>
    4.49 -</synopsis>
    4.50  
    4.51 -<!-- Igy nezne ez ki docbook markup-pal: (a komplexitasan kivul az a 
    4.52 -     baj vele, hogy bugosra fordul: 
    4.53 - 
    4.54 -<classsynopsis language="C++">
    4.55 -  <ooclass>
    4.56 -    <classname>Osztaly neve</classname>
    4.57 -  </ooclass>
    4.58 +</programlisting>
    4.59 + </etik:example>
    4.60  
    4.61 -  <fieldsynopsis>
    4.62 -    <modifier>public</modifier>
    4.63 -    <type>int</type>
    4.64 -    <varname>x</varname>
    4.65 -  </fieldsynopsis>
    4.66 + <etik:definition>
    4.67 +Ez a definition szekcio arra van, hogy beleirjuk, hogy milyen fajlban
    4.68 +van definialva az aktualis osztaly.
    4.69 +Ez <xref linkend="tutorial"/> egy link a tutorialra.
    4.70 + </etik:definition>
    4.71  
    4.72 -  <constructorsynopsis>
    4.73 -    <methodparam>
    4.74 -      <parameter><type>int</type>i</parameter>
    4.75 -      <initializer>5</initializer>
    4.76 -    </methodparam>
    4.77 -  </constructorsynopsis>
    4.78 +<etik:template_params>
    4.79 +<etik:template_param>
    4.80 +<etik:templ_name>
    4.81 +T
    4.82 +</etik:templ_name>
    4.83 +<etik:templ_description>
    4.84 +Ez itt a T parameter. Ebben adod meg hogy milyen izekbol epitsunk kupacot.
    4.85 +</etik:templ_description>
    4.86 +<etik:templ_requirement>
    4.87 +Legyen implementalva neki az osszehasonlito operator.
    4.88 +</etik:templ_requirement>
    4.89 +<etik:templ_default>
    4.90 +Az nincs
    4.91 +</etik:templ_default>
    4.92 +</etik:template_param>
    4.93 +<etik:template_param>
    4.94 +<etik:templ_name>
    4.95 +Af
    4.96 +</etik:templ_name>
    4.97 +<etik:templ_description>
    4.98 +Az Af template parameter is egy olyan vacak, ami a generikussaghoz kell.
    4.99 +</etik:templ_description>
   4.100 +<etik:templ_requirement>
   4.101 +Af szarmazzon az elemi osztalyokbol.
   4.102 +</etik:templ_requirement>
   4.103 +<etik:templ_default>
   4.104 +0
   4.105 +</etik:templ_default>
   4.106 +</etik:template_param>
   4.107 +</etik:template_params>
   4.108  
   4.109 -  <methodsynopsis>
   4.110 -    <modifier>virtual</modifier>
   4.111 -    <type>longlong</type>
   4.112 -   <methodname>a_metodus</methodname>
   4.113 -    <methodparam>
   4.114 -      <parameter><type>double</type>alfa</parameter>
   4.115 -    </methodparam>
   4.116 -    <methodparam>
   4.117 -      <parameter><type>char*</type>s</parameter>
   4.118 -    </methodparam>
   4.119 -  </methodsynopsis>
   4.120  
   4.121 -</classsynopsis>
   4.122 --->
   4.123 +<etik:members>
   4.124 +<etik:member>
   4.125 +<etik:m_name>
   4.126 +iterator
   4.127 +</etik:m_name>
   4.128 +<etik:m_where_def>
   4.129 +container
   4.130 +</etik:m_where_def>
   4.131 +<etik:m_description>
   4.132 +Arra valo, hogy vegigiteraljunk vele.
   4.133 +</etik:m_description>
   4.134 +
   4.135 +</etik:member>
   4.136 +<etik:member>
   4.137 +<etik:m_name>
   4.138 +void push_back(const T&)
   4.139 +</etik:m_name>
   4.140 +<etik:m_where_def>
   4.141 +Back Insertion Sequence
   4.142 +</etik:m_where_def>
   4.143 +<etik:m_description>
   4.144 +Egy uj element tesz e vegere.
   4.145 +</etik:m_description>
   4.146 +
   4.147 +</etik:member>
   4.148 +</etik:members>
   4.149 +
   4.150 +
   4.151 +
   4.152 +
   4.153 +</etik:class>
   4.154 +
   4.155  
   4.156  <!-- Keep this comment at the end of the file
   4.157  Local variables:
   4.158 @@ -62,7 +118,7 @@
   4.159  sgml-always-quote-attributes:t
   4.160  sgml-indent-step:2
   4.161  sgml-indent-data:nil
   4.162 -sgml-parent-document:("graph-classes.xml" "sect1" "classsynopsis")
   4.163 +sgml-parent-document:("graph-classes.xml" "sect1" "etik:class")
   4.164  sgml-exposed-tags:nil
   4.165  sgml-local-catalogs:nil
   4.166  sgml-local-ecat-files:nil