This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Interpretting XSL...


>From: "Hewko, Doug" <Doug.Hewko@ccra-adrc.gc.ca>
>To: "'xsl-list@lists.mulberrytech.com'" <xsl-list@lists.mulberrytech.com>
>Subject: Help Interpretting XSL...
>Date: Tue, 31 Jul 2001 09:14:10 -0400
>
>Hi!
>
>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
>code?
>
>  <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
>select="$view-source"/></xsl:attribute>
> 		 <xsl:attribute name="TARGET">_blank</xsl:attribute>
>         <xsl:apply-templates/>
>      </A>
>      </xsl:if>    


-- 
======================================================================
B. Tommie Usdin                        mailto:btusdin@mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]