Adding entity to books formatting
Dmitry Morozovsky
marck at rinet.ru
Sat Dec 17 13:20:11 UTC 2011
On Sat, 17 Dec 2011, Sergey Kandaurov wrote:
> > I need an advice from dsl-fu-knowledgeable perswon ;)
> >
> > Prodded by glebius@, I'm trying to add new entity svnref to generate a link to
> > svnweb.
> >
> > My quick patch stopped with an erro, while generating seems-to-be-correct
> > content:
> >
> > -- 8< --
> > marck at woozle:~/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook> grep -6i
> > svnref freebsd-versions.html
> >>Dec 12, 2011</TD
> >><TD
> >>10-CURRENT after defining boolean true/false in sys/types.h,
> > sizeof(bool) may had changed (rev <A
> > HREF="http://svnweb.freebsd.org/base?view=revision&revision=228444"
> >><TT
> > CLASS="SVNREF"
> >>228444</TT
> >></A
> >>).
> > <TT
> > CLASS="FILENAME"
> >>foofile</TT
>
> You most probably need to modify share/sgml/freebsd41.dtd as well.
> Something like these lines:
>
> +<!ELEMENT SVNRef - - ((%cptr.char.mix;)+)>
> +<!ATTLIST SVNRef
> + %common.attrib;
> +>
> +
>
> Hope this helps.
Thanks!
Not exactly ;) -- now it's recognized but specifically disallowed:
/usr/bin/env SP_ENCODING=ISO-8859-1 /usr/local/bin/jade -V html-manifest
-ioutput.html -d
/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/freebsd.dsl
-ifreebsd.urls.relprefix.4 -V %generate-legalnotice-link% -ioutput.html.images
-D
/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/../../../share/images/books/porters-handbook
-D /usr/obj/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook -c
/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/share/sgml/catalog -c
/lh/home/marck/FreeBSD/doc/share/sgml/catalog -c
/usr/local/share/sgml/docbook/dsssl/modular/catalog -c
/usr/local/share/sgml/iso8879/catalog -c /usr/local/share/sgml/jade/catalog -c
/usr/local/share/sgml/catalog.ports -t sgml
/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml
/usr/local/bin/jade:/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml:14547:49:E:
document type does not allow element "SVNREF" here
/usr/local/bin/jade:/lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml:14549:20:E:
document type does not allow element "SVNREF" here
*** Error code 1
--
Sincerely,
D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer: marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------
More information about the freebsd-doc
mailing list