[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: returning single result from apply-templates
Is <xsl:apply-templates select="(foo//bar)[1]"/> what you're looking for? Alex ----- Original Message ----- From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxx> Sent: Monday, October 09, 2000 11:37 AM Subject: returning single result from apply-templates > If I do > > <xsl:apply-template select="foo//bar[1]"/> > > I get mutltiple results from a tree > > <foo> > <x><bar/></x> > <x><bar/></x> > <x><bar/></x> > </fo> > > because each <bar> is #1 in its sequence, whereas I really only want > the first <bar> from the result sequence. > > I must be being dense today, but I dont see how to get what I want. > > Sebastian > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|