cmlenz      2003/02/09 13:53:26

  Modified:    documentation/docs/skins/jakarta.apache.org/stylesheets
                        document2html.xsl
  Log:
  Fix link generation in navigation sidebar for external resources.
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.29      +5 -5      
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- document2html.xsl 9 Feb 2003 19:54:49 -0000       1.28
  +++ document2html.xsl 9 Feb 2003 21:53:26 -0000       1.29
  @@ -234,22 +234,22 @@
     <xsl:template match="menu//item">
   
       <xsl:variable name="curid" select="@id"/>
  -    <xsl:variable name="cursite" select="$sitemap//resource[@id=$curid]"/>
  +    <xsl:variable name="cursite" select="$sitemap//*[@id=$curid]"/>
   
       <xsl:variable name="level" select="count(ancestor::item)+1"/>
   
       <xsl:choose>
  -      <xsl:when test="$cursite/@href">
  +      <xsl:when test="name($cursite) = 'external'">
           <div id="menu">
             <font size="-{$level}">
  -            <a href="{$cursite/@href}" target="{@id}">
  +            <a href="{$cursite/@url}" target="{@id}">
                 <xsl:value-of select="@label"/>
               </a>
             </font>
             <xsl:apply-templates/>
           </div>
         </xsl:when>
  -      <xsl:when test="$cursite/@target">
  +      <xsl:when test="name($cursite) = 'resource'">
           <div id="menu">
             <a>
               <xsl:attribute name="href">
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to