[Tellico-users] xslt question about overwrtiting values

Xavier Brochard xavier at alternatif.org
Thu May 28 11:02:58 UTC 2015


Le jeudi 28 mai 2015, 06:50:39 Robby Stephenson a écrit :
> On Thu, May 28, 2015 at 4:30 AM, Xavier Brochard <xavier at alternatif.org> 
wrote:
> > From Amazon XML data source, I would like to retrieve ItemDimensions or
> > PackageDimensions, which one it doesn't matter. Sometimes only one of the
> > twos is available.
> > Instead of testing values I would like to overwrite, but I'm not sure
> > about
> > that : if a value is empty, will it overwrite the first value retrieved ?
> 
> You may be able to write it as (ItemDimensions:Width |
> PackageDimensions:Width)[1] which means take the first non-empty
> value. Reverse the order if you want package to override Item.


Thanks ! much simpler than I thought !

Xavier


More information about the tellico-users mailing list