Changeset 4498

Show
Ignore:
Timestamp:
12/23/07 11:15:03 (1 year ago)
Author:
xmlhacker
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/nuxleus/Web/Development/service/transform/controller/proxy/return-news-by-location/base.xslt

    r4392 r4498  
    77  <xsl:template match="proxy:return-news-by-location"> 
    88    <xsl:variable name="location" select="func:resolve-variable(@location)" /> 
    9     <xsl:variable name="topic" select="func:resolve-variable(@topic)" /> 
    10     <xsl:variable name="feed" select="document(concat('http://news.google.com/news?hl=en&amp;q=', $location, '+', $topic, '&amp;ie=UTF-8&amp;output=atom'))"/> 
    11     <xsl:variable name="entries"> 
    12       <xsl:apply-templates select="$feed//atomv03:entry"/> 
     9    <xsl:variable name="topic" select="tokenize(func:resolve-variable(@topic), '\|')" /> 
     10    <xsl:variable name="uri" select="@uri"/> 
     11    <xsl:variable name="result"> 
     12      <xsl:element name="result" namespace="http://nuxleus.com/message/result"> 
     13        <xsl:for-each select="$topic"> 
     14          <xsl:element name="{.}" namespace="http://nuxleus.com/message/result"> 
     15            <xsl:apply-templates select="document(concat('http://news.google.com/news?hl=en&amp;q=', $location, '+', ., '&amp;ie=UTF-8&amp;output=atom'))//atomv03:entry"/> 
     16          </xsl:element> 
     17        </xsl:for-each> 
     18      </xsl:element> 
    1319    </xsl:variable> 
    14     <xsl:copy-of select="$entries" /> 
     20    <xsl:sequence select="$result"/> 
    1521  </xsl:template> 
    1622