a work-around for lack of XSLT document-id() in web-browsers
parent
30cd7775f3
commit
0037befba1
|
@ -26,7 +26,7 @@
|
||||||
<main>
|
<main>
|
||||||
<xsl:for-each select="tweets/id">
|
<xsl:for-each select="tweets/id">
|
||||||
<xsl:variable name="tweetid" select="text()" />
|
<xsl:variable name="tweetid" select="text()" />
|
||||||
<xsl:variable name="tweetpath" select="concat('../../status/', $tweetid, '/tweet.xml')" />
|
<xsl:variable name="tweetpath" select="concat('../status/', $tweetid, '/tweet.xml')" />
|
||||||
<xsl:variable name="tweetdata" select="document($tweetpath)" />
|
<xsl:variable name="tweetdata" select="document($tweetpath)" />
|
||||||
<section class="tweet">
|
<section class="tweet">
|
||||||
<p class="tweet-text"><xsl:value-of select="$tweetdata/tweet/text" /></p>
|
<p class="tweet-text"><xsl:value-of select="$tweetdata/tweet/text" /></p>
|
||||||
|
|
Loading…
Reference in New Issue