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

RE: xPath question

Subject: RE: xPath question
From: vsubramanian@xxxxxxxxxx
Date: Thu, 8 Jul 2004 09:06:01 -0400
RE:  xPath question
Jan ,

You need to use a <xsl:for-each> and traverse through each one of the items.
'$HygHeadDT/Header/item' selects only the first item. Thats why you are
having this issue.

Thanks,
Vidya



-----Original Message-----
From: Jan Kohnert [mailto:J.Kohnert@xxxxxxxxxxx]
Sent: Thursday, July 08, 2004 9:04 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject:  xPath question


Hello List,

I have a variable:
<xsl:variable name="HygHeadDT">
  <Header>
    <item>BMAT</item>
    <item>HBUE</item>
    <item>NURR</item>					      
    <item>TAB1</item>
    <item>TAB2</item>
    <item>TAB3</item>
    <item>HPRO</item>
    <item>HZUS</item>
    <item>HANL</item>
    <item>BEST</item>
    <item>HDES</item>
    <item>HBAD</item>      
  </Header>
</xsl:variable>

At some point of XML processing, I want to check, if the element "id" a
different value as one of the strings of any $HygHeadDT/Header/item

<xsl:apply-templates select="//CHAPTER[id != $HygHeadDT/Header/item]"
mode="MibeHyg"/>

But this query only seems only to work, if "id" = "BMAT".

What are I m doing wrong?

thanks !!!

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.