On 11.9.2012 0:02, Richard Hamilton wrote: > 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.
This is really strange. On my machine deleting
epub3/titlepage.templates.xsl and running make produces file identical
to the distribution with XHTML namespace declared on each <div>
> 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.
Ah, you have been using xsl-ns, right? I see the problem now,
template/titlepage.xsl in xsl-ns distribution doesn't support ns
parameter which is cruical. I have to investigate how xsl-ns is
generated, I'm not using them regularly.
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
------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
