Updating the output format xslt stylesheet – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 47

Advertising
background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

47

The result is an entry that includes all stylesheet information for the designated Front_End and
Language_Code:

<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/outputFormat/default_frontend</id>
<updated>2008-12-09T23:59:51.078Z</updated>
<link rel=’self’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/outputFormat/default_frontend’/>

<link rel=’edit’ type=’application/atom+xml’

href=’http://gsa:8000/feeds/outputFormat/default_frontend’/>

<gsa:content name=’entryID’>default_frontend</gsa:content>
<gsa:content name=’isStyleSheetEdited’>0</gsa:content>
<gsa:content name=’styleSheetContent’>

&lt;!-- *** START OF STYLESHEET *** --&gt;
&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/
Transform&quot;version=&quot;1.0&quot;&
;gt;
&lt;xsl:include href=&quot;customer-onebox.xsl&quot;/&gt;
&lt;xsl:output method=&quot;html&quot;/&gt;
&lt;xsl:variable name=&quot;show_logo&quot;&gt;1&lt;/xsl:variable&gt;
&lt;xsl:variable name=&quot;logo_url&quot;&gt;images/Title_Left.png&lt;/
xsl:variable&gt;
&lt;xsl:variable name=&quot;logo_width&quot;&gt;200&lt;/xsl:variable&gt;
&lt;xsl:variable name=&quot;logo_height&quot;&gt;78&lt;/
xsl:variable&gt;........&lt;xsl:templa
te match=&quot;@*|node()&quot;/&gt;
&lt;/xsl:stylesheet&gt;
&lt;!-- *** END OF STYLESHEET *** --&gt;

</gsa:content>
<gsa:content name=’isDefaultLanguage’>1</gsa:content>
<gsa:content name=’language’>en</gsa:content>

</entry>

Updating the Output Format XSLT Stylesheet

To update the output format stylesheet information for a search appliance, send an authenticated PUT
request to the outputFormat feed URL:

http://Search_Appliance:8000/feeds/outputFormat/Front_End

Specify the language parameter in the language property of the entry to update.

Advertising