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

Re: xsl:sort Please Help

Subject: Re: xsl:sort Please Help
From: Adam Turoff <ziggy@xxxxxxxxx>
Date: Thu, 28 Jun 2001 22:25:36 -0400
sort xsl namespace
On Thu, Jun 28, 2001 at 03:50:44PM -0700, Paul_B_Grimes@xxxxxxxxxx wrote:
> 
> No, I'm not using WD-xsl.  I'm still a little confused though.  Thank you
> for your help and your time.  I am pretty new at this.

You may be using the XSLT language, but you're declaring your instructions
to belong to WD-XSL.

> The following works fine in my application.
> <current_projects>
>       <xsl:for-each order-by="+project_title" select="
> project[project_title$lt$'Z']" xmlns:xsl="http://www.w3.org/TR/WD-xsl">

What you're saying here is that within the scope of <for-each/>, the
xsl: namespace prefix is http://www.w3.org/TR/WD-xsl.  The XSLT specification
explicitly states that XSLT instructions must be within the XSLT
namespace (http://www.w3.org/1999/XSL/Transform).

What you probably want to do is something like this:

	<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	 version="1.0">

	...
	<current_projects>
	       <xsl:for-each order-by="+project_title" 
			select="project[project_title$lt$'Z']">
	...
	
> So I would think the similar format of this would work.  If I don't have
> the name space in there, I am getting an 'Invalid procedure call or
> argument' message.
> when the name space is there, the table appears  blank.  

This is because for-each in the WD-xsl namespace isn't an XSLT instruction;
it shouldn't do anything.  

Z.


 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.