On 9/5/06, Jakob Lechner <[EMAIL PROTECTED]> wrote:
Am Dienstag, den 05.09.2006, 14:58 +0200 schrieb Frank Meies:
> [...]

> But both the 'xml files smarttags' and the complex smarttag libraries
> will implement the SmartTagLib interface, is this correct? From this
> point of view there actually is no difference between these two. So we
> would have to focus on the design of the SmartTagLib interface and its
> usage in the Writer, and the xml smarttags thing is first concrete
> implementation of the interface, right?

Exactly!

So when you are talking about "xml smarttags" here, are you meaning
the sort of thing outlined in this MS document?

<http://www.microsoft.com/technet/itsolutions/cits/iwp/ibf/soldev/moibf1_sdg_10.mspx>

They have this code example:

<ContextInformation
   MetadataScopeName="Microsoft.Solutions.
SampleSolution.CRM"
   EntityName="Account"
   ViewName="AccountDetails"
   ReferenceSchemaName="Xsd.AccountId
(urn-SampleSolution-Data)"   xmlns="http://
schemas.microsoft.com/
InformationBridge/2004/ContextInformation">
   <Reference>
       <AccountId xmlns="urn-SampleSolution-Data"
Id="Contoso, Ltd." />
   </Reference>
</ContextInformation>

So the parser goes through, finds these strings, and then replaces
them with this sort of XML (which is basically embedded metadata)?

I presume in document that would get displayed like "Contoso, Ltd."

Just trying to understand.

FWIW, the "tag" structure I was referring to earlier in Open XML is I
think called "structured document tag." They have a bunch of standard
tag types: date, etc.

A citation that uses this is then:

     <w:sdt>
       <w:sdtPr>
         <w:id w:val="531556034"/>
         <w:citation/>
       </w:sdtPr>
       <w:sdtContent>
         <w:fldSimple w:instr=" CITATION Sar741 \p 1-2 \l 1033  ">
           <w:r w:rsidR="006A22D3">
             <w:rPr>
               <w:noProof/>
             </w:rPr>
             <w:t xml:space="preserve">(Sargent and Lamb, </w:t>
           </w:r>
           <w:r w:rsidR="006A22D3" w:rsidRPr="006A22D3">
             <w:rPr>
               <w:noProof/>
             </w:rPr>
             <w:t>Laser Physics (2nd Edition)</w:t>
           </w:r>
           <w:r w:rsidR="006A22D3">
             <w:rPr>
               <w:noProof/>
             </w:rPr>
             <w:t>, 1974 pp. 1-2)</w:t>
           </w:r>
         </w:fldSimple>
       </w:sdtContent>
     </w:sdt>

Bruce

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to