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

Re: How do I skip an element?

Subject: Re: How do I skip an element?
From: "Larry Mason" <Larry_Mason@xxxxxx>
Date: Wed, 5 May 1999 09:17:04 -0500
xsl for each skip

>> Here are some things I've tried to get the TH to work but are returning
'invalid
>> token' or 'unexpected token' errors.
>> I don't know what the column names will be except there is one column that is
>> always present which I want to exclude.
>>
>> <xsl:for-each select="data/*[first-of-any()]/*[name(.) !='column2']">
>>    <TH><xsl:value-of select="name(.)"/></TH>
>> </xsl:for-each>
>>
>> <xsl:for-each select="data/*[first-of-any()]/* $and$ data/*/*[name(.)
>> !='column2']">
>>    <TH><xsl:value-of select="name(.)"/></TH>
>> </xsl:for-each>
>
>You're using non-standard Microsoft extensions, which of course XT doesn't
support. For
>reference about what XT supports, look at the official XSL spec--either
December or April
>depending on which version of XT. The key things you need to avoid in these
particular
>cases are "!=" and "$and$".

Thanks to all who have replied and sorry for mixing MicroSoft extensions into my
example.  When I'm trying various solutions to resolve the problem, I look for
examples everywhere !

I am using the older version of XT for which none of the suggestions worked. :(
So I downloaded the latest XT Windows binary.  It accepts my improved XSL using
qname instead of name, [1] instead of first-of-any, etc but produces an error as
follows:

java.lang.NoSuchMethodError: com/jclark/xsl/tr/SheetImpl$ProcessContextImpl:
method
processSafe(Lcom/jclark/xsl/om/Node;Lcom/jclark/xsl/om/Name;Lcom/jclark/xsl/tr/Result;)V

not found

This is NOT launched as java ... but rather as xt my.xml my.xsl.  I have placed
the latest xt.jar file in the same directory as xt.exe hoping
it would help.  It didn't.

If anyone has seen this, please let me know what I've done wrong.  The older XT
runs great.  I'm guessing it is an operator error!
Many thanks,
Larry Mason
i2 Technologies



 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.