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

Re: xmlnx="" declarations appears in html element?

Subject: Re: xmlnx="" declarations appears in html element?
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 14 Feb 2002 20:06:24 -0700 (MST)
Re:  xmlnx="" declarations appears in html element?
Khalid wrote:
> <html 
> 	xmlns:localutil="xslt.java.util.Utils" 
> 	xmlns:java.util.Date="java.util.Date" 
> 	xmlns:java.text.SimpleDateFormat="java.text.SimpleDateFormat">
> my question is tha is it how it should look like

I believe an oversight in the XSLT spec requires the serialization of
namespace nodes for the html output method to be carried out in the same
manner as for the xml output method. So yes, that's what you 'should' be
getting, even though HTML has no concept of namespaces.

> or there is a way to stop xslt
> processor from inserting namespace deffinitions to put in html element

Add the following attribute to your xsl:stylesheet element:

exclude-result-prefixes="localutil java.util.date java.text.SimpleDateFormat"

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 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.