Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Re: xsl-list Digest 21 Oct 2005 05:10:01 -0000 Issue 575

From: Rui Paiva <rmpaiva@--------->
To:
Date: 10/21/2005 5:26:00 PM
Hi everyone,

here's an interesting bug (I think) that needs some looking into.

I am writing a rather complex app, using a mixture of Javascript, XSLT and
CSS. My objective is to write a completely client side app, with a "stupid"
file server on the server side, thus the complex architecture.

Here's the technical explanation of what I am doing:

1. OnLoad of the page, I use the Javascript "new
ActiveXObject('MSXML2.FreeThreadedDOMDocument');", followed by the load()
method to load a xml file.
2. I also load a XSLT file using "new ActiveXObject("Msxml2.XSLTemplate");",
create a processor an apply the transform using Javascript again.
3. The XML file loaded in step (1) contains several nodes with
"relativePath/filenames.xml". The transform of step (2) loads some of these
files, merging them with the initial one, using the xpath:document()
function.
4. I present the result using another XSL transformation, but it's not
relevant for the problem. It displays a navigation tree.
5. When I click on a node (trying to expand it), I apply the same
transformation of step (2), to merge some more xml files into the initial
one. This allows me to load and merge the xml files as needed, without the
hassle of programming the actual loads and merges via Javascript.

Please check the left side of the following page:
http://ruipaiva.dnip.net/pbnew/PictureLibrary.html

Ok, the problem arrises when I try to expand the "br" node. IE throws an
error saying he "cannot find the path specified".
This is probably due to a relative path problem.

My problem is that, since I use Javascript to apply transformations, and
XSLT to load files, I cannot spot where the relative path problem is coming
from.
When I examine the resulting DOM for each step of the transformation, all
the relative paths are correct for the next files to load. (I can put that
DOM into a popup window if it helps anyone to diagnose the problem (and any
other you might need) .

Structure of the site:
starting path: start/PictureLibrary.html file.
the xsl file that merges the xml's is start/xslt/FileListProcessing.xsl
the first xml file is under directory start/pictures/2005-07-21 Brazil.xml
all the other xml files to be merged are under several sub-directories of
start/pictures/........

As proof that the relative paths are correct, I changed the javascript to
run over firefox too, and it's working fine there...

Anybody has any idea why the transform is working the first time, but not
the following ones under IE ?

Anybody understood what I am talking about at all ? ;)

Thanks for your help...

Rui


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent