slacker_nl | hello, any docbook specialists available? | 18:18 |
---|---|---|
mdke | slacker_nl: I'll give it my best shot | 18:44 |
slacker_nl | mdke: i have a man page in docbook format, and I want to include some bits and pieces, eg copyright info/authors etc | 18:51 |
slacker_nl | http://pb.opperschaap.net/266 | 18:51 |
slacker_nl | but it doesn't show any author and/or copyright info | 18:51 |
mdke | that looks a little weird to me | 18:53 |
mdke | have you tried moving this bit inside the xinclude tag instead of in the authorgroup tag? | 18:53 |
slacker_nl | yes | 18:53 |
mdke | damn, I can't copy and paste | 18:54 |
mdke | like this | 18:54 |
mdke | http://pb.opperschaap.net/269 | 18:54 |
mdke | and run a validation check over your xml file like | 18:55 |
mdke | xmllint --noout --xinclude --noent --postvalid file.xml | 18:56 |
mdke | see if you get any results | 18:56 |
slacker_nl | http://pb.opperschaap.net/270 | 18:57 |
slacker_nl | i get the results i'm expecting, the xmllint doesn't like the fact that the authorgroup has multiple authors | 18:58 |
slacker_nl | <author> .. </author> <author> .. </author> etc etc, same for copyright.xml with <year> .. </year> | 18:58 |
mdke | you can have multiple authors in authorgroup | 18:59 |
mdke | that's sort of the point | 18:59 |
slacker_nl | :) I know | 18:59 |
mdke | try putting your authorgroup inside the separate xml tag instead of in your main file | 19:00 |
mdke | ditto for copyright | 19:01 |
mdke | i think xinclude requires that the file you are including has a complete tag in it | 19:01 |
slacker_nl | no dice | 19:07 |
slacker_nl | xmllint doesn't complain, yet it doesn't show anything in the manpage | 19:07 |
mdke | how are you viewing it? | 19:09 |
mdke | I suppose you could also put everything in the main file rather than separate it out and see if that works. At least then you know what is causing the problem | 19:10 |
slacker_nl | mdke: via man ./$outputfile | 19:11 |
slacker_nl | mdke: i know that it works if I put everything in the main file - that's how I started it | 19:12 |
slacker_nl | but I don't want to update authors/copyright etc in multiple files | 19:12 |
mdke | I don't know how man displays xml. if xmllint isn't complaining, then there isn't an issue with the xml | 19:13 |
mdke | perhaps man doesn't support xinclude? | 19:13 |
slacker_nl | i'm using docbook2x-man and xsltproc to create the man page | 19:13 |
slacker_nl | this is the output of xsltproc | 19:14 |
slacker_nl | http://pb.opperschaap.net/271 | 19:14 |
mdke | I think i've run out of ideas I'm afraid | 19:16 |
mdke | sorry | 19:16 |
mdke | you're using "xsltproc --xinclude" I guess? | 19:17 |
slacker_nl | nope, without | 19:17 |
mdke | ah, that might be it | 19:17 |
mdke | you need that | 19:18 |
slacker_nl | mm | 19:18 |
slacker_nl | ty, now see if docbook2x-man has similar options | 19:18 |
mdke | bbl | 19:20 |
=== Zeike is now known as brandonj | ||
=== Zeike is now known as brandonj |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!