[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: dynamic grouping of tabular data; one or two trans

Subject: RE: dynamic grouping of tabular data; one or two transformations?
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Sat, 24 Nov 2001 22:57:02 -0000
xml nextnode
Dan,
Instead of returning a string you might want to do something like
    <msxsl:script language="javascript" implements-prefix="user">
    <![CDATA[
     function DoIt(xml,xsl1) {
      var xsl2 = new ActiveXObject("MSXML2.DOMDocument");
      xml.nextNode().transformNodeToObject(xsl1.nextNode(), xsl2);
	var html = new ActiveXObject("MSXML2.DOMDocument");
      xml.transformNodeToObject(xsl2, html);
      return html.selectSingleNode("/");
     }
    ]]>
   </msxsl:script>
still not tested,
so that you can twiddle with your $result variable as a nodeset. 

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Dan Diebolt
> Sent: 24 November 2001 22:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: chris@xxxxxxxxxxx
> Subject: RE:  dynamic grouping of tabular data; one or 
> two transformations? 
> 
> 
> Chris, I deninitely prefer the indention of your second solution:
> 
>    <msxsl:script language="javascript" implements-prefix="user">
>    <![CDATA[
>     function DoIt(xml,xsl1) {
>      var xsl2 = new ActiveXObject("MSXML2.DOMDocument");
>      xml.nextNode().transformNodeToObject(xsl1.nextNode(), xsl2);
>      html = xml.nextNode().transformNode(xsl2);
>      return html;
>     }
>    ]]>
>   </msxsl:script>
> 
> This makes sense. I will test it and report any problems. 
> Thanks again.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just 
> $8.95/month. http://geocities.yahoo.com/ps/info1
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.