Hi all,
Suppose you write a stylesheet to process a source document
that has no namespace.
Then you decide to add a namespace to the source document:
<doc xmlns="scribble"> ... </doc>
So now everywhere in your stylesheet that you want to select
or match elements in the source document, you have to
insert a prefix.
E.g. you have to change
<xsl:template match="foo">
<xsl:if test="parent::bar[(_at_)baz] = /*/squid">...</xsl:if>
into
<xsl:template match="myns:foo">
<xsl:if test="parent::myns:bar[(_at_)baz] = /*/myns:squid">...</xsl:if>
Has anyone written a program (e.g. a stylesheet) to do this
automatically?
Thanks,
Lars
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list