Adding entity to books formatting

Sergey Kandaurov pluknet at gmail.com
Sat Dec 17 11:25:57 UTC 2011


On 15 December 2011 12:19, Dmitry Morozovsky <marck at rinet.ru> wrote:
> Dear colleagues,
>
> 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
>
> -- 8< --
>
> The error is unknown element:
>
> /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:
> element "SVNREF" undefined
> *** Error code 1
>
> Stop in /lh/home/marck/FreeBSD/doc/en_US.ISO8859-1/books/porters-handbook.
>
>
> It seems I;ve missed something very similar -- what?

hi,

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.

-- 
wbr,
pluknet



More information about the freebsd-doc mailing list