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

Re: Re: Template matching preceding-sibling.

Subject: Re: Re: Template matching preceding-sibling.
From: Steve <subsume@xxxxxxxxx>
Date: Thu, 8 Nov 2007 13:49:45 -0500
Re: Re:  Template matching preceding-sibling.
Nevermind.

It seems a lot of space is being appended to entries in the database.

-Steve

On Nov 8, 2007 1:43 PM, Steve <subsume@xxxxxxxxx> wrote:
> Trying to debug and coming up with something that boggles me.
>
> [<xsl:value-of select="preceding-sibling::Rec[1]/activity" />]
> [<xsl:value-of select="activity" />]
> <xsl:value-of select="activity = preceding-sibling::Rec[1]/activity" />
>
> Above looks like:
>
> [hi]
> [hi]
> false
>
> ?!?Steve
>
>
> On Nov 8, 2007 1:32 PM, Steve <subsume@xxxxxxxxx> wrote:
> > I am trying to match "the first of every unique Rec/activity"
> >
> >
> > On Nov 8, 2007 1:30 PM,  <cknell@xxxxxxxxxx> wrote:
> > > Both <Rec> elements are identical. In what sense are you using "unique"?
> > > --
> > > Charles Knell
> > > cknell@xxxxxxxxxx - email
> > >
> > >
> > >
> > > -----Original Message-----
> > > From:     Steve <subsume@xxxxxxxxx>
> > > Sent:     Thu, 8 Nov 2007 13:21:33 -0500
> > > To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > Subject:  Re:  Template matching preceding-sibling.
> > >
> > > Oh. I think I see what you mean.
> > >
> > > I'm basically just trying to match unique Rec/activity's.
> > >
> > > You follow? How could I select these?
> > >
> > > On Nov 8, 2007 1:16 PM, Steve <subsume@xxxxxxxxx> wrote:
> > >
> > > > I'm sorry, but isn't the first <Rec> in my XML the preceding-sibling
> > > > of the second <Rec> ?
> > > >
> > > > -Steve
> > > >
> > > >
> > > > On Nov 8, 2007 1:13 PM,  <cknell@xxxxxxxxxx> wrote:
> > > > > Your template matches both <Rec> elements, so you get two instances of "Ello xslers." in your output.
> > > > >
> > > > > Your template matches and <Rec> element with an <activity> child element that doesn't have preceding-sibling <Rec>. Since both <Rec> elements have <activity> child elements, and since none of the <activity> elements has a preceding-sibling of ANY kind, you are matching both <Rec>s.
> > > > > --
> > > > > Charles Knell
> > > > > cknell@xxxxxxxxxx - email
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From:     Steve <subsume@xxxxxxxxx>
> > > > > Sent:     Thu, 8 Nov 2007 12:59:01 -0500
> > > > > To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > > > Subject:   Template matching preceding-sibling.
> > > > >
> > > > > I'm missing something fundamental, what is it?
> > > > >
> > > > > <xsl:template match="Rec[activity != preceding-sibling::Rec/activity
> > > > > or not(preceding-sibling::Rec)]">
> > > > >   Ello xslers.
> > > > > </xsl:template>
> > > > >
> > > > > <xml>
> > > > >    <Rec>
> > > > >      <activity>hi</activity>
> > > > >    </Rec>
> > > > >    <Rec>
> > > > >       <activity>hi</activity>
> > > > >    </Rec>
> > > > > </xml>
> > > > >
> > > > > ----
> > > > >
> > > > > Above should only print anything once, but I'm getting it each time.
> > > > > What am I not getting?
> > > > >
> > > > > -Steve

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.