LINQ Template Syntax extract tags/retrieve content of each LINQ tag in template

We would like to extract all the LINQ tags/retrive the content of the tags in a LINQ template document. We are using Aspose.words JAVA for this.

@harshvardhan.scindia Unfortunately, there is no built-in method to get LINQ syntax in the document. However, you can use regular expression to get LINQ tags.

(?<=<<\s|\w*\[|\G)([^\]\[\.]+)\.(?=[^][]*\])
1 Like

Basically we want to validate the tags created by the users and check if they are correct or not is there a work around to do this ???

Will this feature be added in the future.

@harshvardhan.scindia The only way to properly validate template syntax is trying to build a report, because actual data sources is required to answer the question whether template syntax is valid.

I have linked your request to the WORDSNET-17501 feature request to add feature to validate LINQ reporting syntax. Unfortunately, the feature implementation has been postponed and it not yet scheduled for development.

A datasource is not needed to verify syntax. Like, do you have any extra closing tags?
What we need is a simple sanity check.

Verifying schema is another problem. And yes, for that I agree you’d need a datasource and to build the report to test that.

But, it would be nice when developing the report to have a way to sanity check.

@jtpaca We are developing a tool to help creating a tempate (WORDSNET-17417), and it can also be useful to create a template properly. You will be notified via the forum as soon as it is ready.