Subject: [xsl] Selection Criteria in XSL From: James J Nampalam <jjam@xxxxxxxxxxxxxxxxxxx> Date: Thu, 22 Mar 2001 09:36:00 +0530 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] javax.xml.transform.Trans, Monte Hayward | Thread | RE: [xsl] Selection Criteria in XSL, Brent Kobayashi |
RE: [xsl] xsl 1.1 security model?, Michael Kay | Date | RE: [xsl] Problem using '%' sign i, Kaganovich, Yevgeniy |
Month |