Subject: RE: [xsl] generate XHTML header without causing xmlns attributes in e.g. <table>? From: "Michael Kay" <mhk@xxxxxxxxx> Date: Fri, 17 Oct 2003 13:46:04 +0100 |
> > 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> > ... > > But the resulting table tag in XHTML is: > <table xmlns="" class="parameters" cellspacing="0" > cellpadding="3" border="1"> > <thead> > <tr> > ... > This code looks perfectly correct to me. This means either: * I haven't spotted your error, or * There is something odd in a part of the stylesheet you haven't shown us, or * you are using a buggy XSLT processor (unlikely if you are using one of the widely-used ones, but I don't think you told us which one it was). The next thing I would do is to run it against a different processor and see if the results are the same. Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] generate XHTML header wit, Jarkko Moilanen | Thread | RE: [xsl] generate XHTML header wit, Wendell Piez |
RE: [xsl] generate XHTML header wit, Flemming Jønsson | Date | [xsl] Flattening parts of a documen, David Holden |
Month |