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(_at_)mulberrytech(_dot_)com
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