[xsl] Interpretting XSL...

Subject: [xsl] Interpretting XSL...
From: Mulberry Technologies List Owner <xsl-list-owner@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 09:27:05 -0400
>From: "Hewko, Doug" <Doug.Hewko@xxxxxxxxxxxxxxx>
>To: "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject: Help Interpretting XSL...
>Date: Tue, 31 Jul 2001 09:14:10 -0400
>I am taking my first steps in server-side XML and am working with some of
>the examples provided in Cocoon2.
>Can someone please explain to me what the following code does? I know it
>takes a variable "view-source" and if the "pagetitle" element has the same
>value of the parameter then we have a link. But how can I activate it that
>  <xsl:param name="view-source"/>
>**** snip! ****
>  <xsl:template match="pagetitle">
>      <xsl:if test="not($view-source)">
>	     <xsl:apply-templates/>
>      </xsl:if>    
>      <xsl:if test="$view-source">
>      <A>
>         <xsl:attribute name="HREF">../view-source?filename=/<xsl:value-of
> 		 <xsl:attribute name="TARGET">_blank</xsl:attribute>
>         <xsl:apply-templates/>
>      </A>
>      </xsl:if>    

B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com  
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
  Mulberry Technologies: A Consultancy Specializing in SGML and XML              

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread