Patent ID: 8799515

Claim:
A network device comprising: a memory to store instructions; and a processor to execute the instructions to: establish a session between the network device and a client device, at least one file being transmitted between the network device and the client device; examine an eXtensible Stylesheet Language Transformations (XSLT) script being transmitted to the client device through the network device, the XSLT script including a tag representing a later-binding uniform resource locator (URL)-based link entity; rewrite the XSLT script by inserting guarding code, the guarding code including: first guarding code that executes at the client device to rewrite the later-binding URL-based link entity to refer to the network device and is inserted before the later-binding URL-based link entity, and second guarding code that executes at the client device to rewrite the later-binding URL-based link entity to refer to the network device and is inserted after the later-binding URL-based link entity; determine information regarding an XSLT template, the XSLT template defining additional functionality implemented by the guarding code; analyze the at least one file to identify whether a particular functionality is implemented by the XSLT template; selectively include information regarding the XSLT template, implementing the particular functionality, in the XSLT script, based on whether the guarding code implements the particular functionality, the information regarding the XSLT template being included when the guarding code does not implement the particular functionality, and the information regarding the XSLT template not being included when the guarding code implements the particular functionality; and send the rewritten XSLT script, with the selectively included information regarding the XSLT template, to the client device.