a work-around for lack of XSLT document-id() in web-browsers

master
Charles Iliya Krempeaux 2023-12-15 17:13:43 -08:00
parent 30cd7775f3
commit 0037befba1
1 changed files with 1 additions and 1 deletions

View File

@ -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>