English 中文(简体)
通过xslt向子公司发送
原标题:Translating itunes affiliate rss via xslt

我无法为我的生活做这项工作。 这里是Ixml从SRSS从附属公司获得的食物。 我想在标签内重印价值观,但出于某种原因,我不能:

<?xml version="1.0" encoding="utf-8"?>

    <feed xmlns:im="http://itunes.apple.com/rss" xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
            <id>http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/limit=100/genre=6014/xml</id><title>iTunes Store: Top Paid Applications</title><updated>2010-03-24T15:36:42-07:00</updated><link rel="alternate" type="text/html" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewTop?id=25180&amp;popId=30"/><link rel="self" href="http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/toppaidapplications/sf=143441/limit=100/genre=6014/xml"/><icon>http://phobos.apple.com/favicon.ico</icon><author><name>iTunes Store</name><uri>http://www.apple.com/itunes/</uri></author><rights>Copyright 2008 Apple Inc.</rights>

                    <entry>
                            <updated>date</updated>

                                    <id>someID</id>

                                    <title>a</title>
                                    <im:name>b</im:name>
                    </entry>
                    <entry>
                            <updated>date2/updated>

                                    <id>someID2</id>

                                    <title>a2</title>
                                    <im:name>b2</im:name>
                    </entry>
    </feed>

如果我尝试<xsl:apply-templatescomp=“enter”/>,它便可发现整个档案内容。 如果我使用<代码><xsl:bet-template name=“enter”>,它只显示一个条目,我必须使用<xsl: Value-of selected=”/*[局名]/>以获得姓名,但又使用黑体。 I ve在Xml之前使用了xslt,没有姓名空间和Xml,而母幼关系良好,但并不像RSS那样。 通知的条目或任何内容均不包括在内。

感谢任何帮助。 我想使用xslt,因为我想改变连接点,以便通过我的附属账户——这样,对我来说是自动化的灯塔。

最佳回答

www.un.org/Depts/DGACM/index_spanish.htm 你是没有名称空间的对等元素,但XML文件的实际内容确实属于(聋.)号:xmlns=”http://www.w3.org/2005/Atom”

因此,你需要宣布你风格的地名空间,请说xmlns:atom=”http://www.w3.org/2005/Atom"。 然后,不仅在{elementName}上,而且在{atom:elementName}上,你的情况是:“入境”。

问题回答

暂无回答




相关问题
When test hanging in an infinite loop

I m tokenising a string with XSLT 1.0 and trying to prevent empty strings from being recognised as tokens. Here s the entire function, based on XSLT Cookbook: <xsl:template name="tokenize"> ...

quick xslt for-each question

Let s say I have an XML document that has this: <keywords> <keyword>test</keyword> <keyword>test2</keyword> <keyword>test3</keyword> <keyword>test4</...

XSLT Transform XML with Namespaces

I m trying to transform some XML into HTML using XSLT. Problem: I can t get it to work. Can someone tell me what I m doing wrong? XML: <ArrayOfBrokerage xmlns:i="http://www.w3.org/2001/...

XSLT output to HTML

In my XSLT file, I have the following: <input type="button" value= <xsl:value-of select="name">> It s an error as it violates XML rule. What I actually want is having a value from an ...

Mangling IDs and References to IDs in XML

I m trying to compose xml elements into each other, and the problem I am having is when there s the same IDs. Basically what I need to do is mangle all the IDs in an xml file, as well as the ...

Sharepoint 2007 Data view Webpart custom parameters

I m sort of new to the custom parameters that can be setup on a DataView Webpart. There are 6 options: - None - Control - Cookie - Form - QueryString - Server Variable I think that None, Cookie and ...