XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Ivan PedruzziSubject: Help with for-each Xpath problem
Author: Ivan Pedruzzi
Date: 21 Jul 2005 10:07 PM
This kind of problems are easy to spot with Stylus Studio.
Step through the stylesheet and test the expression the watch window.

Take a closer look the following expression; you are not using the parameter value but the string '$now'

<xsl:for-each select="home/noticeitem[attribute::expiry &gt;= '$now']">

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Ivan PedruzziSubject: Help with for-each Xpath problem
Author: Ivan Pedruzzi
Date: 22 Jul 2005 02:52 PM

The asp code is wrong, to learn how to use MSXML please see the MSXML documentation

Using XSLT with the DOM from an HTML Page
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/5371ed9a-17d7-4be7-8eb6-5b0e7e630cfc.asp

How to handle XSLT parameters
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/f38dc9b6-b91a-44c8-af91-c28cc272663a.asp

The XSLT code is wrong too; it should be
<xsl:for-each select="home/noticeitem[attribute::expiry &gt;= $now]">

Hope this helps
Ivan Pedruzzi
Stylus Studio Team



 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.