OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   collisions (was The subsetting has begun)

[ Lists Home | Date Index | Thread Index ]

jcowan@reutershealth.com (John Cowan) writes:
>> a collision between an internal object structure and the infoset. 
>> It's not just one company or even one category of companies - it's
>> pretty common.
>
>Can you give examples?

Sure. 

Here's an abbreviated bit of a Tinderbox file:
-------------------------------------
<ceres version="1" revision="0" >
<attrib Name="anything" editable="0" visibleInEditor="1" default="" >
<attrib Name="System" parent="anything" editable="0" visibleInEditor="1"
default="" >
<attrib Name="Agent" parent="System" editable="0" visibleInEditor="1"
type="4" default="false" >
<attrib Name="AgentAction" parent="Agent" editable="1"
visibleInEditor="1" default="" >
...
<item Created="25 Feb 2003 14:47:20" WindowPlace="Rect[ 50 50 550 350 ]
" Modified="25 Feb 2003 14:47:32" ID="-1165938056" Name="test note"
OnAdd="" IsPrototype="false" Xpos="0" Ypos="0" Sort="don&apos;t sort"
SortBackward="false" SortAlso="don&apos;t sort" SortBackwardAlso="false"
Creator="system" >
<text >this is just a note, a little note</text>
<styles >
 <tstyle font="Geneva" bold="0" italic="0" underline="0" start="0"
size="10" height="13" ascent="10" color="#000000"  />
</styles>
</item>
<item Created="25 Feb 2003 14:47:48" WindowPlace="Rect[ 50 50 550 350 ]
" Modified="25 Feb 2003 14:47:55" ID="-1165938028" Name="second test
note" OnAdd="" IsPrototype="false" Color="bright red" Xpos="3.5"
Ypos="0" Sort="don&apos;t sort" SortBackward="false"
SortAlso="don&apos;t sort" SortBackwardAlso="false" Creator="system" >
<text >Yet another fine note.</text>
<styles >
 <tstyle font="Geneva" bold="0" italic="0" underline="0" start="0"
size="10" height="13" ascent="10" color="#000000"  />
</styles>
</item>
</item>
<links >
</links>
<windows >
<window ID="-1165938069" Creator="system" type="outline" bounds="Rect[
20 44 520 394 ] " x="0" y="0" scale="5" expanded="-1165938069 "  />
</windows>
</ceres>
-----------------------------------------



OS X has lots of .plist files hidden in packages:
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM
"file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeExtensions</key>
            <array>
                <string>iPhoto</string>
            </array>
            <key>CFBundleTypeName</key>
            <string>DocumentType</string>
            <key>CFBundleTypeOSTypes</key>
            <array>
                <string>????</string>
            </array>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>NSDocumentClass</key>
            <string>ArchiveDocument</string>
        </dict>
    </array>
    <key>CFBundleExecutable</key>
    <string>iPhoto</string>
    <key>CFBundleGetInfoString</key>
    <string>iPhoto 2.0, Copyright © 2002-2003 Apple Computer,
Inc.</string>
    <key>CFBundleIconFile</key>
    <string>NSApplicationIcon</string>
    <key>CFBundleIdentifier</key>
    <string>com.apple.iPhoto</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>iPhoto</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>2.0</string>
    <key>CFBundleSignature</key>
    <string>iPho</string>
    <key>CFBundleVersion</key>
    <string>3D2</string>
    <key>NSAppleScriptEnabled</key>
    <string>YES</string>
    <key>NSMainNibFile</key>
    <string>MainMenu</string>
    <key>NSPrincipalClass</key>
    <string>ExtendedApplication</string>
</dict>
</plist>
------------------------------------------


And JXTA messages:
------------------------------------------
<?xml version="1.0"?>

<!DOCTYPE Message>

<Message version="0">  <Element name="jxta:SourceAddress"
     mime_type="text/plain">   tcp://123.456.205.212  </Element>
     <Element name="stuff" encoding="base64"
mime_type="application/octet-
        stream">
AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygp

KissLS4vMDEyMzQ1Njc4asOTo7PD0+P0BBkNERUZHSElKS0xNTk9QUVJTVFVWV1hZW
        ltcXV5fYGFiY2RlZmdoaWprbG1ub3BxwMHCw8TFxsc=
     </Element>
</Message>
------------------------------------------

Intriguingly, two of these use DOCTYPE.  Except for the JXTA one,
they're more useful to me than the binary versions would be, but they
sure don't reflect great thought about markup.  "Sanitizers" - where
"san" refers to "sane use of markup" - are going to be common tools for
working with this kind of stuff.




-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS