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..
Here is the XML documentation.. ..
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.M anageMeterReads .ServiceContrac ts.CommonEntiti es.EmployeeID".
I tried this... but not working...
now, as WSDL is not having comprehensive details, i am adding XML documentation (.NET) as well in XSLT.
like this..
Code:
<xsl:variable name="ddoc" select="document('CustomerCare.ManageMeterReads.ServiceContracts.xml')" />
Code:
<?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.M anageMeterReads .ServiceContrac ts.CommonEntiti es.EmployeeID".
I tried this... but not working...
Code:
<xsl:value-of select="$ddoc/doc/members/member[contains($ddoc/doc/members/member/@name,$type-local-name)]/summary"/>
Comment