How 2 output tags att with XSL

G. Ken Holman gkholman at CraneSoftwrights.com
Thu Jan 14 15:07:29 GMT 1999


At 99/01/14 20:30 +0900, •l“c Lˆê˜YqmFk= wrote:
>BTW, you seemed to use "call msxsl" dos command for debugging xsl behavior.
>I don't know it. I want to debug xsl too, i don't have that command. Where
>can i get it?
>
>>T:\FTEMP>call msxsl test.xml test.msxsl test.htm
>>T:\FTEMP>type test.htm

There was a 5-line script posted on the XSL list as follows:

  var data = WScript.CreateObject("Microsoft.XMLDOM");  
  var style = WScript.CreateObject("Microsoft.XMLDOM");  
  data.load(WScript.Arguments(0));
  style.load(WScript.Arguments(1));  
  WScript.Echo( data.transformNode( style.documentElement ));  

There is a command line environment for scripting called the Windows
Scripting Host available at:

  http://www.microsoft.com/management/wsh.htm

I created a batch file that takes the same arguments as XT: source, style
and destination:

  cscript //nologo p:\misc\js\xslproc.js %1 %2 >%3

This mimics what I use when I use XT, a batch file following James'
invocation requirements:

   call xsl infile.xml instyle.xsl outfile.???

... and when I want to debug something with MSXSL, I use:

   call msxsl infile.xml instyle.msxsl outfile.htm

Personally, I distinguish my files by different extensions for each of the
implementations of XSL.

I hope this helps.

........... Ken


--
G. Ken Holman         mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/x/
Training:   http://www.CraneSoftwrights.com/x/schedule.htm
Resources: http://www.CraneSoftwrights.com/x/resources.htm
Shareware: http://www.CraneSoftwrights.com/x/shareware.htm
Next XSL Training (see training link):   WWW8 - 1999-05-11

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list