5 users online. Create an account or sign in to join them.Users

Search

Hi,

well… I’ve got a little problem getting the entry of a Twitter-Feed. Until now, I’ve managed this by pulling the feed via a dynamic XML datasource and parsing it with <xsl:value-of select='twitter/statuses/status/text'>. In this case, the DS is named “Twitter” and everything works fine.

Now, when changing the name of the DS (e.g. “Twittertwo”) nothing appears anymore on the choosen page. Nevertheless, the Feed is been cached in MySQL, so something is going wrong with the output.

Any idea?

Hi Exumcalin. Could you provide a bit more about the problem you’re having please?

I’m sorry, I had wrote the beginning on my XDA and pushed it online unintentional - ‘my fingers out of control’. :P

When you change the name of the Data Source, the XML will change too. Your XPath may now need to be:

twittertwo/statuses/status/text

Try adding ?debug to the end of your Symphony page URL and you should see the XML.

…but this is not working.

Which? The XPath or ?debug? Make sure you’re logged-in to Symphony before you debug. Can you copy the XML from the debug page and paste it onto http://pastie.org for us to see?

Of course the behaviour of xpath/xml/…

My XML is not minimalistic enough for pastebins, but it’s reproducible in - I think - all ensembles (e.g. pianosonata).

Unfortunately we can’t really help with XPath unless we can see the XML itself. It doesn’t matter how length it is, Pastie should cope!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details