MM_XSLTransform error
I was having problems pulling in a feed using David Power's book "Dreamweaver CS4 with CSS, Ajax, and PHP" using the Dreamweaver XSL transformation server behavior. I kept getting the message "Error opening http//www.myfeed.com" but it worked fine on my local server and a different remote server.
I did a search here on the Adobe forums and found a solution but it was way back in 2008 or so. My question is: has Adobe released a patch for this server behavior to insure it works when the hosting company has allow_url_fopen set to "off"? Many hosting companies have this setting turned off, including GoDaddy, which is a very popular hosting company (unfortunately....) so I would think Adobe would have been aware of this and patched this already, but I don't know where to look.
Bopjo wrote:
My question is: has Adobe released a patch for this server behavior to insure it works when the hosting company has allow_url_fopen set to "off"? Many hosting companies have this setting turned off, including GoDaddy, which is a very popular hosting company (unfortunately....) so I would think Adobe would have been aware of this and patched this already, but I don't know where to look.
No, Adobe hasn't issued a patch. Nor is it likely ever to do so. The allow_url_fopen directive is controlled by the server administrator, in your case, GoDaddy. It cannot be overridden, because it's a security setting.
Before the release of PHP 5.2, many hosting companies turned off allow_url_fopen because it allowed you to include scripts from remote servers, which presented a serious security thread. Since PHP 5.2, allow_url_fopen has been made more restrictive, and is on by default. The part that represented a security risk is now covered by allow_url_include, which is off by default. If GoDaddy is running PHP 5.2 with allow_url_fopen turned off, it sounds as though the server administrators haven't understood the security changes. If your server is running an earlier version of PHP, it's time to move to a different server. Versions earlier than PHP 5.2 are no longer supported, and are potentially insecure.
Similar Messages
-
MM_XSLTransform error every time in PHP page
When I apply an XSL Transformation to a PHP page, the page
displays with an MM_XSLTransform error saying the XML file is not a
valid XML document -- even though it absolutely
is valid XML. This is totally reproducable.
Here's a simple example:
library.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<library>
<owner>Mister Reader</owner>
<book>
<isbn>1-2345-6789-0</isbn>
<title>All About XML</title>
<author>John Doe</author>
<language>English</language>
<price currency="usd">24.95</price>
</book>
<book>
<isbn>9-8765-4321-0</isbn>
<title>CSS Made Simple</title>
<author>Jane Smith</author>
<language>English</language>
<price currency="usd">19.95</price>
</book>
</library>
library.xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/">
<h1><xsl:value-of select="library/owner"/>'s
Library</h1>
<xsl:for-each select="library/book">
<p><em><xsl:value-of
select="title"/></em>
by <xsl:value-of select="author"/>
(ISBN <xsl:value-of select="isbn"/>)</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
library.php:
<?php
//XMLXSL Transformation class
require_once('includes/MM_XSLTransform/MM_XSLTransform.class.php');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
$mm_xsl = new MM_XSLTransform();
$mm_xsl->setXML("library.xml");
$mm_xsl->setXSL("library.xsl");
echo $mm_xsl->Transform();
?>
</body>
</html>
When viewing the file library.php, the following error is
displayed in the browser, followed by the raw XML:
library.xml is not a valid XML document.
Non-static method DOMDocument::loadXML() should not be called
statically, assuming $this from incompatible context in file
library.xml.
I wonder whether there is a problem with the include file
MM_XSLTransform, version 0.6.2. Since that include file begins with
a "TODO" note from the programmer, I wonder whether it's not quite
release-ready.
Anyone else having this problem?
Environment:
- Testing Server on localhost
- Windows XP Pro SP2
- Dreamweaver 8.0.2
- PHP 5.1.4
- MySQL 5.0.2.1
- PHP MyAdmin 2.8.1Jon9999 wrote:
> I wonder whether there is a problem with the include
file MM_XSLTransform,
> version 0.6.2. Since that include file begins with a
"TODO" note from the
> programmer, I wonder whether it's not quite
release-ready.
It was release-ready. It worked fine in PHP 5.0, but changes
in PHP
5.1.4 caused it to break. As I understand, Adobe is preparing
a PHP
hotfix that solves several problems caused by the 8.0.2
updater. It also
fixes this one.
In the meantime, you can easily hand fix it yourself.
Comment out line 301, which looks like this:
$xml = DOMDocument::loadXML($content);
Then insert the following two new lines immediately below:
$doc = new DOMDocument();
$err = $doc->loadXML($content);
The rest of the script then continues with this:
restore_error_handler();
So, when you have finished, lines 301-304 will look like
this:
//$xml = DOMDocument::loadXML($content);
$doc = new DOMDocument();
$err = $doc->loadXML($content);
restore_error_handler();
Just in case you're interested in what the problem was: line
301 uses
loadXML() as a static method of the DOMDocument class. As of
PHP 5.1.4,
this isn't allowed. The substitute lines create a DOMDocument
object,
and then call the method on the new object.
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/ -
RSS implementation: error MM_XSLTransform error.
I'm new to this forum so please forgive in advance any dumb questions. I am using CS3 trying to post RSS feeds on my web site from an external xml source. I have configured a testing server running Suse 11.1 / Apache/ PHP 5.2 for development purposes. I create the XSL fragment and can preview the data fine in the browser using the F12 in DW; however, when I import the XSL fragment into a (PHP) web page I get the following message:
MM_XSLTransform error.
The specified file /frag7.xsl could not be found.
I have imported the above fragment with the site root parameter selected, which obviously doesn't work. If I select the document root then I get a plethora of really ugly errors when I preview the page using F12. So the problem appears to be some incorrect interaction of the XSL fragment after it gets imported into the php page, aside from that it works fine.
I am at a loss how to troubleshoot this from here.Will this help
http://pleysier.com.au/rss_example/ -
MM_XSLTransform error. Error opening.
I followed the tutorial on
how
to cosume an rss feed. Works fine locally. When I upload to my
host, I get this error MM_XSLTransform error. Error opening. Host
is running PHP 4.3.11. I am new to consuming an rss feed and do not
know where to begin to troubleshoot. Any ideas or suggestions for
code tweaks? Could this be a result of something lacking on my
hosts end?ihsutd wrote:
> I followed the tutorial on
>
http://www.adobe.com/devnet/dreamweaver/articles/dw_xsl_rss_print.html.
Works
> fine locally. When I upload to my host, I get this error
MM_XSLTransform error.
> Error opening. Host is running PHP 4.3.11. I am new to
consuming an rss feed
> and do not know where to begin to troubleshoot. Any
ideas or suggestions for
> code tweaks? Could this be a result of something lacking
on my hosts end?
Yes. Although the XSL Transformation server behavior is
compatible with
both PHP 5 and PHP 4, the functions used by the different
versions of
PHP are not the same. PHP 5 uses XSL functions, which are
enabled by
default. PHP 4 uses XSLT functions, which are not enabled by
default.
Unless your host has enabled the XSLT functions, the server
behavior
won't work on PHP 4.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
Anyone know why my feed is not showing online? It works
locally and it used to work online. I didn't change any code and
all of sudden its giving me this error.
MM_XSLTransform error.
Transformation Error.
Security
access denied (coldfusion.runtime.FunctionPermission
createobject(java))
my code:
<span class="resheader">Adobe Flash Design
Center</span>
<cfinvoke
component="includes/MM_XSLTransform.MM_XSLTransform"
method="transform"
returnvariable="mm_xsl_output">
<!--- XSL Transformation --->
<cfinvokeargument name="xml" value="
http://rss.adobe.com/en/design_center_flash_tutorials.rss">
<cfinvokeargument name="xsl" value="headlines.xsl">
<cfinvokeargument name="ItemsPerPage" value="3">
</cfinvoke>Bloke wrote:
> Anyone know why my feed is not showing online? It works
locally and it used to
> work online. I didn't change any code and all of sudden
its giving me this
> error.
>
> MM_XSLTransform error.
> Transformation Error.
> Security
> access denied (coldfusion.runtime.FunctionPermission
createobject(java))
>
> my code:
> <span class="resheader">Adobe Flash Design
Center</span>
> <cfinvoke
> component="includes/MM_XSLTransform.MM_XSLTransform"
> method="transform"
> returnvariable="mm_xsl_output">
> <!--- XSL Transformation --->
> <cfinvokeargument name="xml"
> value="
http://rss.adobe.com/en/design_center_flash_tutorials.rss">
> <cfinvokeargument name="xsl"
value="headlines.xsl">
> <cfinvokeargument name="ItemsPerPage" value="3">
> </cfinvoke>
>
Looks like the security settings have changed and your being
denied
access to either the feed or the component that pulls in the
feed.
Steve -
Greetings -
I am using OAS 10.1.3 with Jdev 10.1.3. I am migrating my application from 10.1.2 to 10.1.3.
What i am trying to do is to perform unit testing on a BPEL process.I specify the input XML and i try to run the XSLT . But i am getting this error :
oracle.xml.xpath.XPathException: Extension function error: Class not found 'com.clickcommerce.integration.xpathfunctions.xsl.LookupFunctions'
The namespace that is causing the whole problem is :
xmlns:ccf="http://www.oracle.com/XSL/Transform/java/
com.clickcommerce.integration.xpathfunctions.xsl.LookupFunctions"
I put the jar file containing this respective class in the lib folder, jlib folder and the integration/lib folder. I closed and opened Jdev again and tried to compile.
But still, i am getting the same error. Can anybody give any valuable suggestions to rectify this error ?
Thanks
Ajaykevin raleigh wrote:
> However when I load my files to my server I get this
error!
>
>
MM_XSLTransform error.
> The server could not perform the XSL transformation
because an XSLT processor
> for PHP could not be found. Contact your server
administrator and ask them to
> install an XSLT processor for PHP.
The answer is quite simple: your hosting company doesn't
support the PHP
XSLT extension in PHP 4 or the XSL functions in PHP 5. The
XSLT
extension is not enabled by default in PHP 4, but the XSL
functions are
enabled by default in PHP 5.
It's highly likely that your hosting company is still using
PHP 4. Tell
your hosting company that PHP 5 has been stable since June
2004, and
that you will move your site elsewhere if it doesn't upgrade
to PHP 5 in
the immediate future. Plans to drop support for PHP 4 are now
well
advanced. It's time to make the move.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Hi all,
Having problems adding new RSS feeds (from other websites) to
my site. When I preview the page from the actual xslt file, the
feed shows up correctly, however when I attach it to my page (using
the xslt tranformation button from data tab) and preview, I get the
error:
MM_XSLTransform error.
The specified file /feeds/caribbean_recipe.xsl could not be
found.
I've tried this with another feed with the same result. Any
idea what I'm doing wrong?I think the problem according to the error you got it the
line
$mm_xsl2->setXSL("/feeds/caribbean_recipe.xsl");
I don't think you can do a root level link like that unless
it is a full one like /homepages/hske/html/.....
Try a test page making it a relative link and see if that
works. I know I had issues with file locations and links.
$mm_xsl2->setXSL("../feeds/caribbean_recipe.xsl"); -
DW 8.0.2 hot fix ref 207225 broke with php 5.2.6
DW hotfix 8.0.2 which fixed the following issue (in php
5.1.4),
After upgrading to php 5.2.6 I am receiving the same mm xsl
transform error
I have had to downgrade my php to 5.2.5
Please can this be investigated.
XSL Transformation server behavior doesn't work with PHP
5.1.4An XSLT fragment embedded in a PHP page using the XSL
Transformation server behavior triggers the following
MM_XSLTransform error when processed by a PHP 5.1.4 server:
MM_XSLTransform error.
http://newsrss.mysite.com/rss/rss.xml
is not a valid XML document.
Non-static method DOMDocument::loadXML() should not be called
statically, assuming $this from incompatible context in file
http://newsrss.mysite.com/rss/rss.xml.
The error message incorrectly reports that the XML data
source is not a valid XML document. The same page displays
successfully when processed by a PHP 5.1.2 server. This problem
occurs in Dreamweaver 8.0, 8.0.1 and 8.0.2 and is due to the use of
a static function call that was newly deprecated in PHP 5.1.4.
(Ref. 207225)bikeman01 wrote:
> As I said the problem was fixed up to php 5.2.5. Going
to php 5.2.6. has
> broken this again. I don't know what has changed in php
5.2.6 that might cause
> this.
>
> Are you able to confirm this problem in php 5.2.6?
No. I have installed PHP 5.2.6 on a different machine, and
tested the
XSL Transformation server behavior. It works exactly the same
as in 5.2.5.
> If confirmed, what is the process for raising a bug and
will Adobe fix it?
I cannot confirm the problem, so there's nothing I can see
for Adobe to
fix. However, the correct channel for reporting bugs is
through the form
at the following address:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
Even if a problem can be identified, it's highly unlikely
that Adobe
would issue an updated version of the 8.0.2 hotfix. The
hotfix worked
perfectly with the version of PHP that was current at the
time. Since
then, CS3 has been released, and CS4 is being officially
announced next
Tuesday. If a fix is required (and I don't believe one is),
the normal
policy is to supply it for the current version of
Dreamweaver, not one
that is no longer on sale.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
IF I pull in the RSS 2 Feed, from the latest uploads eg:
http://api.flickr.com/services/feeds/photos_public.gne?id=98234668@N00&lang=en-us&format=r ss_200
I can work with it well, and do whatever I want.
IF I pull in a set feed (which is apparently Atom 1.0) eg:
http://api.flickr.com/services/feeds/photoset.gne?set=72157606748972492&nsid=98234668@N00& lang=en-us
I get nothing usable in Dreamweaver 8.
I have pulled every single item from the feed into the
dreamweaver page, and nothing. Not even a space or paragraph jump
to indicate it tried to pull something, but couldn't.
Now - if I change the photo set code to reflect that is an
RSS 2 feed (ie. add - &format=rss_200) to the end of the line
where it connects to the source, I get the same information as I do
when pulling the "latest" feed, and can work with it no problem. No
problem while previewing the XSL fragment anyhow. Once I call that
fragment from an ASP page, it gives me this error:
MM_XSLTransform error:
"flickrgalleryfeed.xsl" is not a valid XSLT document.
Reference to undeclared namespace prefix: 'media'.
I have tried to declare media using a declaration from the
page that works - to no avail. It just wont parse.
How can I hack the page so that it thinks it is parsing RSS2?
Is this a dreamweaver problem, an IIS 5 problem, or what? Please
help. What is being checked, and by what, to tell my browser (FLock
2 and IE6) that there is a problem???
Remember - the XSL fragment page previews correctly on it's
own. Once it is called by the ASP page it has a problem and
generates the error.
I have viewed the feed directly with Flock and other feed
readers, so I know that there is valid data there, I just can't get
it to display.had the same problem have found the following;
Uploading to Photostream - permissions ok
Uploading to a new set via iPhoto - permissions ok
Uploading into a current Flickr Set (even with current photos in set permission as only you) - permissions of uploaded photo not respected and set to public
Mac OS 10.8.1
iPhoto 9.3.2 -
Set_magic_quotes_runtime is deprecated
I used DWCS3 to produce an XSLT Fragment which pulls in an RSS Feed. I keep getting error messages on my live server telling me:
An error occurred in script '/home/mydomain/includes/MM_XSLTransform/MM_XSLTransform.class.php' on line 187:
<br />Function set_magic_quotes_runtime() is deprecated
Is there a new XSLTransform.class available that does not use this deprecated function?
Any suggestions would be most appreciated.You are sure to find an answer here http://forums.adobe.com/search.jspa?resultTypes=DOCUMENT&resultTypes=MESSAGE&resultTypes=C OMMUNITY&resultTypes=TASK&resultTypes=PROJECT&resultTypes=SOCIAL_GROUP&resultTypes=COMMENT &peopleEnabled=true&q=MM_XSLTransform+error+in+PHP+page
But why not try a Spry solution instead, have a look here http://pleysier.com.au/rss_example/
Gramps -
Hi,
I've been having a problem trying to set up an RSS feed
through XSL transformations and PHP. I'm using Dreamweaver CS3. The
server has PHP5 on it. Based on the error messages I don't think I
have access to create an includes/ folder at the root level. I
tried to upload it into a variety of files (the root folder etc/
folder, in which the php.ini file is, and the folder in which the
php documents are, and domains/kissedbyrain.com/includes/ folder.)
Does anyone have advice as to how to ftp the file myself or some
other fix?
Thanks so much - the details are below (:
I'm hosted on a mediatemple gridserver plan.
Here is the three folders i have at the root level (4 up from
the rssfeeds folder, which the php documents are in) - I don't have
permissions to create any other folders
containers
data
domains
etc
logs
stats
users
and in the domain/kissedbyrain.com/ folder I have
cgi-bin
html
The files are here:
http://kissedbyrain.com/rssfeeds/twitter.php
http://kissedbyrain.com/rssfeeds/twitter.xsl
Here is the error I got on the webpage:
Warning:
require_once(../../includes/MM_XSLTransform/MM_XSLTransform.class.php)
[function.require-once]: failed to open stream: No such file or
directory in
/mnt/gs02/herd03/27094/domains/kissedbyrain.com/html/rssfeeds/twitter.php
on line 3
Fatal error: require_once() [function.require]: Failed
opening required
'../../includes/MM_XSLTransform/MM_XSLTransform.class.php'
(include_path='.:/usr/local/php-5.2.2-1/share/pear') in
/mnt/gs02/herd03/27094/domains/kissedbyrain.com/html/rssfeeds/twitter.php
on line 3
and the error I got when trying to upload to my server
through dreamweaver:
Started: 10/26/2007 11:37 PM
domains\kissedbyrain.com\html\rssfeeds\twitter2.php - Put
operation successful
/includes/MM_XSLTransform/ - error occurred - Unable to
create remote folder /includes/MM_XSLTransform/. Access denied. The
file may not exist, or there could be a permission problem. Make
sure you have proper authorization on the server and the server is
properly configured.
includes\MM_XSLTransform\MM_XSLTransform.class.php - user
cancelled
File activity incomplete. 1 file(s) or folder(s) were not
completed.
Files updated: 1
Files with errors: 1
/includes/MM_XSLTransform/
Finished: 10/26/2007 11:37 PMninakixbutt wrote:
> When I upload the includes folder and the
MM_XSLTransform class, do I need to
> upload in ASCII or binary,
ASCII.
> And do I need to CHMOD it to
> something or anything like that?
Shouldn't be necessary.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Validating HTML with an XML feed
I'm having difficulty getting my home page to validate with
its XML
feed. Here's the w3 validator's erros:
http://tinyurl.com/39kmg2
Basically the validation errors I get are:
there is no attribute "xmlns:dc".
there is no attribute "xmlns:content".
there is no attribute "xmlns:wfw".
This is from the beginning of my XSL file:
<xsl:stylesheet version="1.0"
xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:wfw="
http://wellformedweb.org/CommentAPI/"
xmlns:content="
http://purl.org/rss/1.0/modules/content/"
xmlns:dc="
http://purl.org/dc/elements/1.1/">
I tried taking out those three links but then my page
displays a
MM_XSLTransform error.
How can I get my page to validate?ryansebiz wrote:
> I'm having difficulty getting my home page to validate
with its XML
> feed. Here's the w3 validator's erros:
http://tinyurl.com/39kmg2
>
> Basically the validation errors I get are:
>
> there is no attribute "xmlns:dc".
> there is no attribute "xmlns:content".
> there is no attribute "xmlns:wfw".
>
> This is from the beginning of my XSL file:
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
> xmlns:wfw="
http://wellformedweb.org/CommentAPI/"
> xmlns:content="
http://purl.org/rss/1.0/modules/content/"
> xmlns:dc="
http://purl.org/dc/elements/1.1/">
>
> I tried taking out those three links but then my page
displays a
> MM_XSLTransform error.
>
> How can I get my page to validate?
Anybody? -
XSL , XML, Chilisoft ASP
I have created a asp page that shows xml data using a xsl
transform. It works great on my IIS ( testing server) but not great
when the site go's live as my service provider uses Chilisoft ASP (
or whatever the new name is from sun).
Here is the error message!
MM_XSLTransform error:
Required object ("MSXML2.FreeThreadedDOMDocument") from
Microsoft XML Core Services (MSXML) is not installed.
Download and install the latest version from
http://msdn.microsoft.com/xml
before continuing.
Dreaweaver assumes I will be using an IIS server.
Has anyone got experience with chilisoft ASP and what I can
do to get the page showing correctly. Or a link to a page that
could help me get the correct wording and include files.
Thanks in advanceChilisoft is aptly named - much like a bad bowl of Chili,
it'll give you
heartburn and sleepless nights! Save yourself and avoid it!
Like Nancy
said, go with a Windows server for ASP.
Lawrence Cramer
*Adobe Community Expert* -
http://tinyurl.com/jhnyq
email: lawrence at cartweaver dot com
Cartweaver CF, ASP & PHP Shopping Cart for Dreamweaver
www.cartweaver.com
news://support.cartweaver.com
=====================================================
"Nancy *Adobe Community Expert*" <[email protected]>
wrote in message
news:[email protected]...
> It's not Dreamweaver's fault .. sounds like your host
hasn't got MSXML
> installed. I don't know if that isn't available with
Chilisoft or if your
> host's implementation is too old.
>
> If you really want to use ASP, I would advise changing
to a Windows host.
> ASP with Chilisoft is not really adequate. As you have
seen, it doesn't
> always work.
>
>
> --
> Nancy Gill
> Adobe Community Expert
> BLOG:
http://www.dmxwishes.com/blog.asp
> Author: Dreamweaver 8 e-book for the DMX Zone
> Co-Author: Dreamweaver MX: Instant Troubleshooter
(August, 2003)
> Technical Editor: DMX 2004: The Complete Reference, DMX
2004: A
> Beginner's
> Guide, Mastering Macromedia Contribute
> Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced
PHP Web
> Development
>
>
> "donovan_john_maidens"
<[email protected]> wrote in message
> news:[email protected]...
>>I have created a asp page that shows xml data using a
xsl transform. It
>>works
>> great on my IIS ( testing server) but not great when
the site go's live
>> as my
>> service provider uses Chilisoft ASP ( or whatever
the new name is from
>> sun).
>>
>> Here is the error message!
>> MM_XSLTransform error:
>> Required object ("MSXML2.FreeThreadedDOMDocument")
from Microsoft XML
>> Core
>> Services (MSXML) is not installed.
>> Download and install the latest version from <a
target=_blank
>> class=ftalternatingbarlinklarge
>> href="
http://msdn.microsoft.com/xml">http://msdn.microsoft.com/xml</a>
>> before
>> continuing.
>>
>> Dreaweaver assumes I will be using an IIS server.
>>
>> Has anyone got experience with chilisoft ASP and
what I can do to get the
>> page
>> showing correctly. Or a link to a page that could
help me get the correct
>> wording and include files.
>>
>> Thanks in advance
>>
>>
>>
>
> -
I am working through the tutorial on consuming a remote RSS
1.0 feed. I can
pull in the feeds remotely (see
http://www.basketballfan.us/).
The problem
arises when I try and organize the content source by date or
limit the
number of articles that are shown. Every time I do that I get
this error
message:
MM_XSLTransform error:
"contentsources/cbs.xsl" is not a valid XSLT document.
Keyword xsl:sort may not be used here.
The CBS source file URL is
http://www.basketballfan.us/contentsources/cbs.xsl
Can anyone help me fix this problem?
DavidI am working through the tutorial on consuming a remote RSS
1.0 feed. I can
pull in the feeds remotely (see
http://www.basketballfan.us/).
The problem
arises when I try and organize the content source by date or
limit the
number of articles that are shown. Every time I do that I get
this error
message:
MM_XSLTransform error:
"contentsources/cbs.xsl" is not a valid XSLT document.
Keyword xsl:sort may not be used here.
The CBS source file URL is
http://www.basketballfan.us/contentsources/cbs.xsl
Can anyone help me fix this problem?
David -
MM_XSLTransform.cfc error: cfcatch.Proc
I've been using the MM_XSLTransform.cfc for a couple years to
do XSL transformation on a site, and it's worked quite well. Only
just last night, I started receiving an error regarding
cfctach.Proc:
Element PROC is undefined in CFCATCH. <br>The error
occurred on line 135.
As well as:
Element PROC is undefined in CFCATCH. <br>The error
occurred on line 133.
The version of the CFC that I'm using is 0.6.2, which I
believe is the version that comes with Dreamweaver 8. Not sure if
there's a new version for Dreamweaver CS3 or Dreamweaver CS4, for
that matter.
In any case, the lines in question are as follows:
<cftry>
<cfset XMLParse(myFile)>
<cfcatch type="any">
<cfif type EQ "xml">
<cfset setError(getErrorFromCode('MM_INVALID_XML_ERROR',
errSrc) & cfcatch.Proc & ' ' & mySrc & '<br>'
& cfcatch.Message & '<br>' &
HTMLEditFormat(cfcatch.Detail) & '<br>' &
HTMLCodeFormat(myFile))>
<cfelse>
<cfset setError(getErrorFromCode('MM_INVALID_XSL_ERROR',
errSrc) & cfcatch.Proc & ' ' & mySrc & '<br>'
& cfcatch.Message & '<br>' &
HTMLEditFormat(cfcatch.Detail) & '<br>' &
HTMLCodeFormat(myFile))>
</cfif>
</cfcatch>
</cftry>
This error could also potentially pop up in this section:
<cftry>
<cfset output = XmlTransform(Arguments['xml'],
Arguments['xsl'])>
<cfcatch type="any">
<cfset
setError(getErrorFromCode('MM_TRANSFORMATION_ERROR') &
cfcatch.Proc & & '<br>' & cfcatch.Message)>
</cfcatch>
</cftry>
In looking at the documentation for cfcatch, Proc (as in
cfcatch.Proc) does not appear to be a valid attribute for cfcatch,
and there isn't anywhere else within the cfc where Proc gets tacked
on to the cfcatch.
For now, to prevent the error from occurring, I've commented
out all instances of cfcatch.Proc.
Not sure why this popped up now. It may mean there's an error
in one of my XML files, which I will need to investigate.
If anyone has any insight to share on the perils of
cfcatch.Proc, it would be appreciated.
Thanks,
MarcI am passing RequestTimeOut="120" in the url. The 120 seconds
is the value that has been determined to be the maximum that we
want the app to run before timing out. The issue I have is that the
ColdFusion Blue Error page is not acceptable error handling and I
have not been able to capture the timeout. That is my request, how
to capture the timeout and follow acceptable error handling in this
timeout situation.
Maybe you are looking for
-
How can i create a new folder on my ipad
i recently bought an ipad air, how can i create a folder on the desktop, also how can i read pdf and powerpoint materials on it?
-
Error creating sap db connection
I am getting an error when I try to create a connection within my portal site to a sap r3 system. It happens as soon as I click on the tab. The server shuts down and in the logs I get the following error: Warning R3_DATASOURCE Data source is
-
Question about synchronize() statement and thread scheduling?
I have threads accessing a shared LinkedList in the main thread. I made use of the Collections.synchronizedList() to avoid concurrent modifications. one of the threads is a timer thread and it has a priority of 5 and the other threads are message rec
-
Connectiong to MS-SQL server 7.0
I'm trying to connect to SQL SERVER 7.0 thru OCA using ODBC. I've created a database on the SQL server(name TestVisual) and created a DSN "TestVisual".The userid and password for the database is scott/tiger. I'm trying to run the following SQL script
-
IPhone does not remember song or track or position in playlist or audio book
I am hoping Apple will fix a problem with Ios7.0.x where iPhone does not remember song or track or position in playlist or audio book. It worked fine with ios6.x