[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

XSL Problem : The stylesheet does not contain a document element...

Asked by bigbam28 in Extensible Markup Language (XML), Extensible HTML (XHTML)

Tags: stylesheet, does, contain, document, element

Hi,

I'm trying to display the result of a XML file in a PHP file with a XSL Stylesheet. I always get this error:

Fatal error: Uncaught exception 'com_exception' with message 'Source: msxml3.dll
Description: The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document.

this is the code that I use in my php file:

$xmlRequest="";
$xmlRequest = " <?xml version=\"1.0\" ?> ";
$xmlRequest = $xmlRequest . "<eparcel>";
$xmlRequest = $xmlRequest . "<language> fr </language>    ";
$xmlRequest = $xmlRequest . "<ratesAndServicesRequest>  ";
$xmlRequest = $xmlRequest . "  <merchantCPCID> CPC_LA_PROCURE </merchantCPCID>   ";
$xmlRequest = $xmlRequest . "  <lineItems>  ";
$xmlRequest = $xmlRequest . "    <item>  ";
$xmlRequest = $xmlRequest . "      <quantity> 6 </quantity>  ";
$xmlRequest = $xmlRequest . "      <weight> 1.5 </weight>  ";
$xmlRequest = $xmlRequest . "      <length> 1 </length>                  ";
$xmlRequest = $xmlRequest . "      <width> 1 </width>  ";
$xmlRequest = $xmlRequest . "      <height> 1 </height>  ";
$xmlRequest = $xmlRequest . "      <description>Mon article type</description>  ";
$xmlRequest = $xmlRequest . "    </item>           ";
$xmlRequest = $xmlRequest . "  </lineItems>          ";
$xmlRequest = $xmlRequest . "  <city> Gatineau </city>          ";
$xmlRequest = $xmlRequest . "  <provOrState> Quebec </provOrState>  ";
$xmlRequest = $xmlRequest . "  <country>  CANADA </country>  ";
$xmlRequest = $xmlRequest . "  <postalCode> J8M2A4 </postalCode>  ";
$xmlRequest = $xmlRequest . "</ratesAndServicesRequest>  ";
$xmlRequest = $xmlRequest . "</eparcel>";

$URL = "http://206.191.4.228:30000";

$xmlhttp= new COM("MSXML2.ServerXMLHTTP");
$xmlhttp->open("POST", $URL, false);
$xmlhttp->send($xmlRequest);

$xml= new COM("Msxml2.DOMDocument");
$xml->async = false;
$xml->loadXml($xmlhttp->responseText);

$xsl= new COM("Msxml2.DOMDocument");
$xsl->async = false;
$xsl->load("HTMLProductDisplay-f.xsl");

$response=$xml->transformNode($xsl);

The error coming at this line :
$response=$xml->transformNode($xsl);

What can it be?
 
Loading Advertisement...
 
[+][-]05/19/05 05:48 PM, ID: 14042108Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 07:21 PM, ID: 14042571Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/19/05 09:11 PM, ID: 14042945Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 09:12 PM, ID: 14042950Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 09:13 PM, ID: 14042953Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 09:27 PM, ID: 14042981Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/19/05 10:49 PM, ID: 14043208Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 10:50 PM, ID: 14043209Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 11:15 PM, ID: 14043271Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/19/05 11:23 PM, ID: 14043294Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/20/05 06:06 AM, ID: 14045057Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/20/05 06:12 AM, ID: 14045097Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/20/05 06:34 AM, ID: 14045286Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/20/05 06:47 AM, ID: 14045424Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/20/05 07:55 AM, ID: 14046024Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/20/05 10:30 AM, ID: 14047338Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/23/05 09:36 PM, ID: 14065664Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Extensible Markup Language (XML), Extensible HTML (XHTML)
Tags: stylesheet, does, contain, document, element
Sign Up Now!
Solution Provided By: Ceiled
Participating Experts: 4
Solution Grade: A
 
[+][-]05/24/05 12:31 PM, ID: 14071790Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/25/05 12:15 PM, ID: 14080541Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/05 02:00 PM, ID: 14081482Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81