Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Siebel Mobile Connector Guide > Sample XML and XSL Output > Sample XSL Style SheetsWith no style sheets applied, SWE will return all the requested data. In order to filter data for specific views, it is necessary to apply style sheets for those views and also apply a style sheet that filters data for all unsubscribed views. The following is an example of a style sheet that filters data for all unsubscribed views (*_UnsubscribedView_UI.xsl). <?xml version="1.0" encoding="UTF-8" ?> - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" media-type="text/html" encoding="UTF-8" /> <xsl:call-template name="COPYNODE" /> - <xsl:template name="COPYNODE"> <xsl:value-of select="text()" /> <xsl:call-template name="CHILDPROCESS" /> - <xsl:template name="CHILDPROCESS"> <xsl:when test="name()='VIEW'" /> <xsl:call-template name="COPYNODE" /> The following XSL style sheet limits data returned from the SMC Opportunity View (Vendor_SiebelMobileConnector_SMCOpportunityView_UI.xsl): <?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?> - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" media-type="text/html" encoding="UTF-8" /> <xsl:call-template name="COPYNODE" /> - <xsl:template name="COPYNODE"> <xsl:value-of select="text()" /> <xsl:call-template name="CHILDPROCESS" /> - <xsl:template name="CHILDPROCESS"> - <xsl:when test="name()='COLUMN'"> - <xsl:when test="ancestor::node()[name()='APPLET' and @NAME='Account Form Applet']"> <xsl:call-template name="AccountFormAppletCOLUMN" /> - <xsl:when test="name()='FIELD'"> - <xsl:when test="ancestor::node()[name()='APPLET' and @NAME='Account Form Applet']"> <xsl:call-template name="AccountFormAppletFIELD" /> - <xsl:when test="name()='CONTROL'"> - <xsl:when test="ancestor::node()[name()='APPLET' and @NAME='Account Form Applet']"> <xsl:call-template name="AccountFormAppletCONTROL" /> <xsl:call-template name="COPYNODE" /> - <xsl:template name="AccountFormAppletCONTROL"> - <xsl:when test="@NAME='Name'"> <xsl:call-template name="COPYNODE" /> - <xsl:template name="AccountFormAppletCOLUMN"> - <xsl:when test="@FIELD='Name'"> <xsl:call-template name="COPYNODE" /> - <xsl:template name="AccountFormAppletFIELD"> - <xsl:when test="@NAME='Name'"> |
![]() |
![]() ![]() |
Siebel Mobile Connector Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |