This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]