|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Specifying the 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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








