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

« back to all changes in this revision

Viewing changes to doc/mallard/C/mal_external.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_external">
 
4
 
 
5
<info>
 
6
  <link type="seealso" xref="mal_inline"/>
 
7
 
 
8
  <credit type="author">
 
9
    <name>Shaun McCance</name>
 
10
    <email>shaunm@gnome.org</email>
 
11
  </credit>
 
12
  <copyright>
 
13
    <year>2008</year>
 
14
    <name>Shaun McCance</name>
 
15
  </copyright>
 
16
 
 
17
  <revision version="0.1" date="2008-02-19" status="incomplete"/>
 
18
 
 
19
  <desc>Use elements and attributes from other namespaces in Mallard
 
20
  documents.</desc>
 
21
</info>
 
22
 
 
23
<title>External Namespaces</title>
 
24
 
 
25
<comment>
 
26
  <cite date="2008-12-01"><name>Shaun McCance</name></cite>
 
27
  <p>Add content</p>
 
28
</comment>
 
29
 
 
30
 
 
31
<!-- BEGIN attributes -->
 
32
<section id="attributes">
 
33
  <info>
 
34
    <title type="link">External Namespace Attributes</title>
 
35
  </info>
 
36
  <title>Attributes</title>
 
37
 
 
38
  <p>All elements in Mallard can have attributes from external namespaces.
 
39
  This can be used to clarify the meaning of an element in a particular
 
40
  context, to provide additional information to processing tools, or to
 
41
  embed richer semantic data in a document.</p>
 
42
 
 
43
  <p>For example, a translation tool might copy
 
44
  <link xref="mal_block_code">code blocks</link> directly into the translated
 
45
  document without presenting them to translators.  Some code blocks, however,
 
46
  may contain human-readable comments which should be translated.  In order to
 
47
  force translation tools to present these code blocks for translation, authors
 
48
  could use the <code>its:translate</code> attribute from the
 
49
  <link href="http://www.w3.org/TR/its/">Internationalization Tag Set</link>,
 
50
  as in the following:</p>
 
51
 
 
52
  <code><![CDATA[
 
53
<code xmlns:its="http://www.w3.org/2005/11/its" 
 
54
      its:version="1.0" its:translate="yes">
 
55
// This code block should be translated because it contains this comment.
 
56
some_code ()
 
57
</code>
 
58
]]></code>
 
59
 
 
60
  <p>Processing tools should ignore any attributes from external namespaces
 
61
  they do not understand.</p>
 
62
</section>
 
63
<!-- END attributes -->
 
64
 
 
65
 
 
66
<!-- BEGIN elements -->
 
67
<section id="elements">
 
68
  <info>
 
69
    <title type="link">External Namespace Elements</title>
 
70
  </info>
 
71
  <title>Elements</title>
 
72
</section>
 
73
<!-- END elements -->
 
74
 
 
75
</page>