I am having the same problem as described in How to get text from the node in xml file, that contains text and child node? but I need XSLT to match the text.
I have the following simplified XML:
<?xml version="1.0" encoding="UTF-8"?>
<order>2013-09-02T00:00:00COPY
<contentVersion>
<versionIdentification>2.1.1</versionIdentification>
</contentVersion>
</order>
I have tried the following XPATHs:
<xsl:variable name="vtextPostM" select="text()[self::order]"/>
<xsl:variable name="vtextPostM" select="self::text()[1]"/>
<xsl:variable name="vtextPostM" select="text()[self::*]"/>
I am expecting:
2013-09-02T00:00:00COPY