Re: [docbook-apps] does not number...
I can understand the hassle of setting this chain up. Suggest you isolate each step? Validation Transformation to xsl-fo fo processing to PDF. for 2 I have java -Xms1024m -cp /myjava/saxonB.jar:/myjava/xercesImpl.jar:/myjava/xml-apis.jar:/myjava/resolver.jar:/sgml -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration net.sf.saxon.Transform -x org.apache.xml.resolver.tools.ResolvingXMLReader -y org.apache.xml.resolver.tools.ResolvingXMLReader -r:org.apache.xml.resolver.tools.CatalogResolver -s:$1 -xsl:$2 -o:$3 $4 1 is the source, 2 the stylesheet 3 the output 4 any additional saxon params. Adjust parms as necessary. (may be out of date). My fop script is export fophome=/apps/fop10 f=$fophome/lib fop=$fophome/build/fop.jar cp=$f/xmlgraphics-commons-1.4.jar:$f/batik-all-1.7.jar:$f/commons-logging-1.0.4.jar:$f/commons-io-1.3.1.jar:$f/avalon-framework-4.2.0.jar:$fop java -cp $cp org.apache.fop.cli.Main -r -c $fophome/fop.conf -fo $1 -pdf $2 input fo is $1 output pdf is $2 HTH On 10 February 2017 at 20:26,wrote: > Hi, > > I was going by this reference as to requirements, and have not read the > whole book (thus I did not yet see the Java requirement): > http://tdg.docbook.org/tdg/5.1/programlisting.html > > Admittedly I'm trying to do something quicker than I should and not reading > everything (I've been through a lot of material, but it's just a drop in the > bucket for everything needed when I really just need to sit down and write > content). I've had some frustrations getting the Java-based processors > working and have tried to stick to the xmllint/jing/xsltproc family for that > single reason. The Java-based processing answer likely also answers my > earlier syntax highlighting question about whether to abandon my current > approach with xmllint. > > To use Saxon or Xalan I would have to change the current build scheme, which > I've never succeeded at: > xmllint --output "${OBJ}/${TITLE}_monolithic.xml" --nonet --noent -xinclude > "${CONTENT}/${TITLE}.xml" > xsltproc --output ${OBJ}/${TITLE}_monolithic.fo ${XSLT}/docbook.xsl > ${OBJ}/${TITLE}_monolithic.xml > fop -c ${PREFIX}/fop.xconf -fo ${OBJ}/${TITLE}_monolithic.fo -pdf > ${OUT}/${TITLE}.pdf > > I realize I'm probably asking a lot, but is there any advice I can get on > editing that chain of commands to instead work with Saxon or Xalan? Getting > past the tools on the command line (for a hand written Makefile) is just > getting frustrating and is why the current chain of commands have never > evolved to anything Java-based. > > I do plan on reading more (I'm not resisting reading), but there are other > requirements which tend to require at least a draft to be available sooner > rather than later. > > Thanks! > > - Original Message - > From: Bob Stayton > To: stim...@comcast.net, Docbook > Sent: Fri, 10 Feb 2017 19:09:00 - (UTC) > Subject: Re: [docbook-apps] does > not number... > Hi, > Did you read this section in my online book about line numbering? It > only works with Java-based processors. > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > On 2/10/2017 11:01 AM, stim...@comcast.net wrote: >> Hi, >> >> Under DocBook 5.1 I've been able to list programs, but line numbering >> has no effect (and there is no error under xmllint or jing). Is there >> some ENTITY or other precondition required for line numbering under 5.1? >> >> Thanks! -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] does not number...
Hi, Here is the link to the part of Bob’s book that covers the Saxon processor: http://sagehill.net/docbookxsl/InstallingAProcessor.html#InstallSaxon I think you can keep the xmllint processing as is (I use it for XInclude processing, too), and just swap in saxon for xsltproc, using Bob’s instructions. I don’t bother swapping in Xerces (I don’t use any of the features that go beyond what Saxon supports). Best regards, Dick --- XML Press XML for Technical Communicators http://xmlpress.net hamil...@xmlpress.net > On Feb 10, 2017, at 12:26, stim...@comcast.net wrote: > > Hi, > > I was going by this reference as to requirements, and have not read the whole > book (thus I did not yet see the Java requirement): > http://tdg.docbook.org/tdg/5.1/programlisting.html > > Admittedly I'm trying to do something quicker than I should and not reading > everything (I've been through a lot of material, but it's just a drop in the > bucket for everything needed when I really just need to sit down and write > content). I've had some frustrations getting the Java-based processors > working and have tried to stick to the xmllint/jing/xsltproc family for that > single reason. The Java-based processing answer likely also answers my > earlier syntax highlighting question about whether to abandon my current > approach with xmllint. > > To use Saxon or Xalan I would have to change the current build scheme, which > I've never succeeded at: > xmllint --output "${OBJ}/${TITLE}_monolithic.xml" --nonet --noent -xinclude > "${CONTENT}/${TITLE}.xml" > xsltproc --output ${OBJ}/${TITLE}_monolithic.fo ${XSLT}/docbook.xsl > ${OBJ}/${TITLE}_monolithic.xml > fop -c ${PREFIX}/fop.xconf -fo ${OBJ}/${TITLE}_monolithic.fo -pdf > ${OUT}/${TITLE}.pdf > > I realize I'm probably asking a lot, but is there any advice I can get on > editing that chain of commands to instead work with Saxon or Xalan? Getting > past the tools on the command line (for a hand written Makefile) is just > getting frustrating and is why the current chain of commands have never > evolved to anything Java-based. > > I do plan on reading more (I'm not resisting reading), but there are other > requirements which tend to require at least a draft to be available sooner > rather than later. > > Thanks! > > - Original Message - > From: Bob Stayton> To: stim...@comcast.net, Docbook > Sent: Fri, 10 Feb 2017 19:09:00 - (UTC) > Subject: Re: [docbook-apps] does > not number... > Hi, > Did you read this section in my online book about line numbering? It > only works with Java-based processors. > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > On 2/10/2017 11:01 AM, stim...@comcast.net wrote: > > Hi, > > > > Under DocBook 5.1 I've been able to list programs, but line numbering > > has no effect (and there is no error under xmllint or jing). Is there > > some ENTITY or other precondition required for line numbering under 5.1? > > > > Thanks! - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] does not number...
Hi, I was going by this reference as to requirements, and have not read the whole book (thus I did not yet see the Java requirement): http://tdg.docbook.org/tdg/5.1/programlisting.html Admittedly I'm trying to do something quicker than I should and not reading everything (I've been through a lot of material, but it's just a drop in the bucket for everything needed when I really just need to sit down and write content). I've had some frustrations getting the Java-based processors working and have tried to stick to the xmllint/jing/xsltproc family for that single reason. The Java-based processing answer likely also answers my earlier syntax highlighting question about whether to abandon my current approach with xmllint. To use Saxon or Xalan I would have to change the current build scheme, which I've never succeeded at: xmllint --output "${OBJ}/${TITLE}_monolithic.xml" --nonet --noent -xinclude "${CONTENT}/${TITLE}.xml" xsltproc --output ${OBJ}/${TITLE}_monolithic.fo ${XSLT}/docbook.xsl ${OBJ}/${TITLE}_monolithic.xml fop -c ${PREFIX}/fop.xconf -fo ${OBJ}/${TITLE}_monolithic.fo -pdf ${OUT}/${TITLE}.pdf I realize I'm probably asking a lot, but is there any advice I can get on editing that chain of commands to instead work with Saxon or Xalan? Getting past the tools on the command line (for a hand written Makefile) is just getting frustrating and is why the current chain of commands have never evolved to anything Java-based. I do plan on reading more (I'm not resisting reading), but there are other requirements which tend to require at least a draft to be available sooner rather than later. Thanks! - Original Message -From: Bob StaytonTo: stim...@comcast.net, Docbook Sent: Fri, 10 Feb 2017 19:09:00 - (UTC)Subject: Re: [docbook-apps] does not number... Hi,Did you read this section in my online book about line numbering? It only works with Java-based processors. Bob StaytonSagehill enterprisesb...@sagehill.net On 2/10/2017 11:01 AM, stim...@comcast.net wrote:> Hi,>> Under DocBook 5.1 I've been able to list programs, but line numbering> has no effect (and there is no error under xmllint or jing). Is there> some ENTITY or other precondition required for line numbering under 5.1?>> Thanks!
Re: [docbook-apps] does not number...
Oops, forgot to include the link: http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering Bob Stayton Sagehill Enterprises b...@sagehill.net On 2/10/2017 11:09 AM, Bob Stayton wrote: Hi, Did you read this section in my online book about line numbering? It only works with Java-based processors. Bob Stayton Sagehill Enterprises b...@sagehill.net On 2/10/2017 11:01 AM, stim...@comcast.net wrote: Hi, Under DocBook 5.1 I've been able to list programs, but line numbering has no effect (and there is no error under xmllint or jing). Is there some ENTITY or other precondition required for line numbering under 5.1? Thanks! - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] does not number...
Hi, Did you read this section in my online book about line numbering? It only works with Java-based processors. Bob Stayton Sagehill Enterprises b...@sagehill.net On 2/10/2017 11:01 AM, stim...@comcast.net wrote: Hi, Under DocBook 5.1 I've been able to list programs, but line numbering has no effect (and there is no error under xmllint or jing). Is there some ENTITY or other precondition required for line numbering under 5.1? Thanks! - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] does not number...
Hi, Under DocBook 5.1 I've been able to list programs, but line numbering has no effect (and there is no error under xmllint or jing). Is there some ENTITY or other precondition required for line numbering under 5.1? Thanks!