[Home] [By Thread] [By Date] [Recent Entries]
Abel Braaksma wrote:
Garvin Riensche wrote:Hello, Hmm, that was a little verbose. This also works well and is easier to read and understand, and now the parameter can be a simple string (but make sure the prefix is the same as the in-scope prefix of the element you are testing, which in turn means that you must choose your prefixes wisely): <xsl:param name="target" as="xs:string" select=" 't:child1' " /> <xsl:template match="/root/*[resolve-QName($target, .) = resolve-QName(name(), .)]/child" >.... (I am not really accustomed with these functions, not sure what pitfalls you should be aware of before applying this in a stable environment) Cheers, -- Abel Braaksma
|

Cart



