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

Re: Complex expression

Subject: Re: Complex expression
From: "Oleg Konovalov" <olegkon@xxxxxxxxx>
Date: Thu, 2 Mar 2006 11:55:48 -0500
complex expressions xslt
Hi Charles,

I tried to get an XML input by inserting
<map:serialize type="html"/>
in Cocoon pipeline right before that XSL transformer,
but that didn't produce any HTML in the browser.
Unfortunately, there are no Cocoon debuggers to date,
project Lepido http://www.eclipse.org/lepido/  never came to fruition.
So it's a hell to support/debug Cocoon apps  ;-)

I think, my questions was simplier than that.
If you assume that the path to the Excel cell $row/sht:Cell/ is right,
how do you get (point to) an attribute ValueType for the cell with the
name "Start_Date".
I mean, what would be the correct syntax of that expression ?
Does that expression look right to you?
<xsl:if test='not($row/sht:Cell/sht:Name[.="Start_Date"]/@ValueType="DATE")'>
  ... do something
</xsl:if>

At least these 2 portions seem to work by themselves (but not combined
together)
in the other portions of XML transformer:
<xsl:if test='not($row/sht:Cell/sht:Name[.="Start_Date"])'> ...
<xsl:when test='@ValueType="DATE"'> ...

Or maybe there is a way to combine them in condition with an "and" ?

Thank you,
Oleg.


On 2/28/06, cknell@xxxxxxxxxx <cknell@xxxxxxxxxx> wrote:
> This question would be easy to answer if you included the relevant portion
of your XML document. Without that, you are gambling on catching the interest
of the subset of this list's subscribers who are intimately familiar with the
XML format of whatever version of Excel you are using.
> --
> Charles Knell
> cknell@xxxxxxxxxx - email
>
>
>
> -----Original Message-----
> From:     Oleg Konovalov <olegkon@xxxxxxxxx>
> Sent:     Tue, 28 Feb 2006 14:30:40 -0500
> To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:   Complex expression
>
> Hi,
>
> I am trying to modify existing XSL 1.0 code.
> Need to check if the type of the Excel cells in specific column Start_Date
> is indeed DATE.
>
> Is that syntax correct?
>
> <xsl:if
test='not($row/sht:Cell/sht:Name[.="Start_Date"]/@ValueType="DATE")'>
>  ... do something
> </xsl:if>
>
> (doesn't seem to work)
>
> Sorry for the newbie question.
>
> Thank you,
> Oleg.

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.