rendered paste body<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="start" select="/awsstate/project/@startpage" /> <xsl:param name="actual" select="$start" /> <xsl:template match="/"> <xsl:apply-templates /> </xsl:template> <xsl:template match="/awsstate/project/page['#AWS Project#Startpage'=@id]"> <xsl:if test="@id=$actual"> <!--start--> <html> <head> <title /> </head> <body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000"> bla </body> </html> <!--end--> </xsl:if> </xsl:template> <xsl:template match="/awsstate/project/page[starts-with(@id,'#AWS Project#Produktübersicht')]"> <xsl:if test="@id=$actual"><!--start--> <html> <head> <title /> </head> <body text="#000000" bgcolor="#FFFFFF" link="#FF0000" alink="#FF0000" vlink="#FF0000"> blabla </body> </html> <!--end--> </xsl:if> </xsl:template> <xsl:template match="/awsstate/project/page"> <H1>UPS Something went really wrong here</H1> </xsl:template></xsl:stylesheet>