Skip to main content
Known Participant
July 13, 2007
Answered

error in xslt transformation

  • July 13, 2007
  • 17 replies
  • 2770 views
hi
i make xsl fragment from rss feed and it shows the data perfectly when testing xsl file .

i make php page and go to application panel and make xslt transformation and when click ok it gives me message

the page appears with the &nsap and np blah blah ,,,,,,,,
ant at the top of the page says "MM_XSLTransform error."

so what to do ? i want to show what i have transformed in my php page how?

thanks in advance.
This topic has been closed for replies.
Correct answer Newsgroup_User
macnux wrote:
> you can take alook at server info i made it in order to see it
> actualy xsl is supported and every thing is good here

Yes, XSL is definitely supported. Your problem is that allow_url_fopen
is turned off. This prevents the XSL Transformation server behavior from
accessing the RSS feed. Unfortunately, there's nothing you can do about
this unless you can persuade your hosting company to turn
allow_url_fopen on. The good news is that your server uses PHP 5.2.3,
which has the following separate directives and settings:

allow_url_fopen Off
allow_url_include Off

Hosting companies typically turn off allow_url_fopen to prevent sites
from including material from other servers, which can be a security
risk. In PHP 5.2, allow_url_fopen no longer allows files to be included
directly into a script. The new directive allow_url_include now controls
remote includes.

What you need to persuade your hosting company is to use these settings:

allow_url_fopen On
allow_url_include Off

This would allow you to pass RSS feeds to the XSL Transformation server
behavior, but prevent the security risk of including a remote file
directly inside your script. However, it might be difficult to persuade
a support person to alter the company's policy, even though this change
is designed to make PHP much safer to use.

If you can't get the hosting company to change its policy, submit a
feature request to Adobe, asking them to improve the server behavior so
that it uses a socket connection or cURL.

http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Socket or cURL connections get around the problem of allow_url_fopen
being turned off, but they're not supported by the XSL Transformation
server behavior.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

17 replies

Inspiring
July 18, 2007
macnux wrote:
> mu xsl code

I have copied your code, and had no difficulty embedding it with the XSL
Transformation server behavior into an ordinary PHP page.

Are you using Dreamweaver 8? If so, have you installed the PHP updater
for Dreamweaver 8.0.2? First you need to make sure your program is
updated to DW 8.0.2. Then you install the PHP hotfix extension.

http://www.adobe.com/support/dreamweaver/downloads_updaters.html
http://www.adobe.com/go/b6c2ae2a

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Participant
April 6, 2008
thanks for this discussion. the update and hotfix linx were much appreciated! fixed my issue!
macnuxAuthor
Known Participant
July 18, 2007
mu xsl code
--------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource=" http://forums.microsoft.com/MSDN/rss.aspx?ForumID=159&Mode=0&SiteID=1" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#160;">
<!ENTITY copy "&#169;">
<!ENTITY reg "&#174;">
<!ENTITY trade "&#8482;">
<!ENTITY mdash "&#8212;">
<!ENTITY ldquo "&#8220;">
<!ENTITY rdquo "&#8221;">
<!ENTITY pound "&#163;">
<!ENTITY yen "&#165;">
<!ENTITY euro "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" xmlns:sy=" http://purl.org/rss/1.0/modules/syndication/" xmlns:slash=" http://purl.org/rss/1.0/modules/slash/" xmlns:dc=" http://purl.org/dc/elements/1.1/">
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/">
<xsl:for-each select="rss/channel/item">
<p><xsl:value-of select="title"/></p>
<p><xsl:value-of select="link"/></p>
<p><xsl:value-of select="description" disable-output-escaping="yes"/></p>
<hr />
<p> </p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Inspiring
July 18, 2007
macnux wrote:
> what cause this error "MM_XSLTransform error" ?

Without seeing your XSL code, it's impossible to say.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
macnuxAuthor
Known Participant
July 17, 2007
what cause this error "MM_XSLTransform error" ?
macnuxAuthor
Known Participant
July 17, 2007
any help
macnuxAuthor
Known Participant
July 15, 2007
as i said it's a fragment and when testing it it shows data perfectly but when transforming by server side transformation gives me this error "MM_XSLTransform error."

any help

thanks in advance.
Inspiring
July 13, 2007
macnux wrote:
> "please remove existing html head or body in the currenct document since they
> are already in the applied xslt (Entire) file"

There are two types of XSLT page that you can create in Dreamweaver. An
XSLT (Entire page) file is precisely that - it's self contained. To
embed XSLT in a PHP page, you need to use an XSLT Fragment. Go to File >
New, and select XSLT Fragment from the New Document dialog.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/