XSL Transform

Executes XSL transformation of XML content on the server. This transaction is implemented to improve browser compatibility by moving XSL transformation from the browser to the server. The server receives an XML POST transaction from a client, which it returns formatted using the specified XSL style file.

Example API call

/servlets3/wietmsd?date=1519392788904&id=1519392782259&target=utility&action=text&style=FullSupport/search.xml

Parameters

ParameterDescription
dateTo prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a date parameter that is based on the time at which the call is made.
idA session ID that is valid for this collection and publication combination.
targetutility
actiontext
styleThe relative path from the styles folder to the XSL style to be executed against the document.

XML post data

This API call requires XML post data to complete. An example of that XML data is given here. The client forms XML post data that includes the content to be formatted.

<SEARCH_RES_PARTITION SEARCH_TYPE="full_text">
     <TITLE DOCTYPE="description" EID="4" DOCUMENT_ID="S1000DBIKE-AAA-D00-00-00-00-AA-041-A-A" DMC="S1000DBIKE-AAA-D00-00-00-00AA-041A-A" TOCEID="19" TABLEONLY="">
		        <DMCTITLE>Bicycle - Description of how it is made</DMCTITLE>
		        <DMCODE>S1000DBIKE-AAA-D00-00-00-00AA-041A-A</DMCODE>
		        <CONTEXT-LIST>
			            <FRAGMENT><PATTERN>crank</PATTERN>s</FRAGMENT>
			            <FRAGMENT>the two platforms for the feet that attach to the <PATTERN>crank</PATTERN>.</FRAGMENT>
		        </CONTEXT-LIST>
	     </TITLE>
	     <TITLE DOCTYPE="description" EID="5" DOCUMENT_ID="S1000DBIKE-AAA-D00-00-00-00-AA-042-A-A" DMC="S1000DBIKE-AAA-D00-00-00-00AA-042A-A" TOCEID="26" TABLEONLY="">
		         <DMCTITLE>Bicycle - Description of function</DMCTITLE>
		         <DMCODE>S1000DBIKE-AAA-D00-00-00-00AA-042A-A</DMCODE>
		         <CONTEXT-LIST>
			             <FRAGMENT><PATTERN>crank</PATTERN></FRAGMENT>
			             <FRAGMENT>the <PATTERN>crank</PATTERN> moves the power to the chain rings when the pedals ope</FRAGMENT>
			             <FRAGMENT>the pedals move the force of movement from the feet to the <PATTERN>crank</PATTERN>s.</FRAGMENT>
			             <FRAGMENT>also known as the 'chain wheel') pull on the chain when the <PATTERN>crank</PATTERN>s turn.</FRAGMENT>
		         </CONTEXT-LIST>
	     </TITLE>
	     <TITLE DOCTYPE="procedure" EID="53" DOCUMENT_ID="S1000DBIKE-AAA-DA4-10-00-00-AA-241-A-A" DMC="S1000DBIKE-AAA-DA4-10-00-00AA-241A-A" TOCEID="692" TABLEONLY="">
		         <DMCTITLE>Chain - Oil</DMCTITLE>
		         <DMCODE>S1000DBIKE-AAA-DA4-10-00-00AA-241A-A</DMCODE>
		         <CONTEXT-LIST>
			             <FRAGMENT>ainer above the front of the chain ring and slowly turn the <PATTERN>crank</PATTERN>s rearwards.</FRAGMENT>
		         </CONTEXT-LIST>
	     </TITLE>
	     <TITLE DOCTYPE="description" EID="56" DOCUMENT_ID="S1000DBIKE-AAA-DA5-00-00-00-AA-041-A-A" DMC="S1000DBIKE-AAA-DA5-00-00-00AA-041A-A" TOCEID="740" TABLEONLY="">
		         <DMCTITLE>Gears - Description of how it is made</DMCTITLE>
		         <DMCODE>S1000DBIKE-AAA-DA5-00-00-00AA-041A-A</DMCODE>
		         <CONTEXT-LIST>
			             <FRAGMENT>the gears let the rider <PATTERN>crank</PATTERN> at the pedals at a constant movement on slopes of diff</FRAGMENT>
		         </CONTEXT-LIST>
	     </TITLE>
