You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Joe Germuska <Jo...@Germuska.com> on 2004/07/09 16:18:47 UTC

RE: Struts 1.2.1 release - "src" variable declared twice in struts.xsl?

At 9:48 AM +0100 7/9/04, Roberto Tyley wrote:
>This probably isn't worth opening up a whole bug report, but I noticed
>while attempting to build struts for myself that the 'dist' task fails
>due to doc/stylesheets/struts.xsl being an invalid XSL file - the
>variable 'src' is declared twice in the same scope (illegal in xsl) at
>around line 76:


I'm assuming that Ted made the release using dist.  What XSLT 
transform library are you using?  I have xalan-2.4.1.jar in my 
$ANT_HOME/lib and I can build the docs fine.

That said, since that does seem to be illegal in XSL, I fixed the style-sheet.

Joe



>         <xsl:variable name="src">
>           <xsl:value-of select="$relative-path"/><xsl:value-of
>select="$home-logo"/>
>         </xsl:variable>
>         <a href="http://apache.org/">
>             <img src="{$src}" alt="The Apache Project"
>id="asf_logo_wide"/>
>         </a>
>
>         <xsl:variable name="src">
>             <xsl:value-of select="$relative-path"/><xsl:value-of
>select="$project-logo"/>
>         </xsl:variable>
>
>Roberto
>
>
>--------------------------------------------------------------- -
>         Visit our Internet site at http://www.reuters.com
>
>Get closer to the financial markets with Reuters Messaging - for more
>information and to register, visit http://www.reuters.com/messaging
>
>Any views expressed in this message are those of  the  individual
>sender,  except  where  the sender specifically states them to be
>the views of Reuters Ltd.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>For additional commands, e-mail: dev-help@struts.apache.org


-- 
Joe Germuska            
Joe@Germuska.com  
http://blog.germuska.com    
"In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn 
back; I'll know I'm in the wrong place."
    - Carlos Santana

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org