From: "Xavier Neys (neysx)" <neysx@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo commit in xml/htdocs/xsl: rdftest.xsl
Date: Sat, 26 Jan 2008 10:47:18 +0000 [thread overview]
Message-ID: <E1JIiZC-0000ZZ-E3@stork.gentoo.org> (raw)
neysx 08/01/26 10:47:18
Added: rdftest.xsl
Log:
Bug #204402, try feed with <body> of news item transformed to html
Revision Changes Path
1.1 xml/htdocs/xsl/rdftest.xsl
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/rdftest.xsl?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/xsl/rdftest.xsl?rev=1.1&content-type=text/plain
Index: rdftest.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://purl.org/rss/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:admin="http://webns.net/mvcb/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<!-- Bring in all guide.xsl shebang to apply-templates to the news <body>,
http://bugs.gentoo.org/204402
-->
<xsl:include href="/xsl/guide.xsl"/>
<xsl:output encoding="UTF-8" method="xml" indent="yes" cdata-section-elements=" p" />
<xsl:template match="/rdffeed">
<rdf:RDF>
<channel>
<xsl:attribute name="rdf:about"><xsl:value-of select="link" /></xsl:attribute>
<title><xsl:value-of select="title" /></title>
<link><xsl:value-of select="link" /></link>
<description><xsl:value-of select="description" /></description>
<dc:creator>www@gentoo.org</dc:creator>
<dc:language>en-US</dc:language>
<admin:errorReportsTo rdf:resource="mailto:www@gentoo.org" />
<items>
<rdf:Seq>
<xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()<11]/text()">
<rdf:li>
<xsl:attribute name="rdf:resource">http://www.gentoo.org<xsl:value-of select="." /></xsl:attribute>
</rdf:li>
</xsl:for-each>
</rdf:Seq>
</items>
</channel>
<xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()<11]/text()">
<xsl:variable name="da-news" select="document(.)"/>
<xsl:if test="$da-news/news/title">
<item>
<xsl:attribute name="rdf:about">http://www.gentoo.org<xsl:value-of select="." /></xsl:attribute>
<title><xsl:value-of select="$da-news/news/title" /></title>
<link>http://www.gentoo.org<xsl:value-of select="." /></link>
<dc:subject><xsl:value-of select="$da-news/news/@category" /></dc:subject>
<dc:creator><xsl:value-of select="$da-news/news/poster" /></dc:creator>
<!-- <dc:date><xsl:value-of select="document(.)/news/date" /></dc:date> -->
<description>
<xsl:value-of disable-output-escaping="yes" select="concat('<','![CDATA[')" />
<xsl:apply-templates select="$da-news/news/body"/>
<xsl:value-of disable-output-escaping="yes" select="concat(']]', '>')"/>
</description>
</item>
</xsl:if>
</xsl:for-each>
</rdf:RDF>
</xsl:template>
</xsl:stylesheet>
--
gentoo-commits@lists.gentoo.org mailing list
next reply other threads:[~2008-01-26 10:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-26 10:47 Xavier Neys (neysx) [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-28 22:22 [gentoo-commits] gentoo commit in xml/htdocs/xsl: rdftest.xsl Xavier Neys (neysx)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1JIiZC-0000ZZ-E3@stork.gentoo.org \
--to=neysx@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox