[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How do I skip an element?
>> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|