Page 1 of 1

Avoid binding alias and tag

PostPosted: Fri Apr 22, 2011 4:55 am
by verrnum
Hi,

When i use the BindingHandler :

Code: Select all
BindingHandler.applyBindings(wordMLPackage.getMainDocumentPart());


The binder replace all occurence of variables found in Document, example : ERRORS


<w:alias w:val="ERRORS"/><w:tag w:val="ERRORS"/><w:id w:val="1975506105"/><w:lock w:val="contentLocked"/><w:dataBinding w:xpath="/variables/variable[@name='ERRORS']" w:storeItemID="{D596218A-15D1-49DD-AC23-D9CE5EDEB61C}"/><w:text w:multiLine="1"/>

How to affect only the w:dataBinding and not the others (alias / tag) when ID are the same ??

Thanks for your help.

Best Regards

Re: Avoid binding alias and tag

PostPosted: Fri Apr 22, 2011 3:17 pm
by jason
Can you please provide more context as to what you are doing?

I can't see how the behaviour you describe is possible in 2.6.0.

From your other post, are you using docx4j in combination with Aspose.Words somehow? Be interesting to hear what you see as the value of the combination.

cheers .. Jason

Re: Avoid binding alias and tag

PostPosted: Fri Apr 22, 2011 7:40 pm
by verrnum
jason wrote:Can you please provide more context as to what you are doing?

I can't see how the behaviour you describe is possible in 2.6.0.

From your other post, are you using docx4j in combination with Aspose.Words somehow? Be interesting to hear what you see as the value of the combination.

cheers .. Jason

Hi jason,

You're right...the data binding works fine, the document.xml was wrong...

About your question on Aspose, if you ask me why choose Aspose PDF conversion instead of FOP provided by docx4j , i don't know which oen is the best, but just i didn't have choice, i have to use Aspose.words.

Best Regards