[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Unable to get the document 'title' and'releaseinfo'
I am using fop-0.94 with docbook-xsl-1.73.2 no additional xslt. The command-line is: fop-0.94\fop.bat -xml input\test\index.xml -xsl custom\test-header.xsl -pdf output\test\test.pdf Even if name spaces are stripped, I believe either of these should be successful: > <xsl:value-of select="ancestor-or-self::book/info/title"/> > <xsl:value-of select="/book/info/title"/> ~spr Dave Pawson wrote: > > spr wrote: >> I have been able to customize the header and footer, but unable to put >> right >> information where I need. >> >> Have tried to access them by these: >> <xsl:value-of select="ancestor-or-self::d:book/d:info/d:title"/> >> <xsl:value-of select="ancestor-or-self::book/info/title"/> >> <xsl:value-of select="/book/info/title"/> > > Are you using the docbook xslt that strips out the namespaces? > > If so, //title[1] should find the title? > > HTH > >> >> But result is always "empty" string... >> DocBook 5 XML >> <?xml version='1.0'?> >> <!DOCTYPE book PUBLIC >> "-//OASIS//DTD DocBook V5.0//EN" >> "file:///D:/wrk/BookTest/docbook-5.0CR5/dtd/docbook.dtd" [ >> <!ENTITY nbsp " "> >> ]> >> >> <book >> lang = "en" >> xmlns = "http://docbook.org/ns/docbook" version="5.0" >> xmlns:xi = "http://www.w3.org/2001/XInclude" >> xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" >> xmlns:xlink = "http://www.w3.org/1999/xlink"> >> >> <info> >> <title>Book Title</title> >> <releaseinfo>Release Info</releaseinfo> >> </info> >> >> <chapter id="test"> >> <info> >> <title>Test Chapter</title> >> </info> >> <para> >> simple test para >> </para> >> </chapter> >> </book> >> >> Customization XSL : Attached file test-headers.xsl >> >> Command Used >> fop-0.94\fop.bat -xml input\test\index.xml -xsl custom\test-header.xsl >> -pdf >> output\test\test.pdf >> >> Result : Attached file test.pdf >> >> Attachments: >> http://www.nabble.com/file/p12976720/test.pdf test.pdf >> http://www.nabble.com/file/p12976720/test-header.xsl test-header.xsl > > > -- > Dave Pawson > XSLT, XSL-FO and Docbook FAQ > http://www.dpawson.co.uk > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > > -- View this message in context: http://www.nabble.com/Unable-to-get-the-document-%27title%27-and-%27releaseinfo%27-tf4547463.html#a12979768 Sent from the docbook apps mailing list archive at Nabble.com.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]