cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Klinger" <oliver.klin...@danet-consult.de>
Subject AW: FP taglib
Date Fri, 12 Jan 2001 07:01:53 GMT
I have an idea but I haven't tried myself, so no garantee for correctness:
Try the following XPath expression:

count(/root/node[ID='<yourID>']) should be 0 if not already existing.

Tell me, if it works :-)

Regards,
Oliver

> -----Urspr√ľngliche Nachricht-----
> Von: TJM Todd McGregor [mailto:TJMcGregor@landacorp.com]
> Gesendet am: Freitag, 12. Januar 2001 01:53
> An: 'cocoon-users@xml.apache.org'
> Betreff: FP taglib
> 
> I'm using the FP taglib to add records to an XML file. Each 
> record has an
> element named ID which uniquely identifies that record. What 
> would be the
> best approach for verifying that the new record being added 
> does not already
> exist in my XML file?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message