<%@ page language="C#" masterpagefile="~/templates/Documentation.master" inherits="Page" pagetitle="Restrictions on Queries" keywords="Restrictions on Queries"%>

Restrictions on Queries

XPath is a language for selecting existing XML data; it does not perform manipulation (like sorting) or construction of different XML structures. To perform such operations, you need to use the language that is hosting XPath - XSLT or XQuery, for example.

You cannot query non-XML data. If you query a document that does not contain XML-formatted data, Stylus Studio displays an error message that informs you that the queried text is not XML.