Re: xul generation with xslt

[email protected]
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization http://groups.google.com
Message-ID <[email protected]>
Emmanouil Batsis wrote:
> [email protected] wrote:
>
> > var xmlLoad = new DOMParser().parseFromString("<?xml
> > version=\"1.0\"?>", "text/xml");
>
> Hmmm. Not sure, but you may want to add a root node.
>
>
> > var result = xslt.transformToDocument(xmlLoad);
> > alert(result.documentElement.innerHTML);  // result...innerHTML is
> > undefined
> >
> > The problem is that result.documentElement.innerHTML doesn't seem
to be
> > valid... it's undefined.
>
>
> Since the XSLT output method is XML your result is an XMLDocument.
> AFAIK, innerHTML only applies to HTMLDocument and HTMLElement. Try
>
> alert( (new XMLSerializer()).serializeToString(result) );
>
>
> hth,
>
> Manos

Thanks Manos,

I didn't even think about that. It seems that it doesn't matter wether
I use xml or html output. The only problem I have to fix now is the xul
display is showing up very small i.e. the buttons are tiny.

-Willy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.