[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Problem of syntax of filter ?
Subject: Re: [xsl] Problem of syntax of filter ? From: Stephane.Le-Deaut@xxxxxxxxxx Date: Wed, 16 May 2001 11:07:33 +0200 |
"I think your problem might be that you declare $downloadType as EL_NOT_OCB instead of 'EL_NOT_OCB', so it is'nt recognized as string." I declare $downloadType like this : <xsl:variable name="downloadType"> <xsl:value-of select="$tchFile/Delivery/DeliveryDescription/@downloadType"/> </xsl:variable> Ingo Schildmann <ingoschi@xxxxxx> on 16/05/2001 10:43:14 Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx cc: (bcc: Stephane LE DEAUT/FR/ALCATEL) Subject: Re: [xsl] Problem of syntax of filter ? On Wednesday 16 May 2001 10:13, you wrote: > > I've tried this code in order to select the element : > > <xsl:variable name="matchingDownloadTableName" > select="$dtableFile//DownloadTableName > [(@downloadType=$downloadType)]"/> (with > $downloadType=EL_NOT_OCB) > > Then, I build my output tree like this : > > <xsl:for-each select="$matchingDownloadTableName"> > <DownloadTableName > downloadType="{@downloadType}" fileName="{@fileName}"/> </xsl:for-each> > > But the result of my output tree is empty ! > > I don't understand why my code doesn't work. > Is it my filter good ? > I think your problem might be that you declare $downloadType as EL_NOT_OCB instead of 'EL_NOT_OCB', so it is'nt recognized as string. Bye, Ingo -- Ingo Schildmann ingoschi@xxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem of syntax of filt, Ingo Schildmann | Thread | RE: [xsl] Problem of syntax of filt, Michael Kay |
RE: [xsl] Newbie : conditional node, Jarno Elovirta | Date | Re: [xsl] Newbie : conditional node, Gavin Corfield |
Month |