Get only the specific data in the XML File using XSLT



How can I get the specific data from the XML File using XSLT? I have an input which looks like this:



<?xml version="1.0" encoding="UTF-8"?><edefter:defter xmlns:edefter="http://ift.tt/1oLu297" xmlns:link="http://ift.tt/MAXFJA" xmlns:xlink="http://ift.tt/PGV9lw" xmlns:xbrli="http://ift.tt/1mq8wUi" xmlns:gl-cor="http://ift.tt/1vavtxV" xmlns:gl-bus="http://ift.tt/1oLu4hm" xmlns:xsi="http://ift.tt/ra1lAU" xmlns:ds="http://ift.tt/uq6naF" xmlns:xades="http://ift.tt/1kBwwA9"><xbrli:xbrl xmlns:iso4217="http://ift.tt/1jULobD" xmlns:gl-plt="http://ift.tt/1oLu298" xmlns:iso639="http://ift.tt/1vavvpg"><link:schemaRef xlink:href="../xsd/2006-10-25/plt/case-c-b/gl-plt-2006-10-25.xsd" xlink:type="simple"/><xbrli:context id="ledger_context"><xbrli:entity><xbrli:identifier scheme="http://www.gib.gov.tr">DocumentID</xbrli:identifier></xbrli:entity></xbrli:context><xbrli:unit id="try"><xbrli:measure>iso4217:TRY</xbrli:measure></xbrli:unit><gl-cor:accountingEntries><gl-cor:documentInfo><gl-cor:entriesType contextRef="ledger_context">journal</gl-cor:entriesType><gl-cor:uniqueID contextRef="ledger_context">YEV1967DocumentID</gl-cor:uniqueID></gl-cor:documentInfo><gl-cor:entityInformation><gl-bus:entityPhoneNumber><gl-bus:phoneNumberDescription contextRef="ledger_context">main</gl-bus:phoneNumberDescription><gl-bus:phoneNumber contextRef="ledger_context">012-34-56</gl-bus:phoneNumber></gl-bus:entityPhoneNumber><gl-bus:entityFaxNumberStructure><gl-bus:entityFaxNumber contextRef="ledger_context">123-96-4</gl-bus:entityFaxNumber></gl-bus:entityFaxNumberStructure><gl-bus:entityEmailAddressStructure><gl-bus:entityEmailAddress contextRef="ledger_context">abced@yahoo.com</gl-bus:entityEmailAddress></gl-bus:entityEmailAddressStructure></gl-cor:entityInformation><gl-cor:entryHeader><gl-bus:totalDebit contextRef="ledger_context" unitRef="try">0</gl-bus:totalDebit><gl-bus:totalCredit contextRef="ledger_context" unitRef="try">55</gl-bus:totalCredit><gl-cor:entryDetail><gl-cor:lineNumber contextRef="ledger_context">2</gl-cor:lineNumber><gl-cor:lineNumberCounter contextRef="ledger_context" unitRef="countable">1</gl-cor:lineNumberCounter><gl-cor:account><gl-cor:accountMainID contextRef="ledger_context">095</gl-cor:accountMainID><gl-cor:accountMainDescription contextRef="ledger_context">GLMainAccountName</gl-cor:accountMainDescription></gl-cor:entryHeader></gl-cor:entryDetail></gl-cor:accountingEntries></xbrli:xbrl><HashValue>Sample</HashValue></edefter:defter>


and the expected output should be:



<?xml version="1.0" encoding="UTF-8"?><edefter:defter xmlns:edefter="http://ift.tt/1oLu297" xmlns:link="http://ift.tt/MAXFJA" xmlns:xlink="http://ift.tt/PGV9lw" xmlns:xbrli="http://ift.tt/1mq8wUi" xmlns:gl-cor="http://ift.tt/1vavtxV" xmlns:gl-bus="http://ift.tt/1oLu4hm" xmlns:xsi="http://ift.tt/ra1lAU" xmlns:ds="http://ift.tt/uq6naF" xmlns:xades="http://ift.tt/1kBwwA9"><xbrli:xbrl xmlns:iso4217="http://ift.tt/1jULobD" xmlns:gl-plt="http://ift.tt/1oLu298" xmlns:iso639="http://ift.tt/1vavvpg"><link:schemaRef xlink:href="../xsd/2006-10-25/plt/case-c-b/gl-plt-2006-10-25.xsd" xlink:type="simple"/><xbrli:context id="ledger_context"><xbrli:entity><xbrli:identifier scheme="http://www.gib.gov.tr">DocumentID</xbrli:identifier></xbrli:entity></xbrli:context><xbrli:unit id="try"><xbrli:measure>iso4217:TRY</xbrli:measure></xbrli:unit><gl-cor:accountingEntries><gl-cor:documentInfo><gl-cor:entriesType contextRef="ledger_context">journal</gl-cor:entriesType><gl-cor:uniqueID contextRef="ledger_context">YEV1967DocumentID</gl-cor:uniqueID></gl-cor:documentInfo><gl-cor:entityInformation><gl-bus:entityPhoneNumber><gl-bus:phoneNumberDescription contextRef="ledger_context">main</gl-bus:phoneNumberDescription><gl-bus:phoneNumber contextRef="ledger_context">012-34-56</gl-bus:phoneNumber></gl-bus:entityPhoneNumber><gl-bus:entityFaxNumberStructure><gl-bus:entityFaxNumber contextRef="ledger_context">123-96-4</gl-bus:entityFaxNumber></gl-bus:entityFaxNumberStructure><gl-bus:entityEmailAddressStructure><gl-bus:entityEmailAddress contextRef="ledger_context">abced@yahoo.com</gl-bus:entityEmailAddress></gl-bus:entityEmailAddressStructure></gl-cor:entityInformation></gl-cor:accountingEntries></xbrli:xbrl><HashValue>Sample</HashValue></edefter:defter>


I want to disregard all the data from the entryHeader. Is it possible to do that using the XSLT?


Thank you.


Tiada ulasan:

Catat Ulasan