XPath is for selection. Your desired output is not available to be selected from your input XML.
XSLT is for transformation. Your output XML can easily be transformed from your input XML via the identity transformation plus a template to suppress d
elements:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- By default, copy nodes to output -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- But suppress d elements -->
<xsl:template match="d"/>
</xsl:stylesheet>