~ubuntu-branches/ubuntu/trusty/gnome-doc-utils/trusty

« back to all changes in this revision

Viewing changes to doc/mallard/C/mal_block_p.page

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-06-15 11:03:13 UTC
  • mfrom: (1.1.24 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615110313-b4vn2m00muam19tc
Tags: 0.17.1-0ubuntu1
* New upstream release: (LP: #387210)
  - Integrated Mallard support
  - Fix file-not-found warnings from config.status (Christian Persch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<page xmlns="http://projectmallard.org/1.0/"
 
2
      type="topic"
 
3
      id="mal_block_p">
 
4
 
 
5
<info>
 
6
  <revision version="0.1" date="2009-05-28" status="review"/>
 
7
 
 
8
  <credit type="author">
 
9
    <name>Shaun McCance</name>
 
10
    <email>shaunm@gnome.org</email>
 
11
  </credit>
 
12
  <copyright>
 
13
    <year>2008-2009</year>
 
14
    <name>Shaun McCance</name>
 
15
  </copyright>
 
16
 
 
17
  <include href="legal.xml" xmlns="http://www.w3.org/2001/XInclude" />
 
18
 
 
19
  <desc>Create a simple paragraph of text.</desc>
 
20
</info>
 
21
 
 
22
<title>Paragraphs</title>
 
23
 
 
24
<synopsis><code mime="application/relax-ng-compact-syntax">
 
25
mal_block_p = element p {
 
26
  attribute style { xsd:NMTOKENS } ?,
 
27
  attribute * - (mal:* | local:*) { text } *,
 
28
 
 
29
  <link xref="mal_inline">mal_inline</link>
 
30
}
 
31
</code></synopsis>
 
32
 
 
33
<p>The most basic block-level element in Mallard is the <code>p</code>
 
34
element.  The <code>p</code> element creates a paragraph in the formatted
 
35
output.</p>
 
36
 
 
37
 
 
38
<!-- BEGIN notes -->
 
39
<section id="notes">
 
40
  <title>Notes</title>
 
41
  <list>
 
42
    <item><p>The <code>p</code> element can contain a mixture of text and
 
43
    any <link xref="mal_inline">general inline elements</link>.</p></item>
 
44
 
 
45
    <item><p>The <code>p</code> element can occur in any
 
46
    general block context, including inside
 
47
    <link xref="mal_page">pages</link>, <link xref="mal_section">sections</link>,
 
48
    and certain <link xref="mal_block">block elements</link>.</p></item>
 
49
 
 
50
    <item><p>The <code>style</code> attribute takes a space-separated list of
 
51
    style hints.  Processing tools should adjust their behavior according to
 
52
    those style hints they understand.</p></item>
 
53
 
 
54
    <item><p>The <code>p</code> element can have attributes from external
 
55
    namespaces.  See <link xref="mal_external"/> for more information
 
56
    on external-namespace attributes.</p></item>
 
57
  </list>
 
58
</section>
 
59
<!-- END notes -->
 
60
 
 
61
 
 
62
<!-- BEGIN examples -->
 
63
<section id="examples">
 
64
  <title>Examples</title>
 
65
 
 
66
  <p>Create a simple paragraph:</p>
 
67
 
 
68
  <example>
 
69
    <code><![CDATA[
 
70
<p>The most basic block-level element in Mallard is the <code>p</code>
 
71
element.  The <code>p</code> element creates a paragraph in the formatted
 
72
output.</p>]]></code>
 
73
    <p>The most basic block-level element in Mallard is the <code>p</code>
 
74
    element.  The <code>p</code> element creates a paragraph in the formatted
 
75
    output.</p>
 
76
  </example>
 
77
</section>
 
78
<!-- END examples -->
 
79
 
 
80
 
 
81
<!-- BEGIN processing -->
 
82
<section id="processing">
 
83
  <title>Processing Expectations</title>
 
84
  <p>Paragraphs are displayed as block elements, with their child elements
 
85
  interpreted as inline elements.  In on-screen media, paragraphs generally
 
86
  have padding above and below them to separate them from the surrounding
 
87
  block content.  In print media, the first line of each paragraph has
 
88
  traditionally been indented.</p>
 
89
</section>
 
90
<!-- END processing -->
 
91
 
 
92
 
 
93
<!-- BEGIN docbook -->
 
94
<section id="docbook">
 
95
  <title>Comparison to DocBook</title>
 
96
  <p>The <code>p</code> element in Mallard appears to be equivalent to to the
 
97
  <code href="http://www.docbook.org/tdg/en/html/para.html">para</code> element
 
98
  in DocBook.  While both elements create a paragraph in the formatted output,
 
99
  the <code>p</code> element in Mallard is actually much more restrictive, as it
 
100
  does not permit nested block content.  In this regard, it is actaully similar
 
101
  to the <code href="http://www.docbook.org/tdg/en/html/simpara.html">simpara</code>
 
102
  element in DocBook.</p>
 
103
</section>
 
104
<!-- END docbook -->
 
105
 
 
106
</page>