Subject: RE: [xsl] Selection Criteria in XSL From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 22 Mar 2001 11:42:06 +0000 |
So my understanding is this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> <xsl:template match="viewentries/viewentry"> > <xsl:for-each > select="./entrydata[@columnnumber='1']/text='Autobiography'">
You are trying to select the specific viewentry node, therefore you would have: viewentries/viewentry[some criteria]
Note: With your's, after you piece together the match & the for-each, you
get: viewentries/viewentry/entrydata ...
>> This selects the actual entrydata node.
Also the /text isn't a node, or anything. Maybe if the XML was formed
<entrydata><text></text></entrydata>?
Actually, I tried to do this selection in two parts, like yours, ie;
> <xsl:template match="viewentries/viewentry">
> <xsl:for-each select=".[entrydata[@columnnumber='1']='Autobiography']">
but it definitely did not like this. Maybe someone can offer an explanation?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selection Criteria in XSL, Brent Kobayashi | Thread | RE: [xsl] Selection Criteria in XSL, James J Nampalam |
[xsl] XSLT-hosting, Tobias Reif | Date | [xsl] XSL-loop, Mark Gray |
Month |