xsl-list
[Top] [All Lists]

Re: Dynamic processing of xml file using xsl and javascript

2004-11-15 16:00:05
Hmmm.... this is an interesting one to tackle as I am currently working on bring support for Saxon.NET based transformations via IE and Mozilla based browser and its always good to see what issues/problems already exist. Given this one hasnt been solved yet it would be a good one to try and solve as it always seems to make it that much easier to understand why something is doing something (wrong in this case) by using hands on experience...

I cant put any immediatte time into it but in about an hour to an hour and a half I can and will... Ill report back what I discover.,..

Cheers!

<M:D/>

Alan Divorty wrote:

Thanks M:D, but I'd already tried Google but couldn't find anything
relevant.

data_moz.html is a simple html file containing the script and I created
data.xml and data.xsl to match the script.  These files have been proven to
be well formed by running successfully in a separate script for Internet
Explorer.  (Cut down versions of the same files you helped me with on the
Expression Syntax thread.)

Also, if I hard code the link to the xsl file into the xml file header then
it works fine.  However, I'm trying to emulate the script I have for IE
because I eventually want to append today's date as an external parameter.

Alan


----- Original Message -----
From: "M. David Peterson" <m(_dot_)david(_at_)mdptws(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, November 15, 2004 9:24 PM
Subject: Re: [xsl] Dynamic processing of xml file using xsl and javascript


Google for:
0x80004001 (NS_ERROR_NOT_IMPLEMENTED)


http://www.google.com/search?hl=en&q=0x80004001+%28NS_ERROR_NOT_IMPLEMENTED%
29&btnG=Google+Search
And you will find all sorts of examples as to why other encounter this
same error.  Its a generic object error code that is obvious not
specific just to Transformix (the Mozilla XSLT 1.0 processor).  Let me
ask you this.,..  is data_moz.html the file that contains this script or
is the file you are attempting to process?  The latter would definitely
cause a problem, although I dont know the specific error it would return
(unless its XHTML of course but even then it depends on how you declared
your document type etc...  remember, the XML parser is looking for <? as
the first string it encounters... there are some parsers that wont mind
as long as its well-formed... im not sure if the parser used by
Transformix is strict on the opening characters of an XML document or
not but if you are attempting to process an HTML file, be it XHTML or
regular HTML there are all sorts of reasons that this will not work....

Look through the google links as well as this should at least give you a
better understanding of where the error is coming from and why.

HTHs!

<M:D/>



Alan Divorty wrote:

Error: [Exception... "Component returned failure code: 0x80004001
(NS_ERROR_NOT_IMPLEMENTED) [nsIXSLTProcessor.importStylesheet]"
nsresult:
"0x80004001 (NS_ERROR_NOT_IMPLEMENTED)"  location: "JS frame ::
file:///g:/sjc/data_moz.html :: onload :: line 31"  data: no]
Source File: file:///g:/sjc/data_moz.html
Line: 31

Line 31 is the "processor.importStylesheet(dataXSL);" line.

I've tested my data.xml and data.xsl file in an IE script and they work
fine.

I've also upgraded from Firefox 0.8 to 1.0

Any ideas?

Thanks,
Alan





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--