Site Summaries in XHTML: stylesheet bug

Dan/Dan,

The w3c-synd stylesheet [1] has a bug; it uses a variable reference in a 
template's match attribute, specifically,

>  <xsl:template match="h:html [h:head/@profile=$Profile]">

According to XSLT [2], this is an error; "It is an error for the value 
of the match attribute to contain a VariableReference." Saxon certainly 
doesn't like it.

I think the fix is to remove the Profile variable and hard-code it into 
the match, since this is the only place it's used in the stylesheet.

Regards,


1. http://www.w3.org/2000/08/w3c-synd/home2rss.xsl
2. http://www.w3.org/TR/xslt#section-Defining-Template-Rules

--
Mark Nottingham
http://www.mnot.net/

Received on Friday, 17 May 2002 12:28:31 UTC