Uploaded image for project: 'XML-RPC'
  1. XML-RPC
  2. XMLRPC-170

XML attribute issue for auto_unique ID & auto_checksum with md5

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • unspecified
    • unspecified
    • None
    • None
    • window xp, other thing i dont know because my background is not IT.

    Description

      I want to develop XML document with following DTD file with XML format. I have also XSL file as a externatl file to represent my xml in browser.

      my problem is i want to create AUTO unique ID & checksum for each "leaf" element according to DTD.

      In my xml file there are more than 500 attachment & each leaf have unique ID & Checksum, and one more thing, after creating final XML, if i make any modification to original xml (i.e. " operation (append | delete | new | replace) #REQUIRED " ) i need to create cross reference (i.e. "..../AAA/00/index.xml#idMG1234" here previous attached file ID = MG1234 [means 'magnate-williams-1234] ) for new attached file.

      for life cycle of my xml, i want to create checksum for final index.xml file, that will be unique.

      main folder name = AAA
      sub foler to main = 00
      new version folder = 01
      next version folder = 02 and so on....

      I need to all version folder create auto under main folder (AAA).

      Please help me out for the same. I am helpless for the same. Thanks in Advanced.......

      ____________________________________________________________________________

      DTD Part is:
      -----------

      <?xml version="1.0" encoding="UTF-8"?>
      <!ELEMENT root-root (element-1-1?, element-1-2?)>
      <!ATTLIST root-root
      xmlns:root CDATA #FIXED
      xmlns:xlink CDATA #FIXED
      xml:lang CDATA #IMPLIED
      dtd-version CDATA #FIXED
      >
      <!ELEMENT leaf (title, link-text?)>
      <!ATTLIST leaf
      ID ID #REQUIRED
      application-version CDATA #IMPLIED
      version CDATA #IMPLIED
      font-library CDATA #IMPLIED
      operation (append | delete | new | replace) #REQUIRED
      modified-file CDATA #IMPLIED
      checksum CDATA #REQUIRED
      checksum-type CDATA #REQUIRED
      keywords CDATA #IMPLIED
      xmlns:xlink CDATA #FIXED
      xlink:type CDATA #FIXED
      xlink:role CDATA #IMPLIED
      xlink:href CDATA #IMPLIED
      xlink:show (embed | none | other | new | replace) #IMPLIED
      xlink:actuate (onRequest | none | other | onLoad) #IMPLIED
      xml:lang CDATA #IMPLIED
      >
      <!ELEMENT title (#PCDATA)>
      <!ATTLIST title
      ID ID #IMPLIED
      >
      <!ELEMENT link-text (#PCDATA | xref)*>
      <!ATTLIST link-text
      ID ID #IMPLIED
      >
      <!ELEMENT xref EMPTY>
      <!ATTLIST xref
      ID ID #REQUIRED
      xmlns:xlink CDATA #FIXED
      xlink:type CDATA #FIXED
      xlink:role CDATA #IMPLIED
      xlink:title CDATA #REQUIRED
      xlink:href CDATA #REQUIRED
      xlink:show (embed | none | other | new | replace) #IMPLIED
      xlink:actuate (onRequest | none | other | onLoad) #IMPLIED
      >
      <!ELEMENT node-extension (title, (leaf | node-extension)+)>
      <!ATTLIST node-extension
      ID ID #IMPLIED
      xml:lang CDATA #IMPLIED
      >
      <!ELEMENT element-1-1 (leaf*)>
      <!ATTLIST element-1-1
      ID ID #IMPLIED
      xml:lang CDATA #IMPLIED
      >
      <!ELEMENT element-1-2 (leaf*, element-1-2-1?, element-1-2-2?, ___?, ______?, element-1-2-n?)>
      <!ATTLIST element-1-2
      ID ID #IMPLIED
      xml:lang CDATA #IMPLIED
      >
      <!ELEMENT element-1-2-1 ((leaf | node-extension)*)>
      <!ATTLIST element-1-2-1
      ID ID #IMPLIED
      xml:lang CDATA #IMPLIED
      >
      .
      .
      .
      .
      <!ELEMENT element-1-2-n ((leaf | node-extension)*)>
      <!ATTLIST element-1-2-n
      ID ID #IMPLIED
      xml:lang CDATA #IMPLIED
      >

      _________________________________________________________________________________________________________
      ---------------------------------------------------------------------------------------------------------
      _________________________________________________________________________________________________________

      XML Part is :
      ------------

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ectd:ectd SYSTEM "ich-ectd-3-2.dtd">
      <root-root>
      <element-1-1>
      <leaf operation="" ID="" checksum-type="" checksum="">
      <title/>
      <link-text>
      <xref xlink:title="" xlink:href="" ID=""/>
      </link-text>
      </leaf>
      </element-1-1>
      <element-1-2>
      <leaf operation="" ID="" checksum-type="" checksum="">
      <title/>
      <link-text>
      <xref xlink:title="" xlink:href="" ID=""/>
      </link-text>
      </leaf>
      </element-1-2>
      .
      .
      .
      .
      <element-1-2-n>
      <leaf operation="" ID="" checksum-type="" checksum="">
      <title/>
      <link-text>
      <xref xlink:title="" xlink:href="" ID=""/>
      </link-text>
      </leaf>
      </element-1-2-n>

      </root-root>

      Attachments

        Issue Links

          Activity

            People

              jochen@apache.org Jochen Wiedmann
              magnate magnate Williams
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 504h
                  504h
                  Remaining:
                  Remaining Estimate - 504h
                  504h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified