You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2006/01/28 03:29:16 UTC
svn commit: r373069 - in
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl:
codegen/emitter/ template/general/ template/java/
Author: ajith
Date: Fri Jan 27 18:29:07 2006
New Revision: 373069
URL: http://svn.apache.org/viewcvs?rev=373069&view=rev
Log:
Added support for different meps at the server side (earlier it was assumed to be only the in-out)
1. Changed the MultiLanguageClientEmitter.java to generate multiple message receivers when different meps are present
2. Updated the MessageReceiverTemplate.xsl and ServiceXMLTemplate.xsl to suit the changes
Now the behavior is to generate Multiple message receivers and register them with the same class when there are methods with different meps
Note - needs a bit more testing though
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/MultiLanguageClientEmitter.java Fri Jan 27 18:29:07 2006
@@ -47,6 +47,7 @@
import org.apache.wsdl.WSDLInterface;
import org.apache.wsdl.WSDLOperation;
import org.apache.wsdl.WSDLService;
+import org.apache.wsdl.WSDLConstants;
import org.apache.wsdl.extensions.ExtensionConstants;
import org.apache.wsdl.extensions.SOAPHeader;
import org.apache.wsdl.extensions.SOAPOperation;
@@ -84,6 +85,9 @@
private static final String DATABINDING_SUPPORTER_NAME_SUFFIX = "DatabindingSupporter";
private static final String DATABINDING_PACKAGE_NAME_SUFFIX = ".databinding";
+ private static Map MEPtoClassMap;
+ private static Map MEPtoSuffixMap;
+
/**
* Field constructorMap
*/
@@ -118,6 +122,18 @@
constructorMap.put("java.util.Calendar", "java.util.Calendar.getInstance()");
constructorMap.put("javax.xml.namespace.QName",
"new javax.xml.namespace.QName(\"http://double-double\", \"toil-and-trouble\")");
+
+
+ //populate the MEP -> class map
+ MEPtoClassMap = new HashMap();
+ MEPtoClassMap.put(WSDLConstants.MEP_URI_IN_ONLY,"org.apache.axis2.receivers.AbstractInMessageReceiver");
+ MEPtoClassMap.put(WSDLConstants.MEP_URI_IN_OUT,"org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver");
+
+ //populate the MEP -> suffix map
+ MEPtoSuffixMap = new HashMap();
+ MEPtoSuffixMap.put(WSDLConstants.MEP_URI_IN_ONLY,MESSAGE_RECEIVER_SUFFIX + "InOnly");
+ MEPtoSuffixMap.put(WSDLConstants.MEP_URI_IN_OUT,MESSAGE_RECEIVER_SUFFIX + "InOut");
+ //register the other types as necessary
}
//~--- fields -------------------------------------------------------------
@@ -170,6 +186,21 @@
}
/**
+ * Utility method to add an attribute to a given element.
+ *
+ * @param document
+ * @param eltName
+ * @param eltValue
+ * @param element
+ */
+ protected Element addElement(Document document, String eltName, String eltValue, Element element) {
+ Element elt = XSLTUtils.addChildElement(document,eltName,element);
+ elt.appendChild(document.createTextNode(eltValue));
+ return elt;
+ }
+
+
+ /**
* Adds the endpoint to the document.
*
* @param doc
@@ -575,7 +606,8 @@
return rootElement;
}
- protected Document createDocumentForMessageReceiver() {
+ protected Document createDocumentForMessageReceiver(String mep) {
+
WSDLBinding binding = infoHolder.getBinding();
WSDLInterface boundInterface = infoHolder.getPorttype();
Document doc = getEmptyDocument();
@@ -585,9 +617,9 @@
String localPart = getCoreClassName(boundInterface);
- addAttribute(doc, "name", localPart + MESSAGE_RECEIVER_SUFFIX, rootElement);
+ addAttribute(doc, "name", localPart + MEPtoSuffixMap.get(mep), rootElement);
addAttribute(doc, "skeletonname", localPart + SERVICE_CLASS_SUFFIX, rootElement);
- addAttribute(doc, "basereceiver", "org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver", rootElement);
+ addAttribute(doc, "basereceiver", (String)MEPtoClassMap.get(mep), rootElement);
fillSyncAttributes(doc, rootElement);
// ###########################################################################################
@@ -606,8 +638,10 @@
// #############################################################################################
- loadOperations(boundInterface, doc, rootElement, null);
+ boolean isOpsFound = loadOperations(boundInterface, doc, rootElement, null,mep);
+ //put the result in the property map
+ infoHolder.putProperty(mep,isOpsFound?Boolean.TRUE:Boolean.FALSE);
// ///////////////////////
rootElement.appendChild(createDOMElementforDatabinders(doc, binding));
@@ -683,14 +717,17 @@
updateMapperForMessageReceiver(wsInterface);
}
+ // Note - thsi order is very important
// write skeleton
writeSkeleton();
+ // write a MessageReceiver for this particular service.
+ writeMessageReceiver();
+
// write service xml
writeServiceXml();
- // write a MessageReceiver for this particular service.
- writeMessageReceiver();
+
// write the ant build if not asked for all
if (!configuration.isGenerateAll()) {
@@ -842,43 +879,100 @@
* @param rootElement
* @param binding
*/
- private void loadOperations(WSDLInterface boundInterface, Document doc, Element rootElement, WSDLBinding binding) {
+ private boolean loadOperations(WSDLInterface boundInterface, Document doc, Element rootElement, WSDLBinding binding) {
+ return loadOperations( boundInterface, doc, rootElement, null,null);
+ }
+ /**
+ * @param boundInterface
+ * @param doc
+ * @param rootElement
+ * @param binding
+ *
+ * @return operations found
+ */
+ private boolean loadOperations(WSDLInterface boundInterface,
+ Document doc,
+ Element rootElement,
+ WSDLBinding binding,
+ String mep) {
Collection col = boundInterface.getOperations().values();
String portTypeName = getCoreClassName(boundInterface);
Element methodElement;
- WSDLOperation operation;
-
+ WSDLOperation operation = null;
+ boolean opsFound = false;
for (Iterator iterator = col.iterator(); iterator.hasNext();) {
- List soapHeaderInputParameterList = new ArrayList();
- List soapHeaderOutputParameterList = new ArrayList();
-
operation = (WSDLOperation) iterator.next();
- methodElement = doc.createElement("method");
+ if (mep==null){
+ //at this point we know it's true
+ opsFound = true;
+
+ List soapHeaderInputParameterList = new ArrayList();
+ List soapHeaderOutputParameterList = new ArrayList();
+ methodElement = doc.createElement("method");
+ String localPart = operation.getName().getLocalPart();
+
+ addAttribute(doc, "name", localPart, methodElement);
+ addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), methodElement);
+ addAttribute(doc, "style", operation.getStyle(), methodElement);
+ addAttribute(doc, "dbsupportname", portTypeName + localPart + DATABINDING_SUPPORTER_NAME_SUFFIX,
+ methodElement);
+
+ addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);
+
+ if (null != binding) {
+ WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());
+
+ // todo This can be a prob !!!!!
+ if (bindingOperation != null) {
+ addSOAPAction(doc, methodElement, bindingOperation);
+ addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
+ addHeaderOperations(soapHeaderOutputParameterList, bindingOperation, false);
+ }
+ }
- String localPart = operation.getName().getLocalPart();
+ methodElement.appendChild(getInputElement(doc, operation, soapHeaderInputParameterList));
+ methodElement.appendChild(getOutputElement(doc, operation, soapHeaderOutputParameterList));
+ rootElement.appendChild(methodElement);
+ //////////////////////
+ }else{
+ //mep is present - we move ahead only if the given mep matches the mep of this operation
+
+ if (mep.equals(operation.getMessageExchangePattern())){
+ //at this point we know it's true
+ opsFound = true;
+ List soapHeaderInputParameterList = new ArrayList();
+ List soapHeaderOutputParameterList = new ArrayList();
+ methodElement = doc.createElement("method");
+ String localPart = operation.getName().getLocalPart();
+
+ addAttribute(doc, "name", localPart, methodElement);
+ addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), methodElement);
+ addAttribute(doc, "style", operation.getStyle(), methodElement);
+ addAttribute(doc, "dbsupportname", portTypeName + localPart + DATABINDING_SUPPORTER_NAME_SUFFIX,
+ methodElement);
+
+ addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);
+
+ if (null != binding) {
+ WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());
+
+ // todo This can be a prob !!!!!
+ if (bindingOperation != null) {
+ addSOAPAction(doc, methodElement, bindingOperation);
+ addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
+ addHeaderOperations(soapHeaderOutputParameterList, bindingOperation, false);
+ }
+ }
- addAttribute(doc, "name", localPart, methodElement);
- addAttribute(doc, "namespace", operation.getName().getNamespaceURI(), methodElement);
- addAttribute(doc, "style", operation.getStyle(), methodElement);
- addAttribute(doc, "dbsupportname", portTypeName + localPart + DATABINDING_SUPPORTER_NAME_SUFFIX,
- methodElement);
- addAttribute(doc, "mep", operation.getMessageExchangePattern(), methodElement);
-
- if (null != binding) {
- WSDLBindingOperation bindingOperation = binding.getBindingOperation(operation.getName());
-
- // todo This can be a prob !!!!!
- if (bindingOperation != null) {
- addSOAPAction(doc, methodElement, bindingOperation);
- addHeaderOperations(soapHeaderInputParameterList, bindingOperation, true);
- addHeaderOperations(soapHeaderOutputParameterList, bindingOperation, false);
+ methodElement.appendChild(getInputElement(doc, operation, soapHeaderInputParameterList));
+ methodElement.appendChild(getOutputElement(doc, operation, soapHeaderOutputParameterList));
+ rootElement.appendChild(methodElement);
+ //////////////////////
}
}
-
- methodElement.appendChild(getInputElement(doc, operation, soapHeaderInputParameterList));
- methodElement.appendChild(getOutputElement(doc, operation, soapHeaderOutputParameterList));
- rootElement.appendChild(methodElement);
}
+
+ return opsFound;
}
/**
@@ -1144,12 +1238,20 @@
protected void writeMessageReceiver() throws Exception {
if (configuration.isWriteMessageReceiver()) {
- Document classModel = createDocumentForMessageReceiver();
- MessageReceiverWriter writer =
- new MessageReceiverWriter(getOutputDirectory(this.configuration.getOutputLocation(), "src"),
- this.configuration.getOutputLanguage());
+ //loop through the meps and generate code for each mep
+ Iterator it = MEPtoClassMap.keySet().iterator();
+ while (it.hasNext()) {
+ String mep = (String) it.next();
+ Document classModel = createDocumentForMessageReceiver(mep);
+ //write the class only if any methods are found
+ if (infoHolder.getProperty(mep).equals(Boolean.TRUE)) {
+ MessageReceiverWriter writer =
+ new MessageReceiverWriter(getOutputDirectory(this.configuration.getOutputLocation(), "src"),
+ this.configuration.getOutputLanguage());
- writeClass(classModel, writer);
+ writeClass(classModel, writer);
+ }
+ }
}
}
@@ -1441,16 +1543,30 @@
* @return Returns Element.
*/
private Element getServiceElement(String serviceName, String porttypeName, Document doc,
- WSDLInterface boundInterface, WSDLBinding axisBinding) {
+ WSDLInterface boundInterface, WSDLBinding axisBinding
+ ) {
Element rootElement = doc.createElement("interface");
addAttribute(doc, "package", "", rootElement);
addAttribute(doc, "classpackage", configuration.getPackageName(), rootElement);
addAttribute(doc, "name", porttypeName + SERVICE_CLASS_SUFFIX, rootElement);
addAttribute(doc, "servicename", serviceName, rootElement);
- addAttribute(doc, "messagereceiver", porttypeName + MESSAGE_RECEIVER_SUFFIX, rootElement);
- fillSyncAttributes(doc, rootElement);
- loadOperations(boundInterface, doc, rootElement, axisBinding);
+
+ Iterator it = MEPtoClassMap.keySet().iterator();
+ while (it.hasNext()) {
+ Object key = it.next();
+ System.out.println("key = " + key);
+ System.out.println("infoHolder.getProperty(key) = " + infoHolder.getProperty(key));
+
+ if (Boolean.TRUE.equals(infoHolder.getProperty(key))){
+ Element elt = addElement(doc, "messagereceiver", porttypeName + MEPtoSuffixMap.get(key), rootElement);
+ addAttribute(doc,"mep",key.toString(),elt);
+ }
+
+ }
+
+// fillSyncAttributes(doc, rootElement);
+// loadOperations(boundInterface, doc, rootElement, axisBinding);
return rootElement;
}
@@ -1493,6 +1609,15 @@
private WSDLInterface porttype;
private WSDLService service;
+ private HashMap propertyMap = new HashMap();
+
+ public void putProperty(Object key,Object val){
+ propertyMap.put(key,val);
+ }
+
+ public Object getProperty(Object key){
+ return propertyMap.get(key);
+ }
//~--- get methods ----------------------------------------------------
public WSDLBinding getBinding() {
@@ -1529,4 +1654,6 @@
this.service = service;
}
}
+
+
}
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/general/ServiceXMLTemplate.xsl Fri Jan 27 18:29:07 2006
@@ -10,25 +10,28 @@
</xsl:template>
<xsl:template match="interface">
- <xsl:variable name="receiver"><xsl:value-of select="@messagereceiver"/></xsl:variable>
<xsl:variable name="package"><xsl:value-of select="@classpackage"/></xsl:variable>
<service>
<xsl:attribute name="name"><xsl:value-of select="@servicename"/></xsl:attribute>
<messageReceivers>
- <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out">
- <xsl:choose>
- <xsl:when test="$package=''">
- <xsl:attribute name="class"><xsl:value-of select="$receiver"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="class"><xsl:value-of select="$package"/>.<xsl:value-of select="$receiver"/>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- </messageReceiver>
+ <xsl:for-each select="messagereceiver">
+ <xsl:if test=".">
+ <messageReceiver>
+ <xsl:attribute name="mep"><xsl:value-of select="@mep"/></xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="$package=''">
+ <xsl:attribute name="class"><xsl:value-of select="."/></xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="class"><xsl:value-of select="$package"/>.<xsl:value-of select="."/></xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ </messageReceiver>
+ </xsl:if>
+ </xsl:for-each>
+ </messageReceivers>
- </messageReceivers>
<parameter name="ServiceClass" locked="false">
<xsl:choose>
<xsl:when test="$package=''">
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Fri Jan 27 18:29:07 2006
@@ -47,7 +47,7 @@
_operations = new org.apache.axis2.description.AxisOperation[<xsl:value-of select="count(method)"/>];
<xsl:for-each select="method">
<xsl:choose>
- <xsl:when test="@mep='http://www.w3.org/2004/08/wsdl/in-only'">"
+ <xsl:when test="@mep='http://www.w3.org/2004/08/wsdl/in-only'">
__operation = new org.apache.axis2.description.OutOnlyAxisOperation();
</xsl:when>
<xsl:otherwise>
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl?rev=373069&r1=373068&r2=373069&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/MessageReceiverTemplate.xsl Fri Jan 27 18:29:07 2006
@@ -10,7 +10,9 @@
<xsl:include href="externalTemplate"/>
- <xsl:template match="/interface">
+ <!--Template for in out message receiver -->
+ <xsl:template match="/interface[@basereceiver='org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver']">
+
<xsl:variable name="skeletonname"><xsl:value-of select="@skeletonname"/></xsl:variable>
<xsl:variable name="dbsupportpackage"><xsl:value-of select="@dbsupportpackage"/></xsl:variable>
@@ -28,6 +30,7 @@
public class <xsl:value-of select="@name"/> extends <xsl:value-of select="@basereceiver"/>{
+
public void invokeBusinessLogic(org.apache.axis2.context.MessageContext msgContext, org.apache.axis2.context.MessageContext newMsgContext)
throws org.apache.axis2.AxisFault{
@@ -98,7 +101,7 @@
<xsl:otherwise>
envelope = getSOAPFactory(msgContext).getDefaultEnvelope();
</xsl:otherwise>
- </xsl:choose>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
@@ -120,12 +123,102 @@
}
<xsl:for-each select="method"/>
}
-
- <!-- generate the databind supporters-->
+ <!-- Call templates recursively-->
//<xsl:apply-templates/>
}
</xsl:template>
+ <!-- end of template for in-out message receiver -->
+
+ <!-- start of in-only -->
+ <xsl:template match="interface[@basereceiver='org.apache.axis2.receivers.AbstractInMessageReceiver']">
+ <xsl:variable name="skeletonname"><xsl:value-of select="@skeletonname"/></xsl:variable>
+ <xsl:variable name="dbsupportpackage"><xsl:value-of select="@dbsupportpackage"/></xsl:variable>
+
+ /**
+ * <xsl:value-of select="@name"/>.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis2 version: #axisVersion# #today#
+ */
+ package <xsl:value-of select="@package"/>;
+
+ /**
+ * <xsl:value-of select="@name"/> message receiver
+ */
+
+ public class <xsl:value-of select="@name"/> extends <xsl:value-of select="@basereceiver"/>{
+
+ public void invokeBusinessLogic(org.apache.axis2.context.MessageContext inMessage) throws org.apache.axis2.AxisFault{
+
+ try {
+
+ // get the implementation class for the Web Service
+ Object obj = getTheImplementationObject(msgContext);
+
+ //Inject the Message Context if it is asked for
+ org.apache.axis2.engine.DependencyManager.configureBusinessLogicProvider(obj, msgContext, newMsgContext);
+
+ <xsl:value-of select="$skeletonname"/> skel = (<xsl:value-of select="$skeletonname"/>)obj;
+ //Out Envelop
+ org.apache.axis2.soap.SOAPEnvelope envelope = null;
+ //Find the axisOperation that has been set by the Dispatch phase.
+ org.apache.axis2.description.AxisOperation op = msgContext.getOperationContext().getAxisOperation();
+ if (op == null) {
+ throw new org.apache.axis2.AxisFault("Operation is not located, if this is doclit style the SOAP-ACTION should specified via the SOAP Action to use the RawXMLProvider");
+ }
+ String methodName;
+ if(op.getName() != null & (methodName = op.getName().getLocalPart()) != null){
+
+ <xsl:for-each select="method">
+
+ <xsl:variable name="namespace"><xsl:value-of select="@namespace"/></xsl:variable>
+ <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
+ <xsl:variable name="style"><xsl:value-of select="@style"/></xsl:variable>
+
+
+ if("<xsl:value-of select="@name"/>".equals(methodName)){
+
+ <xsl:choose>
+ <xsl:when test="$style='rpc'">
+
+ //rpc style -- this needs to be filled
+
+ </xsl:when>
+ <xsl:when test="$style='doc'">
+ //doc style
+ <xsl:variable name="paramCount"><xsl:value-of select="count(input/param[@location='body'])"/></xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$paramCount > 0"> skel.<xsl:value-of select="@name"/>(
+ <xsl:for-each select="input/param[@location='body']">
+ <xsl:if test="@type!=''">(<xsl:value-of select="@type"/>)fromOM(msgContext.getEnvelope().getBody().getFirstElement(), <xsl:value-of select="@type"/>.class)<xsl:if test="position() > 1">,</xsl:if></xsl:if>
+ </xsl:for-each>);
+ </xsl:when>
+ <xsl:otherwise>skel.<xsl:value-of select="@name"/>();</xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+
+ <xsl:otherwise>
+ //Unknown style!! No code is generated
+ throw UnsupportedOperationException("Unknown Style");
+ </xsl:otherwise>
+ </xsl:choose>
+
+ }
+ </xsl:for-each>
+
+ }
+ } catch (Exception e) {
+ throw org.apache.axis2.AxisFault.makeFault(e);
+ }
+ <xsl:for-each select="method"/>
+ }
+ <!-- Call templates recursively-->
+ //<xsl:apply-templates/>
+
+ }
+ </xsl:template>
+ <!-- start of in-only -->
</xsl:stylesheet>