problem extracting year from date
    Richard Lyons 
    richard at lyons.art.br
       
    Tue Oct  8 12:09:50 BST 2024
    
    
  
Hi,
Em seg 07 out 2024 à 21:52:49 -0400, Robby Stephenson escreveu :
[...]
> > Tellico formats dates as
> >
> >     <date>
> >         <year>     </year>
> >         <month>    </month>
> >         <day>      </day>
> >     </date>
> >
> > For various reports, I want to insert just the year.
> >
[...]
> 
>  <xsl:value-of select="$entry/tc:date/tc:year"/>
> 
> That should give you what you want. That way of referenced XML elements is
> called XPath, if you need to look anything up. All of the Tellico templates
> use the tc: prefix for the namespace.
Thanks! How did I not think of trying that! 
Cordially,
richard
-- 
Richard Lyons 
    
    
More information about the tellico-users
mailing list