<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict"> <xsl:output method="xml" indent="yes" encoding="utf-8"/> <xsl:template match="/"> <html> <head> <title>Napewno strict wymaga</title> </head> <body> <xsl:variable name="player-character" select="//before/@character"/> <p> Siła postaci <xsl:value-of select="descendant::before/attribute::character"/> <xsl:text>: </xsl:text> <xsl:value-of select="id($player-character)/child::strength/child::text()"/> <!-- converted as with string() --> </p> <p> Siła postaci <xsl:value-of select="$player-character"/> <xsl:text>: </xsl:text> <xsl:value-of select="id($player-character)/strength"/> <!-- converted as with string() --> </p> </body> </html> </xsl:template> </xsl:stylesheet>