This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Markup of news in Website?
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 17 Apr 2004 13:21:43 +0200
- Subject: [docbook-apps] Re: Markup of news in Website?
- Cancel-lock: sha1:/sTsUUS4EHXBWstuIklumPy4z2c=
- Organization: Probably a good idea
- References: <87ptac2poi.fsf@dod.no> <003801c4214e$f251f680$1dc5c850@tati>
>>>>> "Sina K. Heshmati" <sina@khakbaz.com>:
> RSS might meet your requirement. It's already integrated into
> DocBook Website. Here bellow, I've written a step-by-step guide on
> how to call RSS feeds using DocBook Website. You just need to
> replace your own phrases instead of mine.
Thanx for the tip. This was exactly what I was looking for. I had a
bit of problem getting it to work though. The RSS 0.91 file I tried
to create by myself(*).
Your file didn't work either (I'm using xsltproc 1.1.2). I finally
ended up reading the rss.xsl file of Website 2.5.0. When I removed
the "rdf:" prefix of the "rdf:resource" attribute of <rdf:li>, it
worked.
So hacked up the RSS 0.91 DTD into something that rss.xsl will
accept. I've put it at the end of this message, for the curious.
- Steinar
(*) because that was the newest one I found a DTD for, and psgml plays
much nicer if it has a DTD.
<!--
Rich Site Summary (RSS) 0.91 official DTD, proposed.
RSS is an XML vocabulary for describing
metadata about websites, and enabling the display of
"channels" on the "My Netscape" website.
RSS Info can be found at http://my.netscape.com/publish/
XML Info can be found at http://www.w3.org/XML/
copyright Netscape Communications, 1999
Dan Libby - danda@netscape.com
Based on RSS DTD originally created by
Lars Marius Garshol - larsga@ifi.uio.no.
$Id: rss-0.91.dtd,v 1.4 2004/04/17 10:53:09 sb Exp $
-->
<!ELEMENT rdf:RDF (channel, item+)>
<!ATTLIST rdf:RDF
xmlns CDATA #FIXED "http://purl.org/rss/1.0/"
xmlns:dc CDATA #FIXED "http://purl.org/dc/elements/1.1/"
xmlns:rdf CDATA #FIXED "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<!ELEMENT channel (title | description | link | language | items | rating? | image? | textinput? | copyright? | pubDate? | lastBuildDate? | docs? | managingEditor? | webMaster? | skipHours? | skipDays?)*>
<!ELEMENT title (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT link (#PCDATA)>
<!ELEMENT dc:date (#PCDATA)>
<!ELEMENT image (title | url | link | width? | height? | description?)*>
<!ELEMENT url (#PCDATA)>
<!ELEMENT items (rdf:Seq)>
<!ELEMENT rdf:Seq (rdf:li+)>
<!ELEMENT rdf:li EMPTY>
<!ATTLIST rdf:li
resource IDREF #REQUIRED
>
<!ELEMENT item (title | link | description | dc:date)*>
<!ATTLIST item
rdf:about ID #REQUIRED
>
<!ELEMENT textinput (title | description | name | link)*>
<!ELEMENT name (#PCDATA)>
<!ELEMENT rating (#PCDATA)>
<!ELEMENT language (#PCDATA)>
<!ELEMENT width (#PCDATA)>
<!ELEMENT height (#PCDATA)>
<!ELEMENT copyright (#PCDATA)>
<!ELEMENT pubDate (#PCDATA)>
<!ELEMENT lastBuildDate (#PCDATA)>
<!ELEMENT docs (#PCDATA)>
<!ELEMENT managingEditor (#PCDATA)>
<!ELEMENT webMaster (#PCDATA)>
<!ELEMENT hour (#PCDATA)>
<!ELEMENT day (#PCDATA)>
<!ELEMENT skipHours (hour+)>
<!ELEMENT skipDays (day+)>
<!--
Copied from HTML 3.2 DTD, with modifications (removed CDATA)
http://www.w3.org/TR/REC-html32.html#dtd
=============== BEGIN ===================
-->
<!--
Character Entities for ISO Latin-1
(C) International Organization for Standardization 1986
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
This has been extended for use with HTML to cover the full
set of codes in the range 160-255 decimal.
-->
<!-- Character entity set. Typical invocation:
<!ENTITY % ISOlat1 PUBLIC
"ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML">
%ISOlat1;
-->
<!ENTITY nbsp " "> <!-- no-break space -->
<!ENTITY iexcl "¡"> <!-- inverted exclamation mark -->
<!ENTITY cent "¢"> <!-- cent sign -->
<!ENTITY pound "£"> <!-- pound sterling sign -->
<!ENTITY curren "¤"> <!-- general currency sign -->
<!ENTITY yen "¥"> <!-- yen sign -->
<!ENTITY brvbar "¦"> <!-- broken (vertical) bar -->
<!ENTITY sect "§"> <!-- section sign -->
<!ENTITY uml "¨"> <!-- umlaut (dieresis) -->
<!ENTITY copy "©"> <!-- copyright sign -->
<!ENTITY ordf "ª"> <!-- ordinal indicator, feminine -->
<!ENTITY laquo "«"> <!-- angle quotation mark, left -->
<!ENTITY not "¬"> <!-- not sign -->
<!ENTITY shy "­"> <!-- soft hyphen -->
<!ENTITY reg "®"> <!-- registered sign -->
<!ENTITY macr "¯"> <!-- macron -->
<!ENTITY deg "°"> <!-- degree sign -->
<!ENTITY plusmn "±"> <!-- plus-or-minus sign -->
<!ENTITY sup2 "²"> <!-- superscript two -->
<!ENTITY sup3 "³"> <!-- superscript three -->
<!ENTITY acute "´"> <!-- acute accent -->
<!ENTITY micro "µ"> <!-- micro sign -->
<!ENTITY para "¶"> <!-- pilcrow (paragraph sign) -->
<!ENTITY middot "·"> <!-- middle dot -->
<!ENTITY cedil "¸"> <!-- cedilla -->
<!ENTITY sup1 "¹"> <!-- superscript one -->
<!ENTITY ordm "º"> <!-- ordinal indicator, masculine -->
<!ENTITY raquo "»"> <!-- angle quotation mark, right -->
<!ENTITY frac14 "¼"> <!-- fraction one-quarter -->
<!ENTITY frac12 "½"> <!-- fraction one-half -->
<!ENTITY frac34 "¾"> <!-- fraction three-quarters -->
<!ENTITY iquest "¿"> <!-- inverted question mark -->
<!ENTITY Agrave "À"> <!-- capital A, grave accent -->
<!ENTITY Aacute "Á"> <!-- capital A, acute accent -->
<!ENTITY Acirc "Â"> <!-- capital A, circumflex accent -->
<!ENTITY Atilde "Ã"> <!-- capital A, tilde -->
<!ENTITY Auml "Ä"> <!-- capital A, dieresis or umlaut mark -->
<!ENTITY Aring "Å"> <!-- capital A, ring -->
<!ENTITY AElig "Æ"> <!-- capital AE diphthong (ligature) -->
<!ENTITY Ccedil "Ç"> <!-- capital C, cedilla -->
<!ENTITY Egrave "È"> <!-- capital E, grave accent -->
<!ENTITY Eacute "É"> <!-- capital E, acute accent -->
<!ENTITY Ecirc "Ê"> <!-- capital E, circumflex accent -->
<!ENTITY Euml "Ë"> <!-- capital E, dieresis or umlaut mark -->
<!ENTITY Igrave "Ì"> <!-- capital I, grave accent -->
<!ENTITY Iacute "Í"> <!-- capital I, acute accent -->
<!ENTITY Icirc "Î"> <!-- capital I, circumflex accent -->
<!ENTITY Iuml "Ï"> <!-- capital I, dieresis or umlaut mark -->
<!ENTITY ETH "Ð"> <!-- capital Eth, Icelandic -->
<!ENTITY Ntilde "Ñ"> <!-- capital N, tilde -->
<!ENTITY Ograve "Ò"> <!-- capital O, grave accent -->
<!ENTITY Oacute "Ó"> <!-- capital O, acute accent -->
<!ENTITY Ocirc "Ô"> <!-- capital O, circumflex accent -->
<!ENTITY Otilde "Õ"> <!-- capital O, tilde -->
<!ENTITY Ouml "Ö"> <!-- capital O, dieresis or umlaut mark -->
<!ENTITY times "×"> <!-- multiply sign -->
<!ENTITY Oslash "Ø"> <!-- capital O, slash -->
<!ENTITY Ugrave "Ù"> <!-- capital U, grave accent -->
<!ENTITY Uacute "Ú"> <!-- capital U, acute accent -->
<!ENTITY Ucirc "Û"> <!-- capital U, circumflex accent -->
<!ENTITY Uuml "Ü"> <!-- capital U, dieresis or umlaut mark -->
<!ENTITY Yacute "Ý"> <!-- capital Y, acute accent -->
<!ENTITY THORN "Þ"> <!-- capital THORN, Icelandic -->
<!ENTITY szlig "ß"> <!-- small sharp s, German (sz ligature) -->
<!ENTITY agrave "à"> <!-- small a, grave accent -->
<!ENTITY aacute "á"> <!-- small a, acute accent -->
<!ENTITY acirc "â"> <!-- small a, circumflex accent -->
<!ENTITY atilde "ã"> <!-- small a, tilde -->
<!ENTITY auml "ä"> <!-- small a, dieresis or umlaut mark -->
<!ENTITY aring "å"> <!-- small a, ring -->
<!ENTITY aelig "æ"> <!-- small ae diphthong (ligature) -->
<!ENTITY ccedil "ç"> <!-- small c, cedilla -->
<!ENTITY egrave "è"> <!-- small e, grave accent -->
<!ENTITY eacute "é"> <!-- small e, acute accent -->
<!ENTITY ecirc "ê"> <!-- small e, circumflex accent -->
<!ENTITY euml "ë"> <!-- small e, dieresis or umlaut mark -->
<!ENTITY igrave "ì"> <!-- small i, grave accent -->
<!ENTITY iacute "í"> <!-- small i, acute accent -->
<!ENTITY icirc "î"> <!-- small i, circumflex accent -->
<!ENTITY iuml "ï"> <!-- small i, dieresis or umlaut mark -->
<!ENTITY eth "ð"> <!-- small eth, Icelandic -->
<!ENTITY ntilde "ñ"> <!-- small n, tilde -->
<!ENTITY ograve "ò"> <!-- small o, grave accent -->
<!ENTITY oacute "ó"> <!-- small o, acute accent -->
<!ENTITY ocirc "ô"> <!-- small o, circumflex accent -->
<!ENTITY otilde "õ"> <!-- small o, tilde -->
<!ENTITY ouml "ö"> <!-- small o, dieresis or umlaut mark -->
<!ENTITY divide "÷"> <!-- divide sign -->
<!ENTITY oslash "ø"> <!-- small o, slash -->
<!ENTITY ugrave "ù"> <!-- small u, grave accent -->
<!ENTITY uacute "ú"> <!-- small u, acute accent -->
<!ENTITY ucirc "û"> <!-- small u, circumflex accent -->
<!ENTITY uuml "ü"> <!-- small u, dieresis or umlaut mark -->
<!ENTITY yacute "ý"> <!-- small y, acute accent -->
<!ENTITY thorn "þ"> <!-- small thorn, Icelandic -->
<!ENTITY yuml "ÿ"> <!-- small y, dieresis or umlaut mark -->
<!--
Copied from HTML 3.2 DTD, with modifications (removed CDATA)
http://www.w3.org/TR/REC-html32.html#dtd
================= END ===================
-->
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.