Mambot mosxslt and an external xml file

Discuss the development and implementation of Joomla! bots/Plugins here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
photophiles
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Nov 21, 2006 1:20 pm

Mambot mosxslt and an external xml file

Post by photophiles » Wed Apr 04, 2007 1:46 pm

Hi
I use the mambot mosxslt to combine xml file and xslt file. It works but only if I work with a local xml file (on my server).
Is it possible to make it work with an external xml file like URL given by some affiliation (amazon, alapage, pricerunner..) ??
Thanks for your ideas

User avatar
eskwire
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Sun Sep 25, 2005 3:57 pm
Location: Atlanta, GA
Contact:

Re: Mambot mosxslt and an external xml file

Post by eskwire » Tue Aug 21, 2007 2:23 pm

I am looking to accomplish the same task.

Were you able to get this worked out?

Thanks!

photophiles
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Nov 21, 2006 1:20 pm

Re: Mambot mosxslt and an external xml file

Post by photophiles » Tue Aug 21, 2007 4:38 pm

No, never succeeded,
I use a php file to combine xslt and xml like this one, then a module for joomla to insert the php file... really not perfect, but works

$xml_file="http://";
$xsl_file = "yourfile.xsl";
$xh = xslt_create();
$file=fopen($xml_file,"r");
while (!feof($file)) {
$xml .= fread($file, 1024);
}
fclose($file);
$file=fopen($xsl_file,"r");
$xsl=fread($file,16384);
fclose($file);
$arguments = array(
'/_xml' => $xml,
'/_xsl' => $xsl
);
$result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments);
xslt_free($xh);
print "$result";

User avatar
eskwire
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 118
Joined: Sun Sep 25, 2005 3:57 pm
Location: Atlanta, GA
Contact:

Re: Mambot mosxslt and an external xml file

Post by eskwire » Tue Aug 21, 2007 4:46 pm

Thanks for this!

Do you have a copy of botmosxslt or mosxslt?

I have been looking for this mambot but have been unable to find it.

If I get any solution worked out I will post it back to this thread

Thanks again. 

hablutzel1
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Apr 02, 2009 8:40 pm

Re: Mambot mosxslt and an external xml file

Post by hablutzel1 » Fri Jan 08, 2010 1:43 pm

mosxslt Plugin/Mambot http://brentbushnell.com/2008/02/06/joomla-xsl-mambot/ I'm just about to test it, I hope it allow me to format tables faster in joomla articles.

hablutzel1
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Apr 02, 2009 8:40 pm

Re: Mambot mosxslt and an external xml file

Post by hablutzel1 » Thu Jun 24, 2010 5:34 am

I've been using mosxslt for a long time and it works quite well, it is interesting to know all the kind of things you can get done with xml and xslt

hablutzel1
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Thu Apr 02, 2009 8:40 pm

Re: Mambot mosxslt and an external xml file

Post by hablutzel1 » Thu Jun 24, 2010 1:23 pm

Now I can remember that I modified the plugin to get it working, furthermore I added support to specify the place where the plugin will search for xslt and xml files, I'm attaching the modified plugin, to get it working you have to add support for xslt tranformations to your php5 installation, furthermore, by default you will need to create the folder

joomla/mosxslt/xml

Because the plugin will search for xslt and xml in that folder, but you can change it through the plugin administration. Let me know if it has bugs (maybe loading xml files through http, because I haven't tested that).
You do not have the required permissions to view the files attached to this post.

painkiller009
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jun 15, 2010 6:57 am

Re: Mambot mosxslt and an external xml file

Post by painkiller009 » Fri Sep 24, 2010 3:35 am

Hi,

I'm badly looking for XSL plugin. I have installed this component. But somehow it's recognized in the article. Please see it here. http://www.cricintel.co.cc/test-xml-xsl

I have activated legacy plugin and installed mosxslt_modified.zip . Any help would be really appreciated.


Locked

Return to “Plugins/Mambots”