I think that the namespace declarations where not redundant at all. It
was probably HTMLish elements in a null namespace (within the
stylesheet) which resulted in xmlns declarations to nodes copied from
the source tree. That's why I suggested using the XHTML namespace as the
default ns in the stylesheet.
Cheers,
Manos
Michael Kay wrote:
If the namespace declarations really are redundant (redeclaring a namespace
that is already declared on an outer element) then the way to get rid of
them is to use a better XSLT processor.
Michael Kay
# -----Original Message-----
# From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-
# list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of Patricia Murray
# Sent: 15 March 2004 14:02
# To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
# Subject: RE: [xsl] Getting rid of a namespace declaration
#
# Hiy there again,
#
# Ive qualified my xhtml elements but still no difference.
#
# So to recap, in my stylesheet, xhtml elements are in
# <xsl: stylesheet xmlns:xhtml=http://www.w3.org/1999/xhtml
# And in the imported document, they are in the default namespace:
# <html xmlns="http://www.w3.org/1999/xhtml">
#
#
# The output looks as follows with the imported elements enclosed in the
# div class="content":
#
#
# <html xmlns:xhtml="http://www.w3.org/1999/xhtml">
# <head>
# <meta http-equiv="Content-Type" content="text/html;
# charset=UTF-8">
#
# ....
# <div class="content" id="content">
# <h1 xmlns="http://www.w3.org/1999/xhtml">The Census</h1>
# <h2 xmlns="http://www.w3.org/1999/xhtml">Collecting the data
# </h2>
# <p xmlns="http://www.w3.org/1999/xhtml">Every 10 years, all
# people and households in the
#
#
# But I don't want the xmlns: declarations on the imported elements cos
# they are already in that namespace. Is there anyway I can get around
# this??
#
# Thanks.
#
#
#
#
#
# ***********************************
# E-Learning Developer
# Nomis, University of Durham
# http://www.nomisweb.co.uk/
# 0191 334 2680
#
#
#
# XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
Manos Batsis
_ __ __ __
/ |/ /__ / /____ __ _ ___ _____/ /_
/ / -_) __(_-</ ' Y _ `/ __/ __/
/_/|_/\__/\__/___/_/_/_|_,_/_/ \__/
http://www.netsmart.gr
mailto:mbatsisSPAM_TRAP(_at_)netsmart(_dot_)gr
tel:+302103240940
http://forte.netsmart.gr/foaf/manos_foaf.rdf
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list