Ana içeriğe geç

Bileşik Kütük Servisi Örneği ile Header ve SOAP Body İçeriği Ayıklama

not

Namespace'ler default eklendi, abc namespace'i SorgulaResponse'ta idi ve ismi yoktu. İsim verilip altındaki tüm objeler bununla başlatıldı.

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:abc="http://kps.nvi.gov.tr/2011/01/01"

xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:b="http://schemas.datacontract.org/2004/07/Common.Types.Containers.Services">
<xsl:template match="/">
<Envelope><Header/><Body>
<xsl:apply-templates select="s:Envelope/s:Body/abc:SorgulaResponse/abc:SorgulaResult/abc:SorguSonucu/abc:BilesikKutukBilgileri/abc:TCVatandasiKisiKutukleri/*"/>
</Body></Envelope>
</xsl:template>

<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>

</xsl:stylesheet>