Skip to content

Commit

Permalink
moving the namespace definition in the struct chapter, in the 'svg' e…
Browse files Browse the repository at this point in the history
…lement. Removing note about the absence of DTD
  • Loading branch information
cconcolato committed Aug 26, 2015
1 parent c62b450 commit 96e5189
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion master/definitions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@
<term name='initial value' href='types.html#TermInitialValue'/>
<term name='initial values' href='types.html#TermInitialValue'/>
<term name='SVG elements' href='struct.html#TermSVGElements'/>
<term name='SVG namespace' href='intro.html#Namespace'/>
<term name='SVG namespace' href='struct.html#Namespace'/>
<term name='SVG user agent' href='struct.html#TermUserAgent'/>
<term name='SVG user agents' href='struct.html#TermUserAgent'/>
<term name='SVG viewport' href='coords.html#TermSVGViewport'/>
Expand Down
11 changes: 0 additions & 11 deletions master/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ <h2 id="MIMEType">SVG MIME type and file name extensions</h2>
</div>

<div>
<h2 id="Namespace">SVG namespace and DTD</h2>

<p>The SVG 2 namespace is <code>http://www.w3.org/2000/svg</code>,
which is the same as for earlier versions of SVG.</p>
<p>When using the XML syntax, a namespace declaration is required. When
using the HTML syntax, the namespace is provided automatically by the parser.</p>

<p>A DTD is not provided in this specification, as the use of DTDs for
validating documents is known to be problematic. In particular, DTDs
do not handle namespaces gracefully and the range of constraints they can express is limited. It is recommended that authors
<em>do not include</em> a DOCTYPE declaration in SVG documents.</p>

<h2 id="W3CCompatibility">Compatibility with other standards efforts</h2>

Expand Down
13 changes: 11 additions & 2 deletions master/struct.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h3 id="NewDocumentOverview">Overview</h3>
<p id="EmbeddedSVGExample">The following example shows simple SVG
content embedded inline as a fragment within a parent XML document.
Note the use of XML namespaces to indicate that the <a>'svg'</a> and
<a>'ellipse'</a> elements belong to the SVG namespace:</p>
<a>'ellipse'</a> elements belong to the <a>SVG namespace</a>:</p>

<pre class='xml'><![CDATA[
<?xml version="1.0" standalone="yes"?>
Expand Down Expand Up @@ -68,11 +68,18 @@ <h3 id="NewDocumentOverview">Overview</h3>
<a href="coords.html#EstablishingANewSVGViewport">Establishing a new
viewport</a>.)</p>

<h3 id="Namespace">Namespace</h3>

<p>When SVG is parsed as a XML, for compliance with the
<a href="http://www.w3.org/TR/2006/REC-xml-names-20060816/"><cite>Namespaces in XML</cite></a> Recommendation
[<a href="refs.html#ref-XML-NS">XML-NS</a>], an SVG namespace
declaration must be provided so that all SVG elements are identified
as belonging to the SVG namespace. The following are possible ways to
as belonging to the SVG namespace.</p>

<p>The SVG 2 namespace is <code>http://www.w3.org/2000/svg</code>,
which is the same as for earlier versions of SVG.</p>

<p>The following are possible ways to
provide a namespace declaration. An <span class='attr-name'>'xmlns'</span>
attribute without a namespace prefix could be specified on an
<a>'svg'</a> element, which means that SVG is the default namespace
Expand Down Expand Up @@ -100,6 +107,8 @@ <h3 id="NewDocumentOverview">Overview</h3>
information, refer to the <a href="http://www.w3.org/TR/2006/REC-xml-names-20060816/"><cite>Namespaces in XML</cite></a> Recommendation
[<a href="refs.html#ref-XML-NS">XML-NS</a>].</p>

<p>When using the HTML syntax, the namespace is provided automatically by the parser.</p>

<p class="issue" data-issue="1">This section should talk about how a document's behavior
is defined in terms of the DOM, and also explain how the HTML parser can
create SVG fragments.</p>
Expand Down

0 comments on commit 96e5189

Please sign in to comment.