[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: i want no double xml records to be viewed
Hi, > Please take a look at my problem. > > I have xml-records with a tag that have the same content, like > this tag: > <PPN>12345</PPN>, I want just one record to be shown in > my ie-explorer, is it possible to add a line in my stylesheet to > prevent this? > > Nico Noordhoek > > > --------------- > THIS IS A PART OF MY STYLESHEET > > <?xml version="1.0"?> > <xsl:stylesheet > xmlns:xsl="http://www.w3.org/TR/WD-xsl"> You're using Microsoft's XSL, not XSLT; see <http://www.netcrucible.com/xslt/msxml-faq.htm>. Rewrite your stylesheet as XSLT, and come back with it. Anyhow, if you want to show only one record, then process only one record in your stylesheet instead of all of them. You can achieve this (with XSLT and XPath) using predicates and position() function, e.g. //record[position() = 1] Cheers, Jarno - Codec & Flexor: Black Diamonds 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
|