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

RE: Problem using Position() in .NET environment.

Subject: RE: Problem using Position() in .NET environment.
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Wed, 13 Oct 2004 09:57:48 -0500
RE:  Problem using Position() in .NET environment.
Hi Animesh,

Do you use the XslTransform?

Then you say:
> When I remove position() from Xpath above, it works.

So what's the problem then? Just kidding, I guess you still have a problem,
just send in some representative XML, your XSL, and what output you need.
We'll be able to help you better.

I have found this MS-KB article, it may not apply to your expression, cause
you're not using postion() as a function parameter, but still it may well be
a (another) bug:
http://support.microsoft.com/default.aspx?scid=kb;en-us;324033

HTH,
<prs/>

-----Original Message-----
From: Animesh Sharma [mailto:asharma@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, October 13, 2004 9:36 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Problem using Position() in .NET environment.

Hi,

I'm not sure whether this problem belongs to this group or not. 
But I'm facing very peculiar problem in .Net (version 1.1) environment.

Following XSL works with MSXML4 but NOT with .Net XSL translator:

<xsl:template
match="//input[@value='go'][preceding-sibling::a[position()=1][contains(
img/@src,'cancel')]]">

<--Do Some operation>

</xsl:template>

When I remove position() from Xpath above, it works.
I'm unable to figure out the problem. If anyone knows the solution, do let
me know.

Thanks,
Animesh

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.