You could either define two different prefixes, one with the slash and
one without and use union (|) operators on every name test,
or you could implement a 2-stage transformation, where the first stage
converts all elements from the non-slash namespace into the slash
namespace. The 2nd stage could then proceed as usual.
-m
--- In rss-media@yahoogroups.com, "swveoh" <swells@...> wrote:
>
> The namespace has been "corrected" to have the trailing slash ... aside
> from the merits of this change (dates back many years to the
> distinction + use between namespaces & urls) - things have now since
> been breaking. As a proactive measure I'd like to deploy an XSLT
> stylesheet that respects both namespaces without much modification that
> will ensure both namespaces are respected:
>
> <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:media="http://search.yahoo.com/mrss/">
>
> <xsl:stylesheet version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:media="http://search.yahoo.com/mrss">
>
> Does anybody know how to combine these two in one line / namespace such
> that both versions will work and we can accomodate varying use cases
> going backward + forward? Thanks in advance.
>