Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Selecting the First Distinct Node with XSLT? [Thread Next] RE: Selecting the First Distinct Node with XSLT?To: NULL Date: 12/6/2006 4:40:00 AM for this test you use predicat and the function position() some examples here http://www.w3.org/TR/xpath#location-paths here /store_sunshop/admin[position()=1] or store_sunshop/admin[1] -- My english is (very) rusted ,please , don''t hesitate to correct me Thanks rédacteur/modérateur xml sur developpez.com "David" wrote: > I have a xml file that has repeated nodes, ex,<admin>, and I wish to > select only the first node of each node type and process it with a > template, Eg. like a "select distinct" from SQL. Is this possible > from XSLT? > > Thanks > > > ====================== > Example XMLL: > > <store_sunshop> > <!-- Table admin --> > <admin> > <id>1</id> > </admin> > <admin> > <id>2</id> > </admin> > <category> > <categoryid>4</categoryid> > </category> > </store_sunshop> > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
