🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by broman Wed, 02 Dec 2009 14:02
sprawdzenie czy juz taka wartosc byla
#10224
Author: broman
Date: Wed, 02 Dec 2009 14:02
44 lines
2618 bytes
Cześć,
Mam taką transformacje która działa, ale chciałbym żeby działała
jeszcze lepiej ;)
Tzn. chodzi mi o to żeby dla wartości url która się powtarza nie
tworzył się nowy węzeł document tylko do istniejącego z tym samym
atrybutem url dodał brakujące wartości
Pozdrawiam,
Bartek


<xsl:template match="/">
  <vce>
    <xsl:for-each select="//video">
      <document>
        <xsl:attribute name="url">
          <xsl:value-of select="url" />
        </xsl:attribute>
        <content name="title" output-action="bold" weight="3"
type="html">
          <xsl:value-of select="title" />
        </content>
        <content name="snippet" output-action="summarize" weight="1"
type="text">
          <xsl:value-of select="description" />
        </content>
        <content name="publishdate">
          <xsl:value-of select="publishdate" />
        </content>
        <content name="publishtime">
          <xsl:value-of select="publishtime" />
        </content>
        <content name="author">
          <xsl:value-of select="author" />
        </content>
        <content name="source2">
          <xsl:value-of select="source" />
        </content>
        <content name="playlist">
          <xsl:value-of select="playlist" />
        </content>
      </document>
    </xsl:for-each>
  </vce>
</xsl:template>
Re: sprawdzenie czy juz taka wartosc byla
#10225
Author: szomiz
Date: Thu, 03 Dec 2009 06:28
9 lines
1420 bytes
Użytkownik "broman" <broman@poczta.fm> napisał w wiadomości 
news:514c4399-8d75-40ab-b4ff-2fa30d4109ad@j24g2000yqa.googlegroups.com...

> Tzn. chodzi mi o to żeby dla wartości url która się powtarza nie
> tworzył się nowy węzeł document tylko do istniejącego z tym samym

xsl grupowanie

sz. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads