[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Adding new element to the scheme
Hi Iâm new to docbook and XSLT, and tried to find the answer among the different books/websites and failed, so looking up for your help (pointers to the right place will be good as well). Iâm trying to add a new element to my docbook, that will describe a requirement for example: <requirement> <req_id>TRC_001</req_id> <version>1</version> <status>New</status> <priority>H</priority> <description>We need to be able to save a snapshot of requirements per product version</description> <traceability>None</traceability> </requirement> In my outputs, I want to format each such requirement as a table. Writing same table as docbook table directly, I would have something like: <table> <tgroup cols="4"> <colspec colnum="1" colname="1" colwidth="*" /> <colspec colnum="2" colname="3" colwidth="*" /> <colspec colnum="3" colname="3" colwidth="*" /> <colspec colnum="4" colname="4" colwidth="*" /> <spanspec spanname="desc" namest="1" nameend="3"/> <tbody> <row> <entry><para>TRC_001</para> </entry> <entry><para>1</para> </entry> <entry><para>New</para></entry> <entry><para>H</para></entry> </row> <row> <entry spanname="desc"><para> We need to be able to save a snapshot of requirements per product version </para></entry> <entry colname="4"><para>None</para></entry> </row> </tbody> </tgroup> </table> I tried to add this to stylesheet, but I cannot write âdocbookâ table there, and I have to do it per output format (HTML â use the tr & td flags, FO for PDF and other print formatsâ)
Thanks in advance Ilan |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]