🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10224

sprawdzenie czy juz taka wartosc byla

#10224
From: 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>
Technical Details
Message-ID: <514c4399-8d75-40ab-b4ff-2fa30d4109ad@j24g2000yqa.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!j24g2000yqa.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!j24g2000yqa.googlegroups.com!not-for-mail
From: broman <broman@poczta.fm>
Newsgroups: pl.comp.xml
Subject: sprawdzenie czy juz taka wartosc byla
Date: Wed, 2 Dec 2009 06:02:11 -0800 (PST)
Organization: http://groups.google.com
Lines: 45
Message-ID: <514c4399-8d75-40ab-b4ff-2fa30d4109ad@j24g2000yqa.googlegroups.com>
NNTP-Posting-Host: 132.188.32.100
Mime-Version: 1.0
X-Trace: posting.google.com 1259762532 27671 127.0.0.1 (2 Dec 2009 14:02:12 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 Dec 2009 14:02:12 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j24g2000yqa.googlegroups.com; posting-host=132.188.32.100;  posting-account=WUBAaAkAAABWYG58dGKx8P67Wnz8SQxQ
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5)  Gecko/20091102 Firefox/3.5.5,gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit