Support Forums
AChecker
style for the rest web service
You must be signed-in to post.
| Author | Subject | |
|---|---|---|
| Page: 1 | ||
| emidiostani rest_style.xslt
| Subject: style for the rest web service | |
| Hi all, I created an xslt file that can be inserted into the output of the Rest Web Service. To do so go in RESTWebServiceOutput.class.php and: 1) modify var $rest_main adding: <?xml-stylesheet type="text/xsl" href="rest_style.xslt"?> before <resultset> tag 2) modify var $rest_result changing the errorMsg tag in: <errorMsg> <link>{BASE_HREF}checker/suggestion.php?id={CHECK_ID}</link> <message>{ERRORMSG}</message> </errorMsg> 3) put the attached xslt file (rest_style.xslt) in root directory of achecker Posted: 2010-06-30 12:33:55 | ||
| emidiostani rest_style.xslt | Subject: Re: style for the rest web service | |
| Corrected a small detail Posted: 2010-06-30 12:41:45 | ||
| emidiostani style_schema.zip | Subject: Re: style for the rest web service | |
| Hi all, I created a schema (so people can validate the xml against) and updated the style (to include the namespace) 1) You have to update the var $rest_main in: var $rest_main = '<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="rest_style.xslt"?> <ca:resultset xmlns:ca="http://achecker.ca" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://achecker.ca ac_schema.xsd"> .... </ca:resultset> 2) modify var $rest_result changing the errorMsg tag in: <errorMsg> <link>{BASE_HREF}checker/suggestion.php?id={CHECK_ID}</link> <message>{ERRORMSG}</message> </errorMsg> 3) put the attached xslt file (rest_style.xslt) and the schema (ac_schema.xsd) in root directory of achecker I hope it can be useful ! PS: I validated instances against the schema using xmlbeans 2.5.0 Posted: 2010-07-03 13:23:01 | ||
| Page: 1 | ||
You must be signed-in to post.


