Custom Web Publishing with XML and XSLT

Table Of Contents
Appendix A
|
Valid names used in query strings 103
–sortorder (Sort order) query parameter
Indicates the direction of a sort
Value is: The sort order. Valid sort orders are as follows, where <value-list-name> is a value list name such
as Custom:
Optional with: –find or –findall query commands
Requires: –sortfield query parameter
The –sortorder query parameter can been used with the –sortfield query parameter to specify the sort order
of multiple sort fields. The syntax for specifying the sort order of a sort field is:
–sortorder.precedence-number=sort-method
where:
1 precedence-number in the –sortorder.precedence-number parameter is a number from 1 to 9 that specifies
the –sortfield query parameter that the –sortorder query parameter applies to.
1 sort-method is one of the keywords in the preceding table to specify the sort order, such as ascend
In the following example, the sort order of the highest precedence sort field (dept) is ascend, and the sort
order of the second highest precedence sort field (rating) is descend. The precedence-number 2 in –sortorder.2
specifies that the query parameter –sortorder.2=descend applies to the –sortfield.2=rating query parameter.
Example:
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=performance&–sortfield.1=dept
&–sortorder.1=ascend&–sortfield.2=rating&–sortorder.2=descend&–findall
Note If a –sortorder query parameter is not specified for a sort field, the default ascending sort is used.
–stylehref (Style href) query parameter
Generates an XML-stylesheet processing instruction within the output document—setting the value of the
href attribute (href=/mystylesheet.css or href=/stylesheets/mystylesheet.xsl)—so you can use client-side,
cascading stylesheets (CSS) or XSLT stylesheets with your XML document. The value of the –stylehref
parameter must use an absolute path. The name of the stylesheet can be any name but it must contain an
extension of either .css or .xsl. See
“Using server-side and client-side processing of stylesheets” on page 40.
This parameter is used in conjunction with the –styletype parameter.
Optional with: All query commands
Requires: –styletype parameter
Example (assumes mystylesheet.xsl is in the root folder of the web server software):
http://192.168.123.101/fmi/xml/fmresultset.xml?–db=employees&–lay=departments&–styletype=text/xsl
&–stylehref=/mystylesheet.xsl&–findall
Keyword FileMaker Pro Equivalent Operator
ascend Sort a to z, –10 to 10
descend Sort z to a, 10 to –10
<value-list-name> Sort using the specified value list associated with the field on the layout