below is an excert from an xsl i am writing.
the xsl tests to see if varSTatus = new and tries to apply two templates
before applying a third template no matter what happens.
my problem is that whilst the xsl:if works fine the html from the two templates in the if doesn't get produce, only the divs show up in the source.
but the third template outside of the if does produce html.
not sure what is going on
Code:<body> <xsl:variable name="varStatus"><xsl:value-of select="/document/form/status" /></xsl:variable> <!-- added this in to try and sort presentation of popup when it isn't a popup --> <xsl:if test="$varStatus = 'new'"> <!-- divs show up but not content why --> <div id="hdr"><xsl:apply-templates select="header" /></div> <div id="lh-col"><xsl:apply-templates select="menu" /></div> </xsl:if> <div id="title"><xsl:apply-templates select="developers" /></div> </body>


Reply With Quote