xsl-list
[Top] [All Lists]

Re: namespaces and xmlns=""

2005-11-29 04:14:23


<xsl:element name="image">

here you generate an element with local name image in no-namespace (as
the default namespace in the stylesheet is null.

You output this as a child of an element with local name channel in the
namespace http://purl.org/rss/1.0/.


The only way to express this in a conforming XML Namespace document is
to have

<image  xmlns=""/>

or to use a prefix on the channel element and use something like
<rss:channel xmlns:rss="http://purl.org/rss/1.0/"; 
 rdf:about="http://about.about.com/";>

leaving the unprefixed elements in no-namespace.

These are equivalent, it doesn't really make any difference which you
use.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>