20.01.2015 Views

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

Teach Yourself e.net - Syspro

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

AddTelephone: <br />

<br />

<br />

<br />

Fax: <br />

<br />

<br />

<br />

<br />

<br />

The sample code for the Sales Order Process in the previous chapter utilizes this XSL to<br />

display the data provided by the business object. Please open and examine<br />

SalesOrderHeader.aspx from the downloaded SampleCode file in order to see how<br />

the XSL is called and used.<br />

There is a command line XSL transformation utility that can be downloaded from the<br />

msdn.microsoft.com website to assist with testing your XSL files. This can be located by<br />

going to microsoft.com [http://msdn.microsoft.com] and entering the two words msxsl and<br />

download in to the search. Within the results will be a page called "Command Line<br />

Transformations Using msxsl.exe" that contains both the option to download the<br />

MSXSL.exe utility as well as detailed instructions on its use.<br />

You can use this utility to view the output of the SORRSH business object after it has been<br />

transformed using the SORRSH.xsl example. In your folder containing MSXSL.exe, save<br />

the results of the SORRSH business object as SORRSHOut.xml. Also place the<br />

SORRSH.xsl transformation file. From the command line use the following command to<br />

process the XML file, using the XSL file, and outputting it as SORRSH.htm.<br />

MSXSL SORRSHOut.xml SORRSH.xsl –o SORRSH.htm<br />

You can now view the file SORRSH.htm in your browser.<br />

10–18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!