[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Getting rid of a namespace declaration

Subject: RE: Getting rid of a namespace declaration
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 15 Mar 2004 19:34:07 -0000
xslt get rid of namespaces
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@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
# list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Patricia Murray
# Sent: 15 March 2004 14:02
# To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
# Subject: RE:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.