| 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&q=', $location, '+', $topic, '&ie=UTF-8&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&q=', $location, '+', ., '&ie=UTF-8&output=atom'))//atomv03:entry"/> |
|---|
| | 16 | </xsl:element> |
|---|
| | 17 | </xsl:for-each> |
|---|
| | 18 | </xsl:element> |
|---|