Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • another_sam

    (@another_sam)

    Same error here with WP and the plugin updated.

    Thread Starter another_sam

    (@another_sam)

    Oh I’ve seen that it works as expected for simpler XPath expressions. Can it be a problem of the plugin not supporting such a complex XPath expression?

    Thread Starter another_sam

    (@another_sam)

    Sorry, I’m providing a reviewed explanation.

    Instead of being directly between <content> tags, the content is in another feed, with the former marking it as <content type=”application/atom+xml” src=”http://url_to_the_later&#8221; /> and the later marking it as <content type=”html”>actual content here yeah</content>.

    In other words, I have an Atom feed which is only a digest linking to another Atom feeds with only one (but complete) entry, and I want to import not only the titles of the entries, but also its content.

    Thread Starter another_sam

    (@another_sam)

    I’m providing a reviewed explanation for more precision.

    Instead of being directly between <content> tags, the content is in another Atom feed, with the former marking it as <content type=”application/atom+xml” src=”http://url_to_the_later&#8221; /> and the later marking it as <content type=”html”>actual content here yeah</content>.

    In other words, I have a feed which is only a digest linking to another Atom feeds with only one (but complete) entry, and I want to import not only the titles of the entries, but also its content.

    Thread Starter another_sam

    (@another_sam)

    Sorry for the delay. I don’t have a public host for this project yet and I was writing a simplified demo.

    So there is a digest feed (digest-feed.xml) and a detail feed (detail-feed.xml).

    You can see the <content … /> in the former and the <content>…</content> in the later.

    Thanks.

    digest-feed.xml

    <?xml version="1.0" encoding="utf-8"?>
    <feed xmlns="http://www.w3.org/2005/Atom">
      <title>digest feed title</title>
      <link rel="self" href="http://localhost/digest-feed.xml" type="application/atom+xml"/>
      <updated>2013-02-08T13:58:38Z</updated>
      <id>http://localhost/digest-feed.xml</id>
      <author>
        <name>.</name>
      </author>
    
      <entry>
        <id>http://localhost/detail-feed.xml</id>
        <title>title of the entry</title>
        <content src="http://localhost/detail-feed.xml" type="application/atom+xml" />
        <updated>2013-02-07T13:58:38Z</updated>
        <summary>this is a summary</summary>
      </entry>
    
    </feed>

    detail-feed.xml

    <?xml version="1.0" encoding="utf-8"?>
    <feed xmlns="http://www.w3.org/2005/Atom">
      <title>detail feed title</title>
      <link rel="self" href="http://localhost/detail-feed.xml" type="application/atom+xml"/>
      <updated>2013-02-08T13:58:38Z</updated>
      <id>http://localhost/detail-feed.xml_container</id>
      <author>
        <name>.</name>
      </author>
    
      <entry>
        <id>http://localhost/detail-feed.xml</id>
        <title>title of the entry</title>
        <content type="xhtml">
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>first paragraph of the content</p>
            <p>second paragraph of the content</p>
          </div>
        </content>
        <published>2013-02-07T13:58:38Z</published>
        <updated>2013-02-07T13:58:38Z</updated>
      </entry>
    
    </feed>
    Thread Starter another_sam

    (@another_sam)

    Thank you very much for such a fast answer.

    Sorry. The scenario is more feasible than I explained, since the digest in question points to another Atom feed with only one entry _and_ a filled content tag.

    Could this be achieved with your plugin, or with another that you know?

    Thank you again.

    Thread Starter another_sam

    (@another_sam)

    Because Flash is battery-hungry, unsafe, and declining, and I did not know attractive alternatives.

    Yes. Please fix it. I’m trying other translation plugins because I can’t bear not debugging my code and WPML prevents me from doing it.

Viewing 8 replies - 1 through 8 (of 8 total)