I am applying XSLT to WSDL to generate html pages.
now, as WSDL is not having comprehensive details, i am adding XML documentation (.NET) as well in XSLT.
like this..
- <xsl:variable name="ddoc" select="document('CustomerCare.ManageMeterReads.ServiceContracts.xml')" />
Here is the XML documentation....
- <?xml version="1.0"?>
-
<doc>
-
<assembly>
-
<name>CustomerCare.ManageMeterReads.ServiceContracts</name>
-
</assembly>
-
<members>
-
<member name="T:abc.pqr.test.CustomerCare.ManageMeterReads.ServiceContracts.CommonEntities.EmployeeID">
-
<summary>
-
Holds the configuration details for each Service.
-
</summary>
-
</member>
-
</members>
-
</doc>
WSDL is having element types e.g. EmployeeID ( i am able to extract the element types from XSDL, storing it in $type-local-name) however the description of that element is in above xml. my requirement is to get the "summary" element from above xml based on the member/name attribute.
WSDL just contain "EmployeeID" not full value "T:abc.pqr.test.CustomerCare.ManageMeterReads.Serv iceContracts.CommonEntities.EmployeeID".
I tried this... but not working...
- <xsl:value-of select="$ddoc/doc/members/member[contains($ddoc/doc/members/member/@name,$type-local-name)]/summary"/>