Hi Wim

Thanks very much! I’m impressed.

I’ll have to think about the restriction of each step having exactly one cmd 
and one info element. That could be good for us – forcing us to keep our 
procedures simple.

Cheers
Rebecca

From: Wim Hooghwinkel - idtp [mailto:w...@idtp.eu]
Sent: Wednesday, 22 October 2014 9:40 a.m.
To: Rebecca Officer
Cc: framers@lists.frameusers.com
Subject: Re: wrapping DITA steps in tables

Hi Rebecca,

interesting question. Theoretically it should be possible to 'translate’ the 
steps element into a FrameMaker table, for presentation, just like we do with 
the properties element.
It would put some heavy constraints on your content however, as each step must 
have exactly one cmd and one info element.

You’ll need to adapt the read/write rules and the EDD. I just did a test and it 
seems to work. Look at the constructs for the property element in the reference 
rules and EDD to see how you can set it up. This what I’ve got in the rules 
file:

  /* steps */
element "steps" {
  is fm table element;
  fm property columns value is "2";
  attribute "props" is fm property column widths;
  }

fm element "fm-stepsbody" unwrap;
element "step" {
  is fm table row element;
  fm property row type value is "Body";
  }
element "cmd" is fm table cell element;
element "info" is fm table cell element;

(note: I used default FM DITA, not DITA-fmx yet)(note: I left out the table 
heading ….)

To make it work in the EDD I made <steps> to be Element (Table), where general 
rule is fm-stepsbody.
Then <fm-stepsbody> has step+ and <step> (Table Row) has cmd, info.
cmd and info are both Table Cell.

Actually, in a task topic this works like a charm and is a perfect template to 
make 'clean' tasks.
Using (cmd, info) as the general rule for step makes inserting and adding steps 
very easy.

In the WYSIWYG view I can see a table, while in the XML view I can see the 
correct steps xml code.

Thanks for the suggestion ….

Then
Vriendelijke groet / Kind regards,

Wim Hooghwinkel

November 11-13 TcWorld 2014<http://conferences.tekom.de/tcworld14/>
Closing the loop with FontoXML<http://www.fontoxml.com>
DITA content management with DITAToo<http://www.ditatoo.com>

tel. +31652036811
Skype wimhooghwinkel
Twitter @idtp @ien2013
i...@idtp.eu<mailto:i...@idtp.eu>
www.idtp.eu<http://www.idtp.eu>

_______________________________________________


You are currently subscribed to framers as arch...@mail-archive.com.

Send list messages to framers@lists.frameusers.com.

To unsubscribe send a blank email to
framers-unsubscr...@lists.frameusers.com
or visit 
http://lists.frameusers.com/mailman/options/framers/archive%40mail-archive.com

Send administrative questions to listad...@frameusers.com. Visit
http://www.frameusers.com/ for more resources and info.

Reply via email to