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

Re: Specifying the XHTML XMLNS

Subject: Re: Specifying the XHTML XMLNS
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Sep 2005 14:56:38 +0100
xhtml xmlns
  If I add this to my stylesheet, I get a correct <html> node but I get
  these kind of things on the rest of the result:

  ...
  <link rel="stylesheet" href="./css/login.css" type="text/css" xmlns=""></link>
  ..

You have generated an link in no-namespace, so having made html (and,
presumably, head) in xhtml, the system has to add xmlns="" to teh
serialised output to keep link in no-namespace.

However you don't want link in no-namespace so the solution is to
generate a link element in xhtml then the system will not ad any xml
namespace declaration at all as the namespace of link will be the same
as that of its parent.


But presumably this was not generated by the stylesheet that you posted
earlier, as that had a literal result element <link> so if you added
xmlns="http.... to xsl:stylesheet then this link element would be in the
xhtml namespace not in no-namespace and you woul dnot get xmlns=""
generated.

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
________________________________________________________________________

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.