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

RE: XPATH problem

Subject: RE: XPATH problem
From: "Bradley, Peter" <pbradley@xxxxxxxxxx>
Date: Fri, 7 Nov 2008 15:56:56 -0000
RE:  XPATH problem
Thanks, Sam.  Actually, I think David had the answer.  My first attempt
was correct - but lacked the proper namespace.  I could make excuses as
to why I failed to spot this before posting, but I guess you've heard
them all before.

We're running checks now, but it looks as though it'll be OK - and will
get the CEO off my back at least for the weekend.

Thanks again


Peter


-----Original Message-----
From: Sam Byland [mailto:shbyland@xxxxxxxxxxx]
Sent: 07 November 2008 15:53
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  XPATH problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter,

If I interpret this statement of yours correctly: "there exists a
<REDUCEDI>
element in an any <Instance> below the current <Student>", with "below"
being the operative word, then try this:

<xsl:for-each select="s0:Institution/s0:Student">
...
<xsl:if test="following-sibling::*[1][local-name() = 'REDUCEDI'][.='00'
or
.='04']">
<FNAMES>
...
</FNAMES>
</xsl:if>
...
</xsl:for-each>

Otherwise, as David pointed out, we'll need to see more of your XSLT,
plus a
small sample of your input XML, and your desired results...

Cheers,

...sam


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.6 (Build 6060)

iQA/AwUBSRRkRMdHxh74P5pFEQKtQgCgk4MyL7mCLOvxWXtBR7+SDedITxUAn3Fl
VX3mWeYzEi4wFOrzFrn3YNnU
=/o14
-----END PGP SIGNATURE-----

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.