</SEARCH_RES_PARTITION>

Returns

On success
If the transform operation is successful, the server returns the XML post data in HTML, formatted using the specified XSL style file.
<div class="search_hit" onclick="CVPortal.components['cvSearch'].handleSelectResult(event);" ondrag="event.returnValue=false;" EID="4" DOCTYPE="description" TOCEID="19" SCOPE="Full Text" searchCat="full_text">
     <img class="link" src="@APPNAME@?target=resource&amp;action=image&amp;file_name=description.gif" ondrag="event.returnValue=false;"/> 
    	<span>
		        <span name="textDMC" class="showTitle">Bicycle - Description of how it is made</span>
		        <span name="titleSpace" class="showSpace"></span>
		        <span name="dmc" class="showDMC"> S1000DBIKE-AAA-D00-00-00-00AA-041A-A</span>
		        <div class="search_fragment">...
			            <span class="search_keyword">crank</span>s...
		        </div>
		        <div class="search_fragment">...the two platforms for the feet that attach to the 
			            <span class="search_keyword">crank</span>....
		        </div>
	     </span>
</div>
<div class="search_hit" onclick="CVPortal.components['cvSearch'].handleSelectResult(event);" ondrag="event.returnValue=false;" EID="5" DOCTYPE="description" TOCEID="26" SCOPE="Full Text" searchCat="full_text">
     <img class="link" src="@APPNAME@?target=resource&amp;action=image&amp;file_name=description.gif" ondrag="event.returnValue=false;"/> 
	    <span>
		        <span name="textDMC" class="showTitle">Bicycle - Description of function</span>
		        <span name="titleSpace" class="showSpace"> </span>
		        <span name="dmc" class="showDMC">S1000DBIKE-AAA-D00-00-00-00AA-042A-A</span>
		        <div class="search_fragment">...
			            <span class="search_keyword">crank</span>...
		        </div>
		        <div class="search_fragment">...the 
			            <span class="search_keyword">crank</span> moves the power to the chain rings when the pedals ope...
		        </div>
		        <div class="search_fragment">...the pedals move the force of movement from the feet to the 
			            <span class="search_keyword">crank</span>s....
		        </div>
	    </span>
</div>
<div class="search_hit" onclick="CVPortal.components['cvSearch'].handleSelectResult(event);" ondrag="event.returnValue=false;" EID="53" DOCTYPE="procedure" TOCEID="692" SCOPE="Full Text" searchCat="full_text">
	    <img class="link" src="@APPNAME@?target=resource&amp;action=image&amp;file_name=procedure.gif" ondrag="event.returnValue=false;"/> 
	    <span>
		        <span name="textDMC" class="showTitle">Chain - Oil</span>
		        <span name="titleSpace" class="showSpace"> </span>
		        <span name="dmc" class="showDMC">S1000DBIKE-AAA-DA4-10-00-00AA-241A-A</span>
	        	<div class="search_fragment">...ainer above the front of the chain ring and slowly turn the 
			            <span class="search_keyword">crank</span>s rearwards....
		        </div>
	    </span>
</div>
<div class="search_hit" onclick="CVPortal.components['cvSearch'].handleSelectResult(event);" ondrag="event.returnValue=false;" EID="56" DOCTYPE="description" TOCEID="740" SCOPE="Full Text" searchCat="full_text">
     <img class="link" src="@APPNAME@?target=resource&amp;action=image&amp;file_name=description.gif" ondrag="event.returnValue=false;"/> 
	    <span>
		        <span name="textDMC" class="showTitle">Gears - Description of how it is made</span>
		        <span name="titleSpace" class="showSpace"> </span>
		        <span name="dmc" class="showDMC">S1000DBIKE-AAA-DA5-00-00-00AA-041A-A</span>
		        <div class="search_fragment">...the gears let the rider 
			            <span class="search_keyword">crank</span> at the pedals at a constant movement on slopes of diff...
		        </div>
	    </span>
</div>
On failure
If the transform operation fails, the system returns an error such as the following.
500 Server Error