Hi there,
I wonder if anybody can help...I have an XML Schema which is applied to a Word document. This document is then saved as a WordML template and converted to XSLT. This XSLT is then used to transform XML files into Word documents.
I want to use the values of some elements multiple times.
If for example I have:
<Client>
<Title>Mr</Title>
<Name>Jackson</Name>
<BirthDate>1960-01-03</BirthDate>
</Client>
I may want to use the Title and Name to display a "Dear Mr. Jackson" line at the top of my template. I may also want to say "Thank you Mr. Jackson" at the bottom of the template.
As you can see, this means my schema needs to use the same element value twice. I can use min and maxOccurs to allow multiple occurrences, but the document then expects to have two client elements, one for the "Dear" line, and another for the "Thank you" line.
Does anybody have any suggestions? Can this be done, or will I need to output the client details multiple times when generating my XML files?
Thanks in advance guys.
I wonder if anybody can help...I have an XML Schema which is applied to a Word document. This document is then saved as a WordML template and converted to XSLT. This XSLT is then used to transform XML files into Word documents.
I want to use the values of some elements multiple times.
If for example I have:
<Client>
<Title>Mr</Title>
<Name>Jackson</Name>
<BirthDate>1960-01-03</BirthDate>
</Client>
I may want to use the Title and Name to display a "Dear Mr. Jackson" line at the top of my template. I may also want to say "Thank you Mr. Jackson" at the bottom of the template.
As you can see, this means my schema needs to use the same element value twice. I can use min and maxOccurs to allow multiple occurrences, but the document then expects to have two client elements, one for the "Dear" line, and another for the "Thank you" line.
Does anybody have any suggestions? Can this be done, or will I need to output the client details multiple times when generating my XML files?
Thanks in advance guys.