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

AW: XHTML rendering: xmlns Attribute in every template

Subject: AW: XHTML rendering: xmlns Attribute in every template?
From: <christof.hoeke@xxxxxxx>
Date: Wed, 26 May 2004 12:52:07 +0200
xhtml xmlns
the most obious is also the most difficult to think of sometimes... thanks!
chris

> -----Urspr|ngliche Nachricht-----
> Von: Michael Kay [mailto:mhk@xxxxxxxxx]
> Gesendet: Mittwoch, 26. Mai 2004 12:32
> An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Betreff: RE:  XHTML rendering: xmlns Attribute in every template?
> 
> 
> Why not just put xmlns="http://www.w3.org/1999/xhtml" on the 
> xsl:stylesheet
> element?
> 
> Michael Kay 
> 
> > -----Original Message-----
> > From: christof.hoeke@xxxxxxx [mailto:christof.hoeke@xxxxxxx] 
> > Sent: 26 May 2004 10:03
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  XHTML rendering: xmlns Attribute in every template?
> > 
> > hello,
> > i am working on a quite simple custom XML to XHTML 
> > stylesheet. in the XSL template i put the XHTML xmlns in the 
> > top level html element.
> > 	<html xmlns="http://www.w3.org/1999/xhtml">
> > so every result element in this template is also in the 
> XHTML xmlns. 
> > 
> > the problem is that in every other template that i put into 
> > the stylesheet every result element again has to be put in 
> > the XHTML xmlns. so the whole stylesheet is more or less 
> > cluttered with 
> > <b xmlns="http://www.w3.org/1999/xhtml">... stuff.
> > 
> > the only other solution would be to put a 
> > xmlns:h="http://www.w3.org/1999/xhtml" in the xsl:stylesheet 
> > element and prefix all result elements with that
> > <h:b>...
> > 
> > is the above the way it works? is there any simpler way of 
> > dealing with namespaces or this the only solution? esp with 
> > generating HTML it seems odd to use a namespace prefix.
> > 
> > thanks
> > chris

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.