|
Email lists >
JavaScript Information >
Re: xslt problem in FF >
Re: xslt problem in FF
Re: xslt problem in FF
This post if a part of this thread
|
2007-11-06 06:29:57 |
|
|
Re: xslt problem in FF
|
|
|
|
hello All,
i m thinking can we do in this way that can we call PC:ColumnTitle() for javacript stuff....
On 11/6/07, abhimanyu singh < er.abhimanyu gmail.com">er.abhimanyu gmail.com> wrote:
hello all,
any body got any new issue in this post..........if yes let us also know what?
thanx
Abhimanyu singh
On 11/5/07, abhimanyu singh <gmail.com" target="_blank">er.abhimanyu gmail.com
> wrote:
All,
i have also check a lot that but didnt get how to use addobject function for FF.since the main advantage for using the same is u can process a table header so u can make a differnent call of other function.....
for example...
in xslt,
<script>
var a= new Array()
a.length=10;
a.color="red";
</script>
<xsl:value-of select="PC:functionname($a) />
and u can give the definition of this function in js show u can do more better useful stuff.
i believe there should be a similar way to do this........if addobject() method is not there then some alternative should be there...............
this is the helpful link where u will find all the method for xsltprocessor.....
this is really very hot issue.....because smthing is working in IE but not other browser....
regards,
Abhimanyu Singh
On 11/5/07, Israel Schulman <gmail.com" target="_blank">israel.schulman gmail.com
> wrote:
I'm copying and pasting replies to this post which were put in the wrong thread. __________________________________________________________________
Hi,
I'd say a reason for nobody answering might be that you posted your query in the wrong topic. Namely in a topic about event handling.
I looked at the group and your messages aren't posted there. I'd
suggest opening a new thread with your query.
On topic:
I have no big experience with XSLT, but after a couple of quick tests I have the following results.
- your syntax is odd: It looks as if you are using a generator - which is fine - but
the xslt document is not valid and fails therefor in Firefox. removing all the leading spaces in quoted arguments gets rig of most of the problem.
- you are using XMLHTTPRequest to retrieve the XSLT. I think this is
okay, but using document.implementation is shorter
var process = new XSLTProcessor(); var xslStylesheet = document.implementation.createDocument("", "", null);
xslStylesheet.async = false; process.importStylesheet(xslStylesheet);
- the addObject function in IE you are using to process the Table header isn't present in the FF version. I searched the web for something similar but couldn';t find
anything suitable. I suggest putting the table header straight into the XSLT will solve the problem
Maybe that helps.
-- mozilla code from emp.html try{ var myDOM;
var xmlDoc; var process = new XSLTProcessor(); var xslStylesheet = document.implementation.createDocument("", "", null); xslStylesheet.async
= false; xslStylesheet.load("emp.xsl"); process.importStylesheet(xslStylesheet);
myXMLHTTPRequest = new XMLHttpRequest(); myXMLHTTPRequest.open
("GET","emp.xml", false); myXMLHTTPRequest.send(null);
xmlDoc = myXMLHTTPRequest.responseXML; process.setParameter("urn:PointCross- GenericFunctions",
"ColumnTitle" , Orch ); process.setParameter("urn:PointCross- GenericFunctions","Title","Employee Record&quo
| |