Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you set the xsl template mode using Javascript if NOT using IE?

Status
Not open for further replies.

pmorey

Programmer
Apr 23, 2003
2
US
I'm trying to port some IE code to run on Mozilla and other DOM-compatible browsers. This code does an XSL transformation using a stylesheet that makes extensive use of the mode attribute (<xsl:template mode=&quot;foo&quot;>) to do the transformation. In IE, you can set the mode like this:

xsltProc.setStartMode(&quot;foo&quot;);

But I can't find a way to do this in Mozilla. I tried this:

xsltProc.setParameter(null, &quot;mode&quot;, &quot;foo&quot;);

but it didn't work. Any ideas? Thanks in advance for your help!
 
>> In IE, you can set the mode like this:
>> xsltProc.setStartMode(&quot;foo&quot;);

Yes but in IE xsltProc is an instance of the MSXML.Document ActiveX Control. Does the Mozilla script engine support ActiveX controls?

[hammer]
-pete


 
Nope, Mozilla doesn't support ActiveX. It has its own set of JS objects for processing XML. In Mozilla, xsltProc is an instance of XSLTProcessor.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top