namespace - don't like to like the like
I'm trying hard to produce an (X)HTML file like this: <!DOCTYPE .....> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> ..... </html> I want to declare a default namespace for the html tags (I was asked to do this though it won't make any difference for the browsers at leat for now. XHTML insists you declare a namespace as I read the standard). I tried: <xsl:tylesheet ...> <xsl:template match="/"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> ..... </html> </xsl:template> </xsl:stylesheet> I tried the <xsl:element name="html" namespace="....."> too. The namespace was not in the HTML file. I always get <html lang="en">. Have I missed the obvious and nobody wants to post an answer or else? Thanks for your help. Peiyun p.s. I wonder if my message is posted. Can someone please let me know? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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