Jade, XML and XSL

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by Michael >> Tue, 5 Sep 2006 4:05:17 GMT

Afternoon all,

I was wondering if anyone has had any experience with using XML and XSL from within Jade?

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by Michael >> Tue, 5 Sep 2006 4:11:37 GMT

Afternoon all,

I was wondering if anyone has had any experience with using XML and XSL from within Jade? Is this possible?

We have a XML string returned from a third party and the users want it prettied up. So we are looking at ways of doing this and the one we are looking at going for is using XSL.

Can anyone help?

Cheers

Michael

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by Michael J >> Tue, 5 Sep 2006 4:25:54 GMT

While the native XML parsed does not support XSL transformations you should be able to import a third party library like msxml.dll (A component of IE) to perform this.

Regards,
Michael J

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by dcooper@jade.co.nz >> Tue, 5 Sep 2006 10:24:21 GMT

If you haven't seen it already, have a look at the XML White Paper available here on the web site:

http://www.jadeworld.com/jade/whitepapers.htm#jadexml

And as Michael J has pointed out, a number of customers have JADE applications that make use of the MSXML component to perform XSL processing.

Cheers,
Dean.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by Michael >> Tue, 5 Sep 2006 21:08:28 GMT

Ok I've had a look at the white paper. Have loaded the example and run it.

Question I now have from this is that this was using an external application to display the info. The brief we have is that the client would prefer this not to be an external application. Is one of the Jade controls able to handle this or do I have to look at a 3rd party control. Any sugesstions of how or want I can use?

I've also had a play with MSXML and have managed to load the xml document, but I can't quite work out how to load the xsl file and work the transformation. Any one able to help me here?

Cheers

Michael

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Jade, XML and XSL

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:01 pm

by Torrie >> Tue, 5 Sep 2006 21:42:34 GMT

Have you tried importing the MS Internet explorer active X controls ("Microsoft Internet Controls"?) (I'm assuming that you have a windows client.)

For some reason the beforeNavigate2 event doesn't fire (Microsoft have some information on this). We use the navigate2 method to navigate to the default blank web page

wbSummary.navigate2( "about:Blank", null, null, null, null );

and then in the navigateComplete event on the control set the HTML content of the control.

vars
oActiveDocument : IHTMLDocument2;
begin
oActiveDocument := self.document.getInterface(
IHTMLDocument2 ).IHTMLDocument2;
oActiveDocument.body.innerHTML := <HTML STRING HERE>;

You also need to import the Axtive X library, "Microsoft HTML Object Library" to get this to work.

Perhaps Jade could look at including a HTML or XML control natively in Jade?

Torrie


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 31 guests