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

RE: logical AND does not work in xsl:for-each element

Subject: RE: logical AND does not work in xsl:for-each element combination
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 25 Sep 2005 20:36:44 +0100
xsl logical and
Your Role elements include whitespace. Use normalize-space() to remove it
before the comparison.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Peter Teichert [mailto:peter.teichert@xxxxxx]
> Sent: 25 September 2005 19:06
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  logical AND does not work in xsl:for-each
> element combination
>
>
> Hi mukul,
>
> no there is nothing displayed;
>
> Therefore here is my xml file part from what I want to
> extract the data, for example for Ref="I8" and Role="Child"
>
> <EventRec Id="EV33" Type="birth">
> <Participant>
> <Link Target="IndividualRec" Ref="I8"/>
> <Role>
> Child</Role>
> </Participant>
> <Date>
> 15 Apr 1956</Date>
> </EventRec>
>
> <EventRec Id="EV37" Type="birth">
> <Participant>
> <Link Target="IndividualRec" Ref="I13"/>
> <Role>
> Child</Role>
> </Participant>
> <Participant>
> <Link Target="IndividualRec" Ref="I15"/>
> <Role>
> Father</Role>
> </Participant>
> <Participant>
> <Link Target="IndividualRec" Ref="I8"/>
> <Role>
> Mother</Role>
> </Participant>
> <Date>
> 18 May 1828</Date>
> </EventRec>
>
>
> Here is my xsl file part:
>
> <xsl:for-each
> select="/GEDCOM/EventRec[@Type='birth']/Participant[Link/@Ref=
> $HUSB_ID and Role='Child']">
> <xsl:value-of select="../Date"/>
> </xsl:for-each>
>
> What my be wrong here ?
>
> Thank You for answer
>
> Best regards
>
> PTE
>
> ______________________________________________________________
> ___________
> Mit der Gruppen-SMS von WEB.DE FreeMail kvnnen Sie eine SMS an alle
> Freunde gleichzeitig schicken:
> http://freemail.web.de/features/?mc=021179

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.