2009
03.02

Seems that Xerox has been working from the “How To Write Unmaintainable Code” guide: they use totally different syntax for specifying properties within the same command:

Here’s how you specify properties for the <select> section:

<select><prop><title/><size/><content_type/><document/><entityowner/><modified_date/><create_date/> </prop></select>

And here’s how you specify properties for the “where” section – it’s at least similar but I think you need the “fully qualified” property name:

<where> <contains><prop><Object.title/></prop><literal>*</literal></contains> </where>

And here’s the kicker – the <orderby> element – totally different:

<orderby><sortspec><propname>Object.title</propname></sortspec></orderby>

Note the use of <propname> instead of <prop> and the lack of brackets around the property name. Great stuff. Top notch.

No Comment.

Add Your Comment

You must be logged in to post a comment.