If you are able to put some restrictions on the type of paths that will be passed as a parameter, then this can be done using a single XSLT 1.0 stylesheet.
It's too bad you refused to provide an example, forcing me to make up my own:
XSLT 1.0
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:param name="path"/>
<xsl:template match="/">
<selected-nodes>
<xsl:apply-templates/>
</selected-nodes>
</xsl:template>
<xsl:template match="*">
<xsl:variable name="path-to-me">
<xsl:for-each select="ancestor-or-self::*">
<xsl:value-of select="concat('/', name())"/>
</xsl:for-each>
</xsl:variable>
<xsl:if test="$path-to-me=$path">
<xsl:copy-of select="."/>
</xsl:if>
<xsl:apply-templates select="*"/>
</xsl:template>
</xsl:stylesheet>
XML
<book>
<chapter>
<title>Chapter One</title>
<section>
<title>First Section</title>
<subsection>
<title>Alpha</title>
</subsection>
<subsection>
<title>Bravo</title>
</subsection>
<subsection>
<title>Charlie</title>
</subsection>
</section>
<section>
<title>Second Section</title>
<subsection>
<title>Delta</title>
</subsection>
<subsection>
<title>Echo</title>
</subsection>
</section>
</chapter>
<chapter>
<title>Chapter Two</title>
<section>
<title>Third Section</title>
<subsection>
<title>Foxtrot</title>
</subsection>
<subsection>
<title>Golf</title>
</subsection>
</section>
<section>
<title>Fourth Section</title>
<subsection>
<title>Hotel</title>
</subsection>
<subsection>
<title>India</title>
</subsection>
<subsection>
<title>Juliet</title>
</subsection>
</section>
</chapter>
</book>
Parameter
$path = "/book/chapter/section/title"
Result
<?xml version="1.0" encoding="UTF-8"?>
<selected-nodes>
<title>First Section</title>
<title>Second Section</title>
<title>Third Section</title>
<title>Fourth Section</title>
</selected-nodes>
Constraints:
- The parameter passed must be a full absolute path to an element (although the method could be expanded to include other node types);
- No predicates are allowed (although the method could be expanded to include numerical predicates);
- It is assumed that the source XML nodes are in no namespace.