Getting value of xml file where local-name is equal to

Solution 1:

Instead of using a hack like *[local-name() = 'markt'], declare the same namespace in your stylesheet and use the expanded name, with prefix.

Here is a simplified example:

XSLT 1.0

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/rss">
    <table border="1">
        <xsl:for-each select="channel/item">
            <tr>
                <td>
                    <xsl:value-of select="title"/>
                </td>
                <td>
                    <xsl:value-of select="cdm:markt" xmlns:cdm="http://"/>
                </td>
            </tr>
        </xsl:for-each>
    </table>    
</xsl:template>

</xsl:stylesheet>

Applied to your input example, this will produce:

Result (rendered)

enter image description here