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

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