[Home] [By Thread] [By Date] [Recent Entries]
On 28/03/2014 15:44, Philipp Kursawe wrote:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.foo.com/test" xmlns:foo="http://www.foo.com/text" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="0.1.1.0"> </xs:schema> If I edit your input to say test in both cases then <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xsl:template match="xs:schema"> <xsl:value-of select="namespace::*[.=current()/@targetNamespace]/local-name()"/> </xsl:template> </xsl:stylesheet> outputs "foo" David
|

Cart



