[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

collisions (was The subsetting has begun)


nsapplicationicon
jcowan@r... (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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.