Here is the test case, with r540:

* xml is in: http://localhost/xsltforms/data/uploads.xml (with
<?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?>)
* xsl is in: http://localhost/xsltforms/test/xsltforms/xsltforms.xsl
which has inside: <xsl:include href="extension.xsl"/>
* extension xsl is in: 
http://localhost/xsltforms/test/xsltforms/extension.xsl
* xml loads ok but when trying to load profiler or tracelog it doesn't
work. In web server log we can see:

GET /xsltforms/test/data/uploads.xml HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/xsltforms.xsl HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/extension.xsl HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/config.xsl HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/xsltforms.css HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/xsltforms.js HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/magnify.png HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/valid-xforms11.png HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/poweredbyXSLTForms.png HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/F1.png HTTP/1.1" 304 -
*GET /xsltforms/test/data/extension.xsl HTTP/1.1" 404 1284*

With r537 it works ok:

GET /xsltforms/test/data/uploads.xml HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/xsltforms.xsl HTTP/1.1" 304 -
GET /xsltforms/test/xsltforms/extension.xsl HTTP/1.1" 200 6277
GET /xsltforms/test/xsltforms/config.xsl HTTP/1.1" 200 1469
GET /xsltforms/test/xsltforms/xsltforms.css HTTP/1.1" 200 6348
GET /xsltforms/test/xsltforms/xsltforms.js HTTP/1.1" 200 326890
GET /xsltforms/test/xsltforms/magnify.png HTTP/1.1" 200 2643
GET /xsltforms/test/xsltforms/valid-xforms11.png HTTP/1.1" 200 2909
GET /xsltforms/test/xsltforms/poweredbyXSLTForms.png HTTP/1.1" 200 3950
GET /xsltforms/test/xsltforms/F1.png HTTP/1.1" 200 741
*GET /xsltforms/test/xsltforms/extension.xsl HTTP/1.1" 304 -*


El 23/04/12 21:32, Alain Couthures escribió:
> Hello Javier,
>
> A post in an SF forum
> (http://sourceforge.net/projects/xsltforms/forums/forum/878085/topic/5207937)
> reported an issue and I read that the load method is now deprecated in
> FireFox and that XmlHttpRequest has to be used instead
> (http://forums.mozillazine.org/viewtopic.php?f=25&t=2344451).
>
> The issue that you detected with rev540 sounds to be related to
> relative path being interpreted differently.
>
> Is it possible for you to propose a test case for it?
>
> Thanks!
>
> -Alain
>
> Le 23/04/2012 20:25, Javier Díaz a écrit :
>> Hello,
>>
>> I have an "include" in xsltforms.xsl to another xsl, and with this
>> change in r540 instead loading included xsls as relative, they are
>> loading it as an absolute url. ¿Is necesary this change?
>>
>>
>> @@ -974,16 +995,18 @@
>>                                  xsltDoc = parser.parseFromString(xslt,
>> "text/xml");
>>                          } else {
>>                                  xsltDoc =
>> document.implementation.createDocument("","",null);
>> +                               /*
>>                                  if (xsltDoc.load) {
>>                                          xsltDoc.async = false;
>>                                          xsltDoc.load(xslt);
>>                                  } else {
>> -                                       var xhttp = new
>> XMLHttpRequest();
>> -                                       xhttp.open("GET", xslt, false);
>> -                                       xhttp.send("");
>> -                                       xslt = xhttp.responseText;
>> -                                       xsltDoc =
>> parser.parseFromString(xslt, "text/xml");
>>                                  }
>> +                               */
>> +                               var xhttp = new XMLHttpRequest();
>> +                               xhttp.open("GET", xslt, false);
>> +                               xhttp.send("");
>> +                               xslt = xhttp.responseText;
>> +                               xsltDoc = parser.parseFromString(xslt,
>> "text/xml");
>>                          }
>>
>>
>> I will explain it better:
>>
>> I have xsltforms.xsl in "/xsltforms/xsltforms.xsl" with an include to
>> "myxsltforms.xsl". Instead loading it in "/xsltforms/myxsltforms.xsl" is
>> trating to load it in "/myxsltforms.xsl". I think it is incorrect...
>>
>> Best Regards,
>> Javier
>>
>















************************************************************************************************************************************************
*La información contenida en este mensaje de correo electrónico es confidencial 
y puede revestir el carácter de reservada.   *
*Está dirigida exclusivamente a la persona destinataria.                        
                                                                           *
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje 
no están autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.       
                                                                   *
*The information in this e-mail is confidential and may be legally privileged.  
                                                                      *
*It is intended solely for the addressee.                                       
                                                                                
    *
*Access or any use by any other person to this Internet e-mail is not 
authorised and may be unlawful.                                 *
*If you are not the intended recipient, please delete this e-mail.              
                                                                           *
************************************************************************************************************************************************
 

<<attachment: jdiaz.vcf>>

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to