xsl-list
[Top] [All Lists]

RE: [xsl] transforming xml with namespace with no prefix

2008-01-29 11:13:46
<doc xmlns="http://rtf2xml.sourceforge.net/";>

Not until I manually remove the namespace declaration can I 
get basic templates to work.  Is there a line I can place in 
a stylesheet that will allow me to transform such xml documents?

Yes, in XSLT 2.0: xpath-default-namespace="http://rtf2xml.sourceforge.net/";

In XSLT 1.0 you need to bind a prefix to this namespace and use it in all
path expressions and match patterns that refer to the namespace.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>