Issue with listnum track changes(Revisions)

Home Forums WordprocessingML Issue with listnum track changes(Revisions)

This topic contains 6 replies, has 2 voices, and was last updated by  Manu_TR 7 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #4143

    Manu_TR
    Participant

    Hello,

    I have turned on the track changes(Revisions) option in word and made some changes and found all the track changes were being tracked and found in the openxml content. but i am not seeing the deleted listnum value in openxml content and the listnum values are continued from the next paragraph. so how can I track/get the deleted listnum value in openXml.

    Thanks,
    Manu

    #4144

    Eric White
    Keymaster

    Hi Manu,

    I am not quite clear about your question – need more info.

    With regards to the deleted listnum, what exactly are you referring to? In Word itself, we see the list items, which is the displayed representation of any paragraph that has list numbering. In the open xml markup, there is the listnum attribute for every paragraph that has list numbering. You can find this listnum attribute in the paragraph itself, or in the styles part for the specific style.

    The styles part contains tracked revisions, including changes to styles where numbering has changed.

    With regards to calculating the list item for any paragraph (what the ListItemRetriever.cs module does), processing list items is pretty complicated. It took several tries before I found every numbering bug in ListItemRetriever.cs. But ListItemRetriever.cs presumes that there are no tracked revisions. I have not yet contemplated the problem of determining list items in a document that contains tracked revisions.

    Please give me more information with specifics, and I’ll be happy to help 🙂

    Cheers, Eric

    #4145

    Manu_TR
    Participant

    Thanks for the reply Eric!

    Actually we have 5 paragraphs with listnums (a) to (e). I turned on track changes and deleted listnum value (b) so that second paragraph has no listnum now. I thought I might get the value (b) in openxml since I turned on track changes but I am not able to get the deleted value (b) from openxml.

    Thanks
    Manu

    #4146

    Manu_TR
    Participant

    Eric,

    Is there any workaround for the above scenario?

    Thanks,
    Manu

    #4147

    Eric White
    Keymaster

    Hi Manu,

    The list items are never stored in the content. They are always calculated. A change in list numbering does not affect this. You can detect that the list numbering has changed, but if you actually want the deleted list items, it is pretty complicated, and not at your fingertips.

    I guess that I would need to hear more about the problem you are trying to solve. What is your user scenario?

    Best, Eric

    #4148

    Manu_TR
    Participant

    Eric,

    Like I said in my previous post I need the value of deleted list item (b), Because without that the paragraph is being printed without any list number.
    So how can I get or calculate the deleted list number?

    Thanks
    Manu

    #4149

    Manu_TR
    Participant

    Hi Eric,

    Looks like I need the deleted list number itself, Could you please help me to get it or is it even possible to get/calculate using openxml?

    Thanks,
    Manu

    • This reply was modified 7 years, 1 month ago by  Manu_TR.
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.