sergey-tihon / Clippit

Fresh PowerTools for OpenXml
https://sergey-tihon.github.io/Clippit/
MIT License
50 stars 19 forks source link

<EndImage /> produces "Schema Validation Error" error #78

Closed IvanDrag0 closed 2 weeks ago

IvanDrag0 commented 3 months ago

According to the image support documentation, to add an image using the DocumentAssembler, I need to use a text content control with the "Image" tag, followed by a blank picture content control, followed by a text content control with the text "".

When I try to do that, the resulting document renders the image, however, it also produces an error:

Template:

image

Result:

image

If I remove the "" content control, the image is rendered as expected without any errors. Is there a reason we need to add the "" content control? Or am I using it incorrectly?

Marcel0024 commented 1 month ago

I believe the documentation is not correct. You don't need the tag

This is working for me:

image