Sign Up
Search
Options
search
Chat
Help
News
Log in
Not Logged in
Home
»
Boards
»
Stylus Studio Developer Network
»
XSLT Help and Discussion
»
Help with for-each Xpath problem
Topic
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
next
Subject:
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 >= '$now']">
Hope this helps
Ivan Pedruzzi
Stylus Studio Team
top
Subject:
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 >= $now]">
Hope this helps
Ivan Pedruzzi
Stylus Studio Team
Topic Page
1
2
3
4
5
6
7
8
9
Prev Topic
Next Topic
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 to Conference:
Select Conference
Stylus Studio Feature Requests
Stylus Studio Technical Forum
Website Feedback
XSLT Help and Discussion
XQuery Help and Discussion
Stylus Studio FAQs
Stylus Studio Code Samples & Utilities
Stylus Studio Announcements
go
Log In Options
Username:
Password:
Site Map
|
Privacy Policy
|
Terms of Use
|
Trademarks
Stylus Scoop XML Newsletter:
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.