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

Re: 'qname' is not a valid XSLT or XPath function

Subject: Re: 'qname' is not a valid XSLT or XPath function
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 10 Jul 2003 16:17:23 -0400
valid xslt functions
Greg,

In XSLT, this would probably be:

test="not(preceding-sibling*[name()=name(current())])"

What you have ain't XSLT -- it looks like an old, dead, draft version of the language, or something else perhaps distantly related.

As for tutorials/references, the canonical reference is Michael Kay's "XSLT: A Programmer's Reference" (Wrox). A quick reference guide may be downloaded from http://www.mulberrytech.com/quickref -- it lists all the functions and operators in unextended XSLT 1.0.

Good luck,
Wendell

At 03:48 PM 7/10/2003, you wrote:
I'm new to XML, and I saw an example template that used the following:

<xsl:if test="not(from-preceding-siblings(*[qname(.)=context().qname(.)]))">
<h1><xsl:value-of select="qname(.)"/></h1>
</xsl:if>

This is a way for selecting distinct XML elements... I think.

Anyways, the translators in MSXML 4 and XMLSpy (Eval) don't recognize this
qname() function.
I saw something about Extensions to XLST in a FAQ, but I'm afraid that I'm
at a loss about how it all works.

If someone could either explain it to me, or point me to a good
tutorial/reference that I could read about what I'm supposed to do to get
this to work, I would appreciate it.


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.