Some feed readers expand relative URLs in items by extracting the base
URL from the enclosing <link/> element, however this is not a globally
accepted practice.
Specifying xml:base is useful to cover other ways in which relative URLs
are expanded, see:
https://cyber.law.harvard.edu/rss/relativeURI.html
http://www.w3.org/TR/xmlbase/#resolution
<xsl:template match="/">
<rss version="2.0">
<xsl:template match="/">
<rss version="2.0">
+ <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<channel>
<generator>Tweeper</generator>
<title>
<channel>
<generator>Tweeper</generator>
<title>
<xsl:output method="xml" indent="yes"/>
<xsl:output method="xml" indent="yes"/>
+ <xsl:variable name="domain-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, '@')"/>
+ <xsl:variable name="BaseURL" select="concat('https://', $domain-name)"/>
+
<xsl:variable name="user-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, ':')"/>
<xsl:template match="//div[@id='user-content-activities']//ul[@id='major-stream']/li">
<xsl:variable name="user-name" select="substring-after(//div[@id='profile-block']/@data-profile-id, ':')"/>
<xsl:template match="//div[@id='user-content-activities']//ul[@id='major-stream']/li">
<xsl:template match="/">
<rss version="2.0">
<xsl:template match="/">
<rss version="2.0">
+ <xsl:attribute name="xml:base"><xsl:value-of select="$BaseURL" /></xsl:attribute>
<channel>
<generator>Tweeper</generator>
<title>
<channel>
<generator>Tweeper</generator>
<title>
<xsl:template match="/">
<rss version="2.0">
<xsl:template match="/">
<rss version="2.0">
+ <xsl:attribute name="xml:base"><xsl:value-of select="$twitterBaseURL" /></xsl:attribute>
<channel>
<generator>Tweeper</generator>
<title>
<channel>
<generator>Tweeper</generator>
<title>