Forum Moderators: coopster
I did verify that the XML and my approach were kosher. Applying this XSL worked as expected and ran through the whole XML document:
<xsl:template match="node()">
<xsl:element name="element">
<xsl:attribute name="name">
<xsl:value-of select="name(.)"/>
</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
It's just that if I were to do something like <xsl:value-of select="/el1/el2/el3"/> it doesn't work, even if I've triple-checked that those elements are present.
For what it's worth, php_info says "XPath Support" is "enabled". Any ideas?