Re: Updated XLink Question in XML Data File and XSL

Subject: Re: Updated XLink Question in XML Data File and XSL
From: "Nikita Ogievetsky" <nogievet@xxxxxxxxxxxx>
Date: Tue, 14 Sep 1999 18:41:56 +0100
> XML Data File Code:
> 
> <PICK_UP_DATE xml:link="simple"
> href="http:/www.lmi.org">1999/08/30</PICK_UP_DATE>
> 
> 
> 
> XSL Code:
> 
> <a>
>       <xsl:attribute select="./PURPOSE_CODE">
>                      <xsl:value-of select="./PICK_UP_DATE"/>
>        </xsl:attribute>
> </a>
> 
> but that doesn't seem to work.  Any help would be appreciated.

If this is all you need, bellow is a sample code that works with XT:

<xslt:template match="PICK_UP_DATE">
  <a>
      <xslt:attribute name="href">
          <xslt:value-of select="@href"/> 
      </xslt:attribute>
      <xslt:value-of select="."/>
  </a>
</xslt:template>

Nikita Ogievetsky
http://www.cogx.com



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


Current Thread