Hi tsuji,
The intention was not to make life difficult for you or hiding the context,the reason was that I was using the very similar code for adding content controls but could not divulge the actual code therefore searched a very similar code.
However I found the solution for it:
<xsl:if...
Tsuji,
the code snippet appears after we introduce a content control in a word document and the content control is introduced for a selected text within a tag i.e <demo-text> with several demo text tags at same level but I want to pick only the text under the content control in a particular tag...
How to map the content under <w:sdtcontent> tag in an xsl:
Have a look at the content control code in xml:
<w:sdt>
<w:sdtPr>
<w:alias w:val="Last Name" />
<w:tag w:val="LastName" />
<w:dataBinding...
Hi tsuji,
Actually I just want to know is there any function etc in XSLT that recognises that a a mandatory XML tag has been left blank and throws an error.
Regards,
KG0102
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.