[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:for-each , evaluate question

Subject: xsl:for-each , evaluate question
From: Jitu <jibhatia@xxxxxxxxxxx>
Date: Mon, 22 Jul 2002 12:04:32 +0530
xalan evaluate
Hi

I am trying to write xsl:for-each loop as follows :

<xsl:for-each  select="report/row[col='some value']">
This works fine.

But my select part has to be dynamic, as the filter condition will change each time. Therefore i tried this :

<xsl:param name="filterCond" />
<xsl:variable name="completeFilterCond" select="concat('/report/row[' , $filterCond, ']' )" />
<xsl:for-each select="$completeFilterCond">


Where the filter condition gets passed as a parameter to the XSL file.

In this case i get the following error :

Can not convert #STRING to a NodeList!



I have been told that i can use xalan:evaluate function, but i cannot get it working. I am using xalan. I got the following error :


processor.javax.xml.transform.TransformerException: Prefix must resolve to a namespace: 00:00

I did declare the namespace as follows :
<xsl:stylesheet version="1.0" xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" <http://www.w3.org/1999/XSL/Transform> <http://www.w3.org/1999/XSL/Transform> xmlns:xalan= "http://xml.apache.org/xalan" <http://xml.apache.org/xalan> <http://xml.apache.org/xalan> exclude-result-prefixes="xalan">



Would appreciate if someone can help me solve this problem.


thanks
Jitender.



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.