Jump to content

Talk:Wikipedia DTD: Difference between revisions

Add topic
From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Evan (talk | contribs)
Need a rationale for creating a custom DTD
Flominator (talk | contribs)
m moved
 
(15 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{MovedToMediaWiki}}
''There was I discussion on general aspects of what should be marked up in wikipedia (names, places, dates/times...). since [[Wikipedia DTD]] is about an XML representation of the current syntax I moved it to [[Talk:Simple ideology of Wikitax]]'' --[[User:Nichtich|Nichtich]] 01:36 Feb 7, 2003 (UTC)
----
''&lt;nowiki>&lt;![CDATA[do [not] parse <this>]]>&lt;/nowiki>''

:I've never been quite clear on how CDATA sections work. If my data includes a raw "]]>", how do I encode it? --[[User:Brion VIBBER|Brion VIBBER]] 06:44 Jan 23, 2003 (UTC)

:*<nowiki><![CDATA[just]]></nowiki>''']]&amp;gt;'''<nowiki><![CDATA[split]]></nowiki>

----

''<link system="wiki" href="image:Wiki.png"/>''

Image links are functionally different from regular wiki links, as they embed images. It would be best to use a distinct tag. --[[User:Brion VIBBER|Brion VIBBER]] 07:03 Jan 23, 2003 (UTC)

:You're right. I suggest:

Link to the '''page''' of the image:
<tt><nowiki>[[:image:Wiki.png]]
<link system="wiki" href="image:Wiki.png"/></nowiki></tt>

Embed image/media/file/...

<tt><nowiki>[[image:Wiki.png]] <media href="image:Wiki.png"/></nowiki></tt>

I prefer <tt>media</tt> because we only embed media objects and
<tt>embed</tt> could mean something link "embed the content of another page".
See also discussion on special pages below.

----

''<nowiki><link system="wiki" href="Wikipedia FAQ"/></nowiki>''
...
''<nowiki><url href="http://www.wikipedia.org"/></nowiki>''
...
''<nowiki><mail to="webmaster@wikipedia.org"/></nowiki>''

These seem overcomplicated. Wouldn't it be simpler (in an XML way) to use the same tag for all links, and just have a wiki-specific URI? eg:
*local wiki link: [[Main Page]]
**<link href="wiki:Main_Page">Main Page</link>
*interwiki link: [[MeatBall:CommunityExpectation]]
**<link href="wiki://MeatBall/CommunityExpectation">MeatBall:CommunityExpectation</link>
*interlanguage link: <nowiki>[[eo:DTD de Vikipedio]]</nowiki>
**<link href="wiki://EsperantoWikipedia/DTD_de_Vikipedio" rel="language" lang="eo" />
*remote non-wiki link: [http://slashdot.org/ Slashdot]
**<nowiki><link href="http://slashdot.org/">Slashdot</link></nowiki>
*ISBN: ISBN 0-201-89683-4
**<nowiki><link href="isbn:0201896834">ISBN 0-201-89683-4</link></nowiki>

Upon (possible) reconversion to wiki syntax, the parser could use the most efficient form of representation available in that particular wiki syntax for that type of link.

----

*No redundancy please
*An XML syntax should code information in tags and attributes. parsing strings is ugly and less efficient.
*The difference between interwiki links and local wiki links depends on the application. Try to edit <tt>test:baz</tt> since now it's a valid name but maybe there will be a "test"-wiki in the future.
*interlanguage links are a special topic. We could use a special tag: <pre><interlanguage href="eo:DTD_de_Vikipedio"/></pre>
*How about <tt>link system="url"</tt> for external links instead of <tt>url</tt> and <tt>email</tt>?

--[[User:Nichtich|Nichtich]] 22:34 Feb 2, 2003 (UTC)

It could be useful to code

<pre>User:Foo => <link system="wiki" space="user" href="Foo"/>
Talk:Bar => <link system="wiki" space="talk" href="Bar"/></pre>

and in other languages

<pre>Benutzer:Foo => <link system="wiki" space="user" href="Foo"/>
Diskussion:Bar => <link system="wiki" space="talk" href="Bar"/></pre>

But how to handle a page like:
<pre>Talk:User:Foo</pre>

Also possible (for instance in the german Wikipedia):

<pre>Diskussion:Talk:User:Foo</pre>

--[[User:Nichtich|Nichtich]] 21:59 Feb 2, 2003 (UTC)
----
===notes on paragraphs===
Manual Paragraphs with the <tt>p</tt> tag are pretty ugly to handle.
Try:

<pre><p>Hi! This is a paragraph

with an empty line in it.</p></pre>

You get:

<pre><p>Hi! This is a paragraph
<p>
with an empty line in it.</p>
</pre>

but the valid syntax is

<pre><p>Hi! This is a paragraph</p>
<p>with an empty line in it.</p></pre>

Why can't we just remove all invalid HTML-Tags? :-(


-----

IMHO the interlanguage-link would be better like
<pre><interlanguage lang="eo" href="DTD_de_Vikipedio"/></pre>

That way you give more information without the need of parsing
the content of href. [[User:Lothar Kimmeringer|Lothar Kimmeringer]] 02:37, 15 Sep 2003 (UTC)
----
How about a definition of the term DTD right up front as in this external link:<BR>
http://www.hyperdictionary.com/dictionary/Document+Type+Definition

== Need a rationale for creating a custom DTD ==

Why would we create and support a fit-to-purpose DTD, when everything we use in MediaWiki is already available in [http://www.oasis-open.org/docbook/xml/4.2/ DocBook XML] or even [http://nwalsh.com/docbook/simple/ Simplified DocBook]?

There are many excellent tools for converting Docbook XML to various other document formats -- HTML, RTF, PostScript and PDF. It's a well-accepted standard for document markup, and it would thus be useful for readers and for downstream publishers.

Creating a custom DTD would mean that we'd have to create processors from scratch. If DocBook (or another existing XML document format) meets our needs, what's the point? --[[User:Evan|Evan]] 00:43, 16 Dec 2003 (UTC)

Latest revision as of 11:18, 15 April 2008