[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] xsltproc doesn't work when book's namespace specified
[moving this over to the docbook-apps mailing list where such topics are discussed] When using xsltproc and DocBook 5 files, I would strongly recommend switching to the namespace-aware set of stylesheets. Download docbook-xsl-ns-1.73.2. You will have far fewer problems. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "ooDavid" <davidoof@o2.pl> To: <docbook@lists.oasis-open.org> Sent: Sunday, November 18, 2007 1:55 PM Subject: [docbook] xsltproc doesn't work when book's namespace specified > > Hi, > > I'm new to DocBook. > Let's say I have a simple xml docbook file: > <?xml version="1.0" encoding="utf-8"?> > <book version="5.0"> > <info> > <title>Simple Book</title> > <titleabbrev>Simple</titleabbrev> > </info> > ... > </book> > > Everything works fine with this one but if I add the xmlns attribute for > the > book, like this: > <?xml version="1.0" encoding="utf-8"?> > <book xmlns="http://docbook.org/ns/docbook" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="5.0"> > <info> > <title>Simple Book</title> > <titleabbrev>Simple</titleabbrev> > </info> > ... > </book> > > I end up with xsltproc producing such output for any transformation: > Request for title of element with no title: book > No template matches book. > No template matches info in book. > No template matches author in info. > No template matches personname in author. > No template matches title in info. > No template matches titleabbrev in info. > No template matches preface in book. > No template matches title in preface. > No template matches para in preface. > No template matches chapter in book. > No template matches title in chapter. > No template matches para in chapter. > No template matches chapter in book. > No template matches title in chapter. > No template matches para in chapter. > > How can I specify the namespace and keep xsltproc recognize the elements? > -- > View this message in context: > http://www.nabble.com/xsltproc-doesn%27t-work-when-book%27s-namespace-specified-tf4832056.html#a13824392 > Sent from the docbook General mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]