[xep-support] involved xfers and codeblock line numbering

John Accardi accardi at accardi.com
Wed Jan 3 13:11:11 PST 2007


Great.  Thanks again, Eliot.

John

W. Eliot Kimber wrote:
> John Accardi wrote:
>> Thanks, Eliot.
>>
>> These are very good ideas that I will try.
>
> I looked into the available DITA constructs a bit more closely and I 
> think what you need is to specialize the "ph" (phrase) element to act 
> as a target for specific lines within "pre" and, possibly, to hold a 
> label for the line (where you are referring to arbitrary labels rather 
> than sequential line numbers). The existing xref element can then be 
> used to refer to the specialized ph element.
>
> It does not appear that DITA has a built-in elements for this purpose.
>
> Alternatively, you could specialize "ph" to hold an entire line and, 
> possibly, bind a label to the line content as a subelement. I've used 
> this type of markup in DTDs in the past and it works pretty well. But 
> since new lines are reliable in XML you don't absolutely need to have 
> a wrapper for the lines in order to do what you need to do, at least 
> using XSLT.
>
> Cheers,
>
> Eliot
>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list