Hi Jirka,

The <div xmlns=""> is not coming from titlepage.xsl, it is happening later in 
some custom processing. However, the reason the null namespace gets inserted 
downstream is that the <div> elements in the generated titlepage.xsl are not in 
any namespace.

I.e., the generated titlepage.xsl file has no default namespace declaration 
(just declarations for xsl, exsl, and docbook, all three with prefixes), but it 
does have elements that have no namespace prefix (those <div> elements). This 
is different from the titlepage.xsl file in the 1.77.1 distribution, which has 
namespace declarations on each <div> element.

The titlepage template file (I presume you mean titlepage.xml) does have a 
default declaration (xhtml, as expected). In fact, once this started happening, 
I re-generated the distributed titlepage.xml file and got a generated 
titlepage.xsl file that was identical to the one in epub3/titlepage.xsl, except 
that the <div> elements have no namespace declaration on them and there is no 
default declaration.

So, I can manually fix the problem by adding a default namespace declaration to 
the generated titlepage.xsl file. However, I don't know why the 
epub3/titlepage.xsl file in the distribution puts <div> in a namespace, but a 
file generated from the same xml file doesn't.

Thanks,
Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
[email protected]



On Sep 10, 2012, at 1:47 PM, Jirka Kosek wrote:

> On 10.9.2012 21:15, Richard Hamilton wrote:
> 
>> Thanks for the information. Is the change you describe in
>> titlepage.xsl in 1.77.1 or is it newer? I ask because I tried this
>> with 1.77.1 and it didn't change anything, so I suspect I don't have
>> a version of the stylesheets that has this change.
> 
> This change is from October 2011, so it should be in 1.77.1 I suppose.
> Are you sure that <div xmlns=""> is comming from code generated by
> titlepage.xsl. It might be that you forgot namespace declaration in your
> titlepage template file.
> 
>                               Jirka
> 
> -- 
> ------------------------------------------------------------------
>  Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
> ------------------------------------------------------------------
>       Professional XML consulting and training services
>  DocBook customization, custom XSLT/XSL-FO document processing
> ------------------------------------------------------------------
> OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
> ------------------------------------------------------------------
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to