This service integrates a remote web page into a page, removing all the presentation information and applying the skin to it.
When browsing the embedded page, links can be followed and forms submitted. The pages on which the user is redirected are embedded the same way as the others.
To prevent conflicts in script execution, javascript is disabled by default. See "customization" for instructions to enable it.
To avoid turning the server into a web proxy open to all, only links pointing to pages located on the same server can be followed.
To provide custom behavior when embedding the page, the stylesheet responsible for filtering and translating the URIs in the embedded page can be overridden (see the "Override service behavior" page for reference). You should go and see the original "apply-skin.xsl" stylesheet to know what can be overridden.
In the following example, the javascript tags (inline and external <script>) are included in the result (parameter "keep-js" set to "true"), and only the first table in the div of id "bodyContent" of the embedded page is integrated.
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml"> <xsl:include href="plugin:revamping://pages/apply-skin.xsl"/> <xsl:param name="remote-server"/> <xsl:param name="server"/> <xsl:param name="complete-url"/> <xsl:param name="keep-js">true</xsl:param> <xsl:template match="body"> <body> <xsl:apply-templates select=".//div[@id = 'bodyContent']/table[1]"/> </body> </xsl:template> </xsl:stylesheet>