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

Re: generate XHTML header without causing xmlns attrib

Subject: Re: generate XHTML header without causing xmlns attributes ine.g. <table>?
From: "Emmanuil Batsis (Manos)" <mbatsis@xxxxxxxxxxx>
Date: Fri, 17 Oct 2003 16:53:29 +0300
xhtml xmlns
As already suggested, we cannot help you if you dont post the XSLT script or a link to it.

Flemming Jønsson wrote:
Hi Jarkko,


I thought I had to declare the name space in the xsl:template line like this:

<xsl:template name="exparameters" match="EX_PARAMETERS"

xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format">


<table border="1" cellpadding="3" cellspacing="0"

class="parameters" >


   <thead>
     <tr>
       ...


Well, normally these kind of declarations are done in the stylesheet level.




Originally I did it the way you suggests:
I have removed the xml namespace declaration in the template def. and tried this:

<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

However I get that xmlns="" in my table anyway?

The funny part is, I have two <table> tags in the page which is generated, and it is only in the second one that gets the xmlns attribute - why is that?

The template declarations look like this (now):
<xsl:template name="query" match="QUERY">
And <xsl:template name="exparameters" match="EX_PARAMETERS" xml:space="preserve">


First table tag in generated xhtml looks like this
<table class="querydef" cellspacing="0" cellpadding="3" border="1">

Second table tag looks like this
<table xmlns="" class="parameters" cellspacing="0" cellpadding="3" border="1">

I have tried searching the web for answers, but I don't think I've used the right keywords - I haven't been able to find anything which could lead me towards a solution to this. I am a beginner, so it might be even the simplest thing I've missed - so any help will be appreciated.

Have a great weekend everyone,
Flemming

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



-- Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/

http://www.netsmart.gr
mbatsis at netsmart dot gr
(+30) 210 33 02 608
(+30) 210 33 02 658
http://forte.netsmart.gr/foaf/manos_foaf.rdf




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.