Handling Output

MSRS allows you to format service state using an Extensible Stylesheet Language Transformations (XSLT) file. This gives the service developer control over how the state data is displayed. An XSLT file is used to transform an XML document or, in this case, the XML returned from a service. The result is a formatted HTML, XML, or text document. For more information about XSLT specification, refer to the following URL: http://www.w3.org/TR/xslt.

To transform XML, you will need to create an XSLT file. You can do this using Visual Studio by right-clicking the project in Solution Explorer and clicking Add and New Item. To format as HTML, the XSLT file will need to contain an output element that includes a method attribute set with a value ...

Get Programming Microsoft® Robotics Studio now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.