[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Selection Criteria in XSL
Hi every one, I have a problem which must be a simple one but I am not sure how to crack it. To give a background of the scenario, we are working on Domino environment and are using XML and XSL to populate data into a page. The XML file is like: <viewentries> <viewentry> <entrydata>..</entrydata> <entrydata>..</entrydata> <entrydata>..</entrydata> </viewentry> <viewentry> <entrydata>..</entrydata> <entrydata>..</entrydata> <entrydata>..</entrydata> </viewentry> </viewentries> the entry data element has an attribute - columnnumber which defines the position of the entrydata in the viewentry element. MY problem is I need to select only those viewentry elements whose 1st entrydata elements match a specific value.. I wrote something like this. <xsl:template match="viewentries/viewentry"> <xsl:for-each select="./entrydata[@columnnumber='1']/text='Autobiography'"> populate the other values in the viewentry element... </xsl:for-each> </xsl:template> I am rookie in XSL. So please help me out.. Thanks in Advance, James 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
|