Mambot mosxslt and an external xml file
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.
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.
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Nov 21, 2006 1:20 pm
Mambot mosxslt and an external xml file
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
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
- eskwire
- Joomla! Enthusiast
- Posts: 118
- Joined: Sun Sep 25, 2005 3:57 pm
- Location: Atlanta, GA
- Contact:
Re: Mambot mosxslt and an external xml file
I am looking to accomplish the same task.
Were you able to get this worked out?
Thanks!
Were you able to get this worked out?
Thanks!
-
- Joomla! Apprentice
- Posts: 10
- Joined: Tue Nov 21, 2006 1:20 pm
Re: Mambot mosxslt and an external xml file
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";
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";
- eskwire
- Joomla! Enthusiast
- Posts: 118
- Joined: Sun Sep 25, 2005 3:57 pm
- Location: Atlanta, GA
- Contact:
Re: Mambot mosxslt and an external xml file
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.
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.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Apr 02, 2009 8:40 pm
Re: Mambot mosxslt and an external xml file
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.
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Apr 02, 2009 8:40 pm
Re: Mambot mosxslt and an external xml file
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
-
- Joomla! Apprentice
- Posts: 12
- Joined: Thu Apr 02, 2009 8:40 pm
Re: Mambot mosxslt and an external xml file
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).
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.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Tue Jun 15, 2010 6:57 am
Re: Mambot mosxslt and an external xml file
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.
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.