Loading ...
Sorry, an error occurred while loading the content.

Complementary content

Expand Messages
  • Kostas Konstantoulis
    Hi Guys, In NewsML-1, it was possible to add both alternative (equivalent) and complementary content of a NewsItem either inline or by ref. In NewsML-G2, it
    Message 1 of 5 , Oct 6, 2010
    • 0 Attachment

      Hi Guys,

       

      In NewsML-1, it was possible to add both alternative (equivalent) and  complementary content of a NewsItem either inline or by ref.

       

      In NewsML-G2, it seems that only alternative renditions of the content can be included inline (contentSet/inlineXML). Complementary content can be represented only by ref (link/@href). Please confirm that this is true.

       

      What I would like to do is to include XML data (e.g. table data, etc.) inline a text item. Do you think that this would violate G2 guidelines:

      <contentSet>

                <inlineXML contenttype="application/xhtml+xml" wordcount="3">

                         <html xmlns="http://www.w3.org/1999/xhtml">

                                   <head>

                                            <title> namelabel </title>

                                   </head>

                                   <body>

                                            <h1> headline </h1>

                                            <P>test1</P>

                                            <P>test2</P>

                                            <P>test3</P>

                                   </body>

                         </html>

                </inlineXML>

                <inlineXML contenttype="application/xml" rendition="myrnd:supplementary" attdescr="xmlattachment" attfilename="xyz.xml">

                         <AttachmentML xmlns="http://xyz.com">

                                   <Att1>Test</Att1>

                                   <Att2>Test</Att2>

                         </AttachmentML>

                </inlineXML>

      </contentSet>

       

      Kostas Konstantoulis

       

    • Michael Steidl (IPTC)
      Hi Kostas, first I copy and paste this section from the NewsML-G2 specification document: All alternative renditions SHOULD be derived from an original
      Message 2 of 5 , Oct 12, 2010
      • 0 Attachment

        Hi Kostas,

         

        first I copy and paste this section from the NewsML-G2 specification document:

         

        “All alternative renditions SHOULD be derived from an original rendition by a software processor. For

        example: images in different resolutions, vector graphics and alternative bitmap images, text in different

        formats (e.g. NITF and PDF). The rendition from which all other renditions originate is indicated by the

        original attribute of contentSet; this attribute takes as a value the local identifier (id) of the original content

        component included in the contentSet.”

         

        This clearly outlines that the different renditions of the content are derived from one original version of the content and the other renditions are derived by machine processing.

         

        Conclusions:

        -          The same content could be present as XML, HTML, Word and PDF document – but if it is text the language must be identical.

        -          If e.g. text is provided the original rendition could be the full text and other renditions could only be a part of it – e.g. only the first paragraph acting as teaser or summary. (Notes: thus must be derived by a rule: “first paragraph only” – not by human editing.)

         

        Sorry to say, your example does not fit into this design: only the first *plus* the second <inlineXML> element make the full content.

         

        A workaround I could think of is that you include the table into the “original” inlineXML and if separating it out for special reasons is required then add a second rendition “tableOnly” with the table data only.

         

        Michael

         

         

        From: newsml-g2@yahoogroups.com [mailto:newsml-g2@yahoogroups.com] On Behalf Of Kostas Konstantoulis
        Sent: Wednesday, October 06, 2010 2:12 PM
        To: newsml-g2@yahoogroups.com
        Subject: [newsml-g2] Complementary content

         




        Hi Guys,

         

        In NewsML-1, it was possible to add both alternative (equivalent) and  complementary content of a NewsItem either inline or by ref.

         

        In NewsML-G2, it seems that only alternative renditions of the content can be included inline (contentSet/inlineXML). Complementary content can be represented only by ref (link/@href). Please confirm that this is true.

         

        What I would like to do is to include XML data (e.g. table data, etc.) inline a text item. Do you think that this would violate G2 guidelines:

        <contentSet>

                  <inlineXML contenttype="application/xhtml+xml" wordcount="3">

                           <html xmlns="http://www.w3.org/1999/xhtml">

                                     <head>

                                              <title> namelabel </title>

                                     </head>

                                     <body>

                                              <h1> headline </h1>

                                              <P>test1</P>

                                              <P>test2</P>

                                              <P>test3</P>

                                     </body>

                           </html>

                  </inlineXML>

                  <inlineXML contenttype="application/xml" rendition="myrnd:supplementary" attdescr="xmlattachment" attfilename="xyz.xml">

                           <AttachmentML xmlns="http://xyz.com">

                                     <Att1>Test</Att1>

                                     <Att2>Test</Att2>

                           </AttachmentML>

                  </inlineXML>

        </contentSet>

         

        Kostas Konstantoulis

         




      • Darko Gulija
        If the content you mentioned as supplementary is different from the main content (so, if it is not another representation of the same content), you could use
        Message 3 of 5 , Oct 12, 2010
        • 0 Attachment
          If the content you mentioned as "supplementary" is different from the main content (so, if it is not another representation of the same content), you could use <link> element to point from main content to e.g. see also article.

          Hope that helps.

          Best regards, 

          Darko Gulija

          2010/10/6 Kostas Konstantoulis <k.konstantoulis@...>


          Hi Guys,

           

          In NewsML-1, it was possible to add both alternative (equivalent) and  complementary content of a NewsItem either inline or by ref.

           

          In NewsML-G2, it seems that only alternative renditions of the content can be included inline (contentSet/inlineXML). Complementary content can be represented only by ref (link/@href). Please confirm that this is true.

           

          What I would like to do is to include XML data (e.g. table data, etc.) inline a text item. Do you think that this would violate G2 guidelines:

          <contentSet>

                    <inlineXML contenttype="application/xhtml+xml" wordcount="3">

                             <html xmlns="http://www.w3.org/1999/xhtml">

                                       <head>

                                                <title> namelabel </title>

                                       </head>

                                       <body>

                                                <h1> headline </h1>

                                                <P>test1</P>

                                                <P>test2</P>

                                                <P>test3</P>

                                       </body>

                             </html>

                    </inlineXML>

                    <inlineXML contenttype="application/xml" rendition="myrnd:supplementary" attdescr="xmlattachment" attfilename="xyz.xml">

                             <AttachmentML xmlns="http://xyz.com">

                                       <Att1>Test</Att1>

                                       <Att2>Test</Att2>

                             </AttachmentML>

                    </inlineXML>

          </contentSet>

           

          Kostas Konstantoulis

           




        • Kostas Konstantoulis
          Thanks Darko, The problem is that I would rather need this content inline, so it would be available to an XSLT. The G2 framework misses this feature, while it
          Message 4 of 5 , Oct 12, 2010
          • 0 Attachment

            Thanks Darko,

             

            The problem is that I would rather need this content inline, so it would be available to an XSLT. The G2 framework misses this feature, while it was possible in NewsML-1.

            The only way to include additional inline content is to transform it into a new newsItem and include both items in a Package.

            However, this is not what I would normally do since the extra XML content would not normally live outside the scope of the parent text item.

             

            What it could be done, in future versions of NAR, is to allow refererenced XML content to be included inline, in a new element that would have the same relationship to <link> element as the <inlineXML> has to <remoteContent>. A second new element could also be added in analogy to <inlineData>. The new elements could be named somethink like <linkedInlineXML> and <linkedInlineData>.

             

            Kostas Konstantoulis


            From: newsml-g2@yahoogroups.com [mailto: newsml-g2@yahoogroups.com ] On Behalf Of Darko Gulija
            Sent: Wednesday, October 13, 2010 2:15 AM
            To: newsml-g2@yahoogroups.com
            Subject: Re: [newsml-g2] Complementary content

             

             

            If the content you mentioned as "supplementary" is different from the main content (so, if it is not another representation of the same content), you could use <link> element to point from main content to e.g. see also article.

             

            Hope that helps.

             

            Best regards, 

             

            Darko Gulija

            2010/10/6 Kostas Konstantoulis <k.konstantoulis@...>

             

            Hi Guys,

             

            In NewsML-1, it was possible to add both alternative (equivalent) and  complementary content of a NewsItem either inline or by ref.

             

            In NewsML-G2, it seems that only alternative renditions of the content can be included inline (contentSet/inlineXML). Complementary content can be represented only by ref (link/@href). Please confirm that this is true.

             

            What I would like to do is to include XML data (e.g. table data, etc.) inline a text item. Do you think that this would violate G2 guidelines:

            <contentSet>

                      <inlineXML contenttype="application/xhtml+xml" wordcount="3">

                               <html xmlns="http://www.w3.org/1999/xhtml">

                                         <head>

                                                  <title> namelabel </title>

                                         </head>

                                         <body>

                                                  <h1> headline </h1>

                                                  <P>test1</P>

                                                  <P>test2</P>

                                                  <P>test3</P>

                                         </body>

                               </html>

                      </inlineXML>

                      <inlineXML contenttype="application/xml" rendition="myrnd:supplementary" attdescr="xmlattachment" attfilename="xyz.xml">

                               <AttachmentML xmlns="http://xyz.com">

                                         <Att1>Test</Att1>

                                         <Att2>Test</Att2>

                               </AttachmentML>

                      </inlineXML>

            </contentSet>

             

            Kostas Konstantoulis

             

             

             

          • dave.compton@thomsonreuters.com
            ... refererenced XML content to be included inline, in a new element that would have the same relationship to element as the has to
            Message 5 of 5 , Oct 13, 2010
            • 0 Attachment

              > What it could be done, in future versions of NAR, is to allow refererenced XML content to be included inline, in a new element that would have the same relationship to <link> element as the <inlineXML> has to <remoteContent>. A second new element could also be added in analogy to <inlineData>. The new elements could be named somethink like <linkedInlineXML> and <linkedInlineData>.

               
              imho this is dangerous, for at least the following reasons:
              i/ it would permit any/all 'supplementary' data to be added into an item.
              ii/ any supplementary data (which, as Darko states, logically relates to a different item) would not be re-usable, as it would be within another item, and not itself referencable by any guid.
              iii/ supporting inline supplementary data would enable all the contents of all the items referenced by a package to be added inline: this is highly undesirable, as a/ the items would have no guids and would therefore not be referencable/reusable, and b/ each time any part of any item 'referenced' by the package changed, the entire (huge) package would need to be re-published ... this is exactly what the G2 design aims to avoid by the package::item separation.
               
              > The problem is that I would rather need this content inline, so it would be available to an XSLT. The G2 framework misses this feature, while it was possible in NewsML-1.
               
              I beg to differ here re the supplementary content *needing to be inline*. The requirement seems to be that the supplementary data needs to 'exist with the main item' (purely for ease of existing processing). At Reuters we have a similar requirement where a number of items (text, picture, video, audio) 'need to exist as an atomic group'. Our solution is as follows:
              i/ create the individual G2 items (with renditions, if required).
              ii/ create a G2 package referencing the items by their guids.
              iii/ wrap the package and referenced items in a G2 newsMessage ... so the package and all referenced items are in a single XML doc.
              NB: The package has a 'signal' indicating that it should be processed 'atomically' with respect to the other items in the message.
              This approach:
              i/ follows the G2 principles
              ii/ enables XSLT-type processors to parse a single doc, and
              iii/ enables database-type processors to process the package / items / relationships
               
              So for your case the following could be done:
              i/ create the individual G2 items: the 'main' item and the supplementary item(s).
              ii/ create a G2 package referencing the items by their guids.
              iii/ wrap the package and referenced items in a G2 newsMessage.
               
              There is an ongoing discussion as to whether G2 should formally support the 'grouping' of items in a newsMessage (as opposed to having the signal in the package).
               
              Hope this helps.
              ------------------------------------------------------------------------------------
              Dave Compton
              Senior Technologist.
              G2-Standards Technical Owner: NewsML-G2, EventsML-G2.
               
              Thomson Reuters
               
              Phone: +44 (0)20 7542 8341
              Mobile: +44 (0) 7990 56 8341
               
               


              From: newsml-g2@yahoogroups.com [mailto:newsml-g2@yahoogroups.com] On Behalf Of Kostas Konstantoulis
              Sent: 13 October 2010 07:11
              To: newsml-g2@yahoogroups.com
              Subject: RE: [newsml-g2] Complementary content

               

              Thanks Darko,

              The problem is that I would rather need this content inline, so it would be available to an XSLT. The G2 framework misses this feature, while it was possible in NewsML-1.

              The only way to include additional inline content is to transform it into a new newsItem and include both items in a Package.

              However, this is not what I would normally do since the extra XML content would not normally live outside the scope of the parent text item.

              What it could be done, in future versions of NAR, is to allow refererenced XML content to be included inline, in a new element that would have the same relationship to <link> element as the <inlineXML> has to <remoteContent>. A second new element could also be added in analogy to <inlineData>. The new elements could be named somethink like <linkedInlineXML> and <linkedInlineData>.

              Kostas Konstantoulis


              From: newsml-g2@yahoogroups.com [mailto: newsml-g2@yahoogroups.com ] On Behalf Of Darko Gulija
              Sent: Wednesday, October 13, 2010 2:15 AM
              To: newsml-g2@yahoogroups.com
              Subject: Re: [newsml-g2] Complementary content

               

              If the content you mentioned as "supplementary" is different from the main content (so, if it is not another representation of the same content), you could use <link> element to point from main content to e.g. see also article.

              Hope that helps.

              Best regards, 

              Darko Gulija

              2010/10/6 Kostas Konstantoulis <k.konstantoulis@...>

              Hi Guys,

              In NewsML-1, it was possible to add both alternative (equivalent) and  complementary content of a NewsItem either inline or by ref.

              In NewsML-G2, it seems that only alternative renditions of the content can be included inline (contentSet/inlineXML). Complementary content can be represented only by ref (link/@href). Please confirm that this is true.

              What I would like to do is to include XML data (e.g. table data, etc.) inline a text item. Do you think that this would violate G2 guidelines:

              <contentSet>

                        <inlineXML contenttype="application/xhtml+xml" wordcount="3">

                                 <html xmlns="http://www.w3.org/1999/xhtml">

                                           <head>

                                                    <title> namelabel </title>

                                           </head>

                                           <body>

                                                    <h1> headline </h1>

                                                    <P>test1</P>

                                                    <P>test2</P>

                                                    <P>test3</P>

                                           </body>

                                 </html>

                        </inlineXML>

                        <inlineXML contenttype="application/xml" rendition="myrnd:supplementary" attdescr="xmlattachment" attfilename="xyz.xml">

                                 <AttachmentML xmlns="http://xyz.com">

                                           <Att1>Test</Att1>

                                           <Att2>Test</Att2>

                                 </AttachmentML>

                        </inlineXML>

              </contentSet>

              Kostas Konstantoulis


              This email was sent to you by Thomson Reuters, the global news and information company.
              Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.
            Your message has been successfully submitted and would be delivered to recipients shortly.