[vwnc] Dealing with external DTD's in XML parser

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Dealing with external DTD's in XML parser

cdavidshaffer
Sorry if this is a stupid question...read the docs, they are no help.
In VW7.6 I'm parsing XHTML documents that begin with:

<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


The VW parser goes out and fetches the DTD each time I parse a
document.  That's no good so I tried using a PluggableEntityResolver as so:

    parser entityResolver: (XML.PluggableEntityResolver withBlock:
[:publicID :systemID |
        systemID = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'
            ifTrue: [parser xhtml1StrictDtd readStream]
            ifFalse: [...similar code for HTMLlat1 and other references
in above DTD...]])

where parser xhtml1StringDtd returns the aforementioned DTD as a
string.  This results in a walkback pasted below.  My ifFalse: block
never runs (the parser doesn't ask my resolver to resolve those
entities...it bugs out before that).  I am using this wrong?  or is this
a bug?  How do people parse XML docs with DTD (passe, I know) without
hitting the network?  BTW, I can't strip the DTD because I need the
entities to be resolved properly.

David

Unhandled exception: Message not understood: #resolvePath:
ByteString(Object)>>doesNotUnderstand:
Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
Seaside.XMLDOMParser(XML.XMLParser)>>prolog
optimized [] in XML.XMLParser>>scanDocument
BlockClosure>>ensure:
Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
SeasidePlatformSupport class>>parseSeasideDocumentFrom:
Seaside.STSeasideResponseParser class>>parseDocumentFrom:
Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
Seaside.STBrowserSimulator>>establishSession
Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
Seaside.STAnchorDemoTest>>testAnchor
Seaside.STAnchorDemoTest(TestCase)>>performTest
optimized [] in TestCase>>runCase
BlockClosure>>ensure:
BlockClosure>>sunitEnsure:
Seaside.STAnchorDemoTest(TestCase)>>runCase
optimized [] in Seaside.STTestCase>>debug
BlockClosure>>ensure:
Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
Set>>do:
optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
BlockClosure>>on:do:
optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
BlockClosure>>ifCurtailed:
Refactory.Browser.SUnitStatusBar>>debugTests
optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
PluggableAdaptor>>setValue:
PluggableAdaptor(ValueModel)>>value:
WinXPTriggerButtonController(TriggerButtonController)>>pressAction
TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
TriggerButtonTracker>>finishSelectionFor:
TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
RedButtonReleasedEvent>>dispatchTo:
TriggerButtonTracker(SelectionTracker)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
RedButtonReleasedEvent(Event)>>dispatch
RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
ByteString(Object)>>doesNotUnderstand:
Receiver:
    a ByteString
Arguments:
    aMessage = a Message with selector: #resolvePath: and arguments:
#('xhtml-lat1.ent')
Temporaries:
    excpt = a MessageNotUnderstood
    resumeValue = nil
Context PC = 25

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Temporaries:
    lit = 'xhtml-lat1.ent'
Context PC = 33

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Arguments:
    usage = #entity
Temporaries:
    lit2 = nil
    lit1 = '-//W3C//ENTITIES Latin 1 for XHTML//EN'
    forceSpace = BlockClosure [] in XML.XMLParser>>externalID:
    skipSpace = BlockClosure [] in XML.XMLParser>>externalID:
Context PC = 80

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Arguments:
    name = 'HTMLlat1'
Temporaries:
    val = nil
Context PC = 14

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Temporaries:
    nm = 'HTMLlat1'
    def = nil
    str = a XML.StreamWrapper
Context PC = 37

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Context PC = 14

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Context PC = 12

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Arguments:
    uriList = an Array[2]
Temporaries:
    str = a XML.StreamWrapper
    input = a XML.InputSource
Context PC = 77

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Temporaries:
    nm = {html}
    id = an Array[2]
Context PC = 90

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>prolog
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Context PC = 19

----------------------------------------------------------------------
optimized [] in XML.XMLParser>>scanDocument
Receiver:
    an UndefinedObject
Temporaries:
    .super = a Seaside.XMLDOMParser
Context PC = 9

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in XML.XMLParser>>scanDocument
    outerContext = nil
    copiedValues = a Seaside.XMLDOMParser
Arguments:
    aBlock = BlockClosure [] in XML.XMLParser>>scanDocument
Temporaries:
    result = nil
Context PC = 4

----------------------------------------------------------------------
Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
Receiver:
    a Seaside.XMLDOMParser
Instance Variables:
    sourceStack = a XML.StreamWrapper
    hereChar = $> "16r003E"
    hereCharNumBytes = 1
    lastSource = a XML.StreamWrapper
    currentSource = a XML.StreamWrapper
    dtd = a XML.DocumentType
    unresolvedIDREFs = a Set[0]
    definedIDs = a Set[0]
    latestID = nil
    sax = a XML.SAXDispatcher
    elementStack = an OrderedCollection[0]
    validating = false
    flags = 65548
    eol = Core.Character cr
    buffer = a WriteStream
    nameBuffer = a WriteStream
Context PC = 11

----------------------------------------------------------------------
SeasidePlatformSupport class>>parseSeasideDocumentFrom:
Receiver:
    a SeasidePlatformSupport class
Instance Variables:
    superclass = Object
    methodDict = a MethodDictionary[0]
    format = 20480
    subclasses = nil
    instanceVariables = nil
    organization =
    name = #SeasidePlatformSupport
    classPool = a NameSpaceOfClass[3]
    environment = nil
    defaultDispatcherName = 'seaside'
Arguments:
    aStream = an EncodedStream on a ReadWriteStream with an
UTF8StreamEncoder
Temporaries:
    parser = a Seaside.XMLDOMParser
    handler = a Seaside.STSeasideResponseParser
Context PC = 29

----------------------------------------------------------------------
Seaside.STSeasideResponseParser class>>parseDocumentFrom:
Receiver:
    a Seaside.STSeasideResponseParser class
Instance Variables:
    superclass = SAXHandler
    methodDict = a MethodDictionary[22]
    format = 16390
    subclasses = nil
    instanceVariables = an Array[4]
    organization = ('content' #characters: #endElement:
#ignorableWhitespace: #inputComponentFor: #radioComponentFor:
#startAnchor: #startDocument #startElement:attributeList:
#startElement:namespaceURI:namespace:attributeList: #startForm:
#startGenericElement:attributeList: #startInput: #startOption:
#startSelect: #startTextArea:)
('stack' #addEntity: #pop #push: #stack #top)
('accessing' #response #response:)

    name = #STSeasideResponseParser
    classPool = a NameSpaceOfClass[0]
    environment = a NameSpace[420]
Arguments:
    aStream = an EncodedStream on a ReadWriteStream with an
UTF8StreamEncoder
Context PC = 4

----------------------------------------------------------------------
Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
Receiver:
    a Seaside.STSeasideResponseParser class
Instance Variables:
    superclass = SAXHandler
    methodDict = a MethodDictionary[22]
    format = 16390
    subclasses = nil
    instanceVariables = an Array[4]
    organization = ('content' #characters: #endElement:
#ignorableWhitespace: #inputComponentFor: #radioComponentFor:
#startAnchor: #startDocument #startElement:attributeList:
#startElement:namespaceURI:namespace:attributeList: #startForm:
#startGenericElement:attributeList: #startInput: #startOption:
#startSelect: #startTextArea:)
('stack' #addEntity: #pop #push: #stack #top)
('accessing' #response #response:)

    name = #STSeasideResponseParser
    classPool = a NameSpaceOfClass[0]
    environment = a NameSpace[420]
Arguments:
    aResponse = a Seaside.HttpResponse
Context PC = 20

----------------------------------------------------------------------
Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
Receiver:
    a Seaside.STBrowserSimulator
Instance Variables:
    history = nil
    cookies = a Dictionary[0]
    baseUrl =
http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
    agentString = nil
    httpClient = nil
    agent = nil
Arguments:
    anHttpRequest = a Seaside.HttpRequest
Temporaries:
    response = a Seaside.HttpResponse
    req = a Seaside.HttpRequest
    newUrl = 'http://localhost:7777/seaside...TsUQRrtJkJVoGgIF&_k=AUSMvomO'
    doc = nil
Context PC = 32

----------------------------------------------------------------------
Seaside.STBrowserSimulator>>establishSession
Receiver:
    a Seaside.STBrowserSimulator
Instance Variables:
    history = nil
    cookies = a Dictionary[0]
    baseUrl =
http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
    agentString = nil
    httpClient = nil
    agent = nil
Temporaries:
    req = a Seaside.HttpRequest
Context PC = 12

----------------------------------------------------------------------
Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
Receiver:
    a Seaside.STWebAppTester
Instance Variables:
    browser = a Seaside.STBrowserSimulator
    debugging = true
    rootUrl = 'http://localhost:7777/seaside...ests/STAnchorDemo_testAnchor'
    app = a Seaside.STTesterApplication named: 'STAnchorDemo_testAnchor'
    pseudomain = a Seaside.STTestingPseudomain
    handler = a Seaside.STTestErrorHandler
    runnerTask = a Seaside.STRunnerTask
    sessionPostCreationBlock = nil
Context PC = 6

----------------------------------------------------------------------
Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
Receiver:
    a Seaside.STAnchorDemoTest
Instance Variables:
    testSelector = #testAnchor
    tester = a Seaside.STWebAppTester
    debugging = true
Context PC = 3

----------------------------------------------------------------------
Seaside.STAnchorDemoTest>>testAnchor
Receiver:
    a Seaside.STAnchorDemoTest
Instance Variables:
    testSelector = #testAnchor
    tester = a Seaside.STWebAppTester
    debugging = true
Context PC = 8

----------------------------------------------------------------------
Seaside.STAnchorDemoTest(TestCase)>>performTest
Receiver:
    a Seaside.STAnchorDemoTest
Instance Variables:
    testSelector = #testAnchor
    tester = a Seaside.STWebAppTester
    debugging = true
Context PC = 6

----------------------------------------------------------------------
optimized [] in TestCase>>runCase
Receiver:
    an UndefinedObject
Temporaries:
    .super = Seaside.STAnchorDemoTest>>#testAnchor
Context PC = 9

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in TestCase>>runCase
    outerContext = nil
    copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
Arguments:
    aBlock = BlockClosure [] in TestCase>>runCase
Temporaries:
    result = nil
Context PC = 4

----------------------------------------------------------------------
BlockClosure>>sunitEnsure:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in TestCase>>runCase
    outerContext = nil
    copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
Arguments:
    aBlock = BlockClosure [] in TestCase>>runCase
Context PC = 5

----------------------------------------------------------------------
Seaside.STAnchorDemoTest(TestCase)>>runCase
Receiver:
    a Seaside.STAnchorDemoTest
Instance Variables:
    testSelector = #testAnchor
    tester = a Seaside.STWebAppTester
    debugging = true
Context PC = 11

----------------------------------------------------------------------
optimized [] in Seaside.STTestCase>>debug
Receiver:
    an UndefinedObject
Temporaries:
    .super = Seaside.STAnchorDemoTest>>#testAnchor
Context PC = 13

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in Seaside.STTestCase>>debug
    outerContext = nil
    copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
Arguments:
    aBlock = BlockClosure [] in Seaside.STTestCase>>debug
Temporaries:
    result = nil
Context PC = 4

----------------------------------------------------------------------
Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
Receiver:
    a Seaside.STAnchorDemoTest
Instance Variables:
    testSelector = #testAnchor
    tester = nil
    debugging = nil
Context PC = 18

----------------------------------------------------------------------
optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
Receiver:
    an UndefinedObject
Arguments:
    each = Seaside.STAnchorDemoTest>>#testAnchor
Temporaries:
    .super = a Refactory.Browser.SUnitStatusBar
Context PC = 5

----------------------------------------------------------------------
Set>>do:
Receiver:
    a Set
Instance Variables:
    tally = 1
Arguments:
    aBlock = BlockClosure [] in [] in [] in
Refactory.Browser.SUnitStatusBar>>debugTests
Temporaries:
    index = 2
    elem = Seaside.STAnchorDemoTest>>#testAnchor
Context PC = 31

----------------------------------------------------------------------
optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
Receiver:
    an UndefinedObject
Temporaries:
    .super = a Refactory.Browser.SUnitStatusBar
Context PC = 12

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in [] in
Refactory.Browser.SUnitStatusBar>>debugTests
    outerContext = nil
    copiedValues = a Refactory.Browser.SUnitStatusBar
Arguments:
    anExceptionSelector = an ExceptionSet[2]
    handlerBlock = BlockClosure [] in [] in
Refactory.Browser.SUnitStatusBar>>debugTests
Context PC = 18

----------------------------------------------------------------------
optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
Receiver:
    an UndefinedObject
Temporaries:
    .super = a Refactory.Browser.SUnitStatusBar
    failed = true
Context PC = 18

----------------------------------------------------------------------
BlockClosure>>ifCurtailed:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in
Refactory.Browser.SUnitStatusBar>>debugTests
    outerContext = nil
    copiedValues = an Array[2]
Arguments:
    terminationBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>debugTests
Context PC = 4

----------------------------------------------------------------------
Refactory.Browser.SUnitStatusBar>>debugTests
Receiver:
    a Refactory.Browser.SUnitStatusBar
Instance Variables:
    container = a StatusPanel
    eventHandlers = nil
    properties = a Dictionary[4]
    components = an OrderedCollection[6]
    preferredBounds = 0@0 corner: 0@0
    layoutAlgorithm = BlockClosure [] in Panel>>partFramingBlock:
    testCount = 1
    defects = nil
    codeModel = STAnchorDemoTest
Temporaries:
    failed = true
Context PC = 41

----------------------------------------------------------------------
optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
Receiver:
    an UndefinedObject
Arguments:
    m = a ValueHolder on: false
    v = true
Temporaries:
    .super = a Refactory.Browser.SUnitStatusBar
    .anActionSelector = #debugTests
Context PC = 7

----------------------------------------------------------------------
PluggableAdaptor>>setValue:
Receiver:
    a PluggableAdaptor
Instance Variables:
    dependents = a WinXPActionButtonView
    model = a ValueHolder on: false
    getBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
    putBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
    updateBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
Arguments:
    newValue = true
Context PC = 6

----------------------------------------------------------------------
PluggableAdaptor(ValueModel)>>value:
Receiver:
    a PluggableAdaptor
Instance Variables:
    dependents = a WinXPActionButtonView
    model = a ValueHolder on: false
    getBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
    putBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
    updateBlock = BlockClosure [] in
Refactory.Browser.SUnitStatusBar>>actionDriver:
Arguments:
    newValue = true
Context PC = 5

----------------------------------------------------------------------
WinXPTriggerButtonController(TriggerButtonController)>>pressAction
Receiver:
    a WinXPTriggerButtonController
Instance Variables:
    model = a PluggableAdaptor
    view = a WinXPActionButtonView
    sensor = a TranslatingSensor
    keyboardProcessor = nil
    keyboardHook = nil
    dispatcher = nil
Context PC = 17

----------------------------------------------------------------------
TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
Receiver:
    a TriggerButtonTracker
Instance Variables:
    controller = a WinXPTriggerButtonController
    inside = true
Arguments:
    aPoint = 53@10
Context PC = 8

----------------------------------------------------------------------
TriggerButtonTracker>>finishSelectionFor:
Receiver:
    a TriggerButtonTracker
Instance Variables:
    controller = a WinXPTriggerButtonController
    inside = true
Arguments:
    aPoint = 53@10
Context PC = 11

----------------------------------------------------------------------
TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
Receiver:
    a TriggerButtonTracker
Instance Variables:
    controller = a WinXPTriggerButtonController
    inside = true
Arguments:
    aMouseButtonEvent = a RedButtonReleasedEvent
Context PC = 13

----------------------------------------------------------------------
RedButtonReleasedEvent>>dispatchTo:
Receiver:
    a RedButtonReleasedEvent
Instance Variables:
    time = 1215893189
    initiator = an EventDispatcher
    window = an ApplicationWindow 44040235
    state = 0
    x = 1030
    y = 647
    gx = 1069
    gy = 869
    buttonNumber = 1
Arguments:
    anObject = a TriggerButtonTracker
Context PC = 4

----------------------------------------------------------------------
TriggerButtonTracker(SelectionTracker)>>handleEvent:
Receiver:
    a TriggerButtonTracker
Instance Variables:
    controller = a WinXPTriggerButtonController
    inside = true
Arguments:
    anEvent = a RedButtonReleasedEvent
Context PC = 4

----------------------------------------------------------------------
EventDispatcher>>dispatch:to:
Receiver:
    an EventDispatcher
Instance Variables:
    windowController = an ApplicationStandardSystemController
    currentMouseConsumer = nil
    grabbingMouse = false
    keyboardProcessor = a KeyboardProcessor
    lastControlObject = a
Refactory.CodeHighlighter.HighlightingTextEditorController
    trapList = nil
    state = nil
    repairDamageWhenDebugging = true
    flushQueueAfterError = true
    distributeEventsWhenDebugging = true
    dragDropInProgress = false
    dragDropTracker = nil
    dispatchUnknownEvents = false
Arguments:
    event = a RedButtonReleasedEvent
    object = a TriggerButtonTracker
Temporaries:
    tmp = nil
Context PC = 10

----------------------------------------------------------------------
EventDispatcher>>dispatchEvent:
Receiver:
    an EventDispatcher
Instance Variables:
    windowController = an ApplicationStandardSystemController
    currentMouseConsumer = nil
    grabbingMouse = false
    keyboardProcessor = a KeyboardProcessor
    lastControlObject = a
Refactory.CodeHighlighter.HighlightingTextEditorController
    trapList = nil
    state = nil
    repairDamageWhenDebugging = true
    flushQueueAfterError = true
    distributeEventsWhenDebugging = true
    dragDropInProgress = false
    dragDropTracker = nil
    dispatchUnknownEvents = false
Arguments:
    event = a RedButtonReleasedEvent
Temporaries:
    objectWantingControl = nil
    targetKeyboardProcessor = nil
Context PC = 60

----------------------------------------------------------------------
RedButtonReleasedEvent(Event)>>dispatch
Receiver:
    a RedButtonReleasedEvent
Instance Variables:
    time = 1215893189
    initiator = an EventDispatcher
    window = an ApplicationWindow 44040235
    state = 0
    x = 1030
    y = 647
    gx = 1069
    gy = 869
    buttonNumber = 1
Context PC = 16

----------------------------------------------------------------------
RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
Receiver:
    a RedButtonReleasedEvent
Instance Variables:
    time = 1215893189
    initiator = an EventDispatcher
    window = an ApplicationWindow 44040235
    state = 0
    x = 1030
    y = 647
    gx = 1069
    gy = 869
    buttonNumber = 1
Arguments:
    aWinMgr = a WindowManager
Context PC = 4

----------------------------------------------------------------------
optimized [] in WindowManager>>safelyDispatchForWindowManager:
Receiver:
    an UndefinedObject
Temporaries:
    .event = a RedButtonReleasedEvent
    .super = a WindowManager
Context PC = 6

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in
WindowManager>>safelyDispatchForWindowManager:
    outerContext = nil
    copiedValues = an Array[2]
Arguments:
    anExceptionSelector = BadControllerError
    handlerBlock = BlockClosure [] in
WindowManager>>safelyDispatchForWindowManager:
Context PC = 18

----------------------------------------------------------------------
WindowManager>>safelyDispatchForWindowManager:
Receiver:
    a WindowManager
Instance Variables:
    windows = an OrderedCollection[1]
    activeController = nil
    interruptLock = false
    outstandingMetaOrDamage = false
    openInProgress = false
    eventQueue = an EventQueue
    baseProcess = a Process in Semaphore>>wait
    dontFilterEvents = false
Arguments:
    event = a RedButtonReleasedEvent
Context PC = 13

----------------------------------------------------------------------
WindowManager>>processNextEvent
Receiver:
    a WindowManager
Instance Variables:
    windows = an OrderedCollection[1]
    activeController = nil
    interruptLock = false
    outstandingMetaOrDamage = false
    openInProgress = false
    eventQueue = an EventQueue
    baseProcess = a Process in Semaphore>>wait
    dontFilterEvents = false
Temporaries:
    event = a RedButtonReleasedEvent
Context PC = 9

----------------------------------------------------------------------
optimized [] in [] in WindowManager>>newProcess
Receiver:
    an UndefinedObject
Temporaries:
    .super = a WindowManager
Context PC = 13

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in [] in WindowManager>>newProcess
    outerContext = nil
    copiedValues = a WindowManager
Arguments:
    anExceptionSelector = TerminateException
    handlerBlock = BlockClosure [] in [] in WindowManager>>newProcess
Context PC = 18

----------------------------------------------------------------------
optimized [] in WindowManager>>newProcess
Receiver:
    an UndefinedObject
Temporaries:
    .super = a WindowManager
Context PC = 15

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
    a BlockClosure
Instance Variables:
    method = CompiledBlock [] in WindowManager>>newProcess
    outerContext = nil
    copiedValues = a WindowManager
Arguments:
    anExceptionSelector = TerminateException
    handlerBlock = BlockClosure [] in [] in Process
class>>forBlock:priority:
Context PC = 18

----------------------------------------------------------------------
optimized [] in Process class>>forBlock:priority:
Receiver:
    an UndefinedObject
Temporaries:
    .aBlock = BlockClosure [] in WindowManager>>newProcess
Context PC = 9

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Dealing with external DTD's in XML parser

Gregory Bourassa-3
David,

I looked at the way the VW XML implementation handles DTDs some time
ago.   Oddly,  they wind up in the parser instance, not in the XML
document model created when you parse a stream.   Maybe you could make
some tweaks to how you instantiate the parser and what it does after
getting that first DTD.   I didn't go that far with it.

The low-tech way of getting external entity resolution from the DTD,
while avoiding the internet, is to copy the DTD onto your drive and
modify the public/system identifier in the DOCTYPE in your docs.

Regards.

Gregory Bourassa
===========================

C. David Shaffer wrote:

> Sorry if this is a stupid question...read the docs, they are no help.
> In VW7.6 I'm parsing XHTML documents that begin with:
>
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> The VW parser goes out and fetches the DTD each time I parse a
> document.  That's no good so I tried using a PluggableEntityResolver as so:
>
>     parser entityResolver: (XML.PluggableEntityResolver withBlock:
> [:publicID :systemID |
>         systemID = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'
>             ifTrue: [parser xhtml1StrictDtd readStream]
>             ifFalse: [...similar code for HTMLlat1 and other references
> in above DTD...]])
>
> where parser xhtml1StringDtd returns the aforementioned DTD as a
> string.  This results in a walkback pasted below.  My ifFalse: block
> never runs (the parser doesn't ask my resolver to resolve those
> entities...it bugs out before that).  I am using this wrong?  or is this
> a bug?  How do people parse XML docs with DTD (passe, I know) without
> hitting the network?  BTW, I can't strip the DTD because I need the
> entities to be resolved properly.
>
> David
>
> Unhandled exception: Message not understood: #resolvePath:
> ByteString(Object)>>doesNotUnderstand:
> Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
> Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
> Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
> Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
> Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>prolog
> optimized [] in XML.XMLParser>>scanDocument
> BlockClosure>>ensure:
> Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
> SeasidePlatformSupport class>>parseSeasideDocumentFrom:
> Seaside.STSeasideResponseParser class>>parseDocumentFrom:
> Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
> Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
> Seaside.STBrowserSimulator>>establishSession
> Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
> Seaside.STAnchorDemoTest>>testAnchor
> Seaside.STAnchorDemoTest(TestCase)>>performTest
> optimized [] in TestCase>>runCase
> BlockClosure>>ensure:
> BlockClosure>>sunitEnsure:
> Seaside.STAnchorDemoTest(TestCase)>>runCase
> optimized [] in Seaside.STTestCase>>debug
> BlockClosure>>ensure:
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
> optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Set>>do:
> optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> BlockClosure>>on:do:
> optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
> BlockClosure>>ifCurtailed:
> Refactory.Browser.SUnitStatusBar>>debugTests
> optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
> PluggableAdaptor>>setValue:
> PluggableAdaptor(ValueModel)>>value:
> WinXPTriggerButtonController(TriggerButtonController)>>pressAction
> TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
> TriggerButtonTracker>>finishSelectionFor:
> TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
> RedButtonReleasedEvent>>dispatchTo:
> TriggerButtonTracker(SelectionTracker)>>handleEvent:
> EventDispatcher>>dispatch:to:
> EventDispatcher>>dispatchEvent:
> RedButtonReleasedEvent(Event)>>dispatch
> RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
> optimized [] in WindowManager>>safelyDispatchForWindowManager:
> BlockClosure>>on:do:
> WindowManager>>safelyDispatchForWindowManager:
> WindowManager>>processNextEvent
> optimized [] in [] in WindowManager>>newProcess
> BlockClosure>>on:do:
> optimized [] in WindowManager>>newProcess
> BlockClosure>>on:do:
> optimized [] in Process class>>forBlock:priority:
>
> ----------------------------------------------------------------------
> ByteString(Object)>>doesNotUnderstand:
> Receiver:
>     a ByteString
> Arguments:
>     aMessage = a Message with selector: #resolvePath: and arguments:
> #('xhtml-lat1.ent')
> Temporaries:
>     excpt = a MessageNotUnderstood
>     resumeValue = nil
> Context PC = 25
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     lit = 'xhtml-lat1.ent'
> Context PC = 33
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     usage = #entity
> Temporaries:
>     lit2 = nil
>     lit1 = '-//W3C//ENTITIES Latin 1 for XHTML//EN'
>     forceSpace = BlockClosure [] in XML.XMLParser>>externalID:
>     skipSpace = BlockClosure [] in XML.XMLParser>>externalID:
> Context PC = 80
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     name = 'HTMLlat1'
> Temporaries:
>     val = nil
> Context PC = 14
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     nm = 'HTMLlat1'
>     def = nil
>     str = a XML.StreamWrapper
> Context PC = 37
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 14
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 12
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     uriList = an Array[2]
> Temporaries:
>     str = a XML.StreamWrapper
>     input = a XML.InputSource
> Context PC = 77
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     nm = {html}
>     id = an Array[2]
> Context PC = 90
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>prolog
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 19
>
> ----------------------------------------------------------------------
> optimized [] in XML.XMLParser>>scanDocument
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Seaside.XMLDOMParser
> Context PC = 9
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in XML.XMLParser>>scanDocument
>     outerContext = nil
>     copiedValues = a Seaside.XMLDOMParser
> Arguments:
>     aBlock = BlockClosure [] in XML.XMLParser>>scanDocument
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 11
>
> ----------------------------------------------------------------------
> SeasidePlatformSupport class>>parseSeasideDocumentFrom:
> Receiver:
>     a SeasidePlatformSupport class
> Instance Variables:
>     superclass = Object
>     methodDict = a MethodDictionary[0]
>     format = 20480
>     subclasses = nil
>     instanceVariables = nil
>     organization =
>     name = #SeasidePlatformSupport
>     classPool = a NameSpaceOfClass[3]
>     environment = nil
>     defaultDispatcherName = 'seaside'
> Arguments:
>     aStream = an EncodedStream on a ReadWriteStream with an
> UTF8StreamEncoder
> Temporaries:
>     parser = a Seaside.XMLDOMParser
>     handler = a Seaside.STSeasideResponseParser
> Context PC = 29
>
> ----------------------------------------------------------------------
> Seaside.STSeasideResponseParser class>>parseDocumentFrom:
> Receiver:
>     a Seaside.STSeasideResponseParser class
> Instance Variables:
>     superclass = SAXHandler
>     methodDict = a MethodDictionary[22]
>     format = 16390
>     subclasses = nil
>     instanceVariables = an Array[4]
>     organization = ('content' #characters: #endElement:
> #ignorableWhitespace: #inputComponentFor: #radioComponentFor:
> #startAnchor: #startDocument #startElement:attributeList:
> #startElement:namespaceURI:namespace:attributeList: #startForm:
> #startGenericElement:attributeList: #startInput: #startOption:
> #startSelect: #startTextArea:)
> ('stack' #addEntity: #pop #push: #stack #top)
> ('accessing' #response #response:)
>
>     name = #STSeasideResponseParser
>     classPool = a NameSpaceOfClass[0]
>     environment = a NameSpace[420]
> Arguments:
>     aStream = an EncodedStream on a ReadWriteStream with an
> UTF8StreamEncoder
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
> Receiver:
>     a Seaside.STSeasideResponseParser class
> Instance Variables:
>     superclass = SAXHandler
>     methodDict = a MethodDictionary[22]
>     format = 16390
>     subclasses = nil
>     instanceVariables = an Array[4]
>     organization = ('content' #characters: #endElement:
> #ignorableWhitespace: #inputComponentFor: #radioComponentFor:
> #startAnchor: #startDocument #startElement:attributeList:
> #startElement:namespaceURI:namespace:attributeList: #startForm:
> #startGenericElement:attributeList: #startInput: #startOption:
> #startSelect: #startTextArea:)
> ('stack' #addEntity: #pop #push: #stack #top)
> ('accessing' #response #response:)
>
>     name = #STSeasideResponseParser
>     classPool = a NameSpaceOfClass[0]
>     environment = a NameSpace[420]
> Arguments:
>     aResponse = a Seaside.HttpResponse
> Context PC = 20
>
> ----------------------------------------------------------------------
> Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
> Receiver:
>     a Seaside.STBrowserSimulator
> Instance Variables:
>     history = nil
>     cookies = a Dictionary[0]
>     baseUrl =
> http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
>     agentString = nil
>     httpClient = nil
>     agent = nil
> Arguments:
>     anHttpRequest = a Seaside.HttpRequest
> Temporaries:
>     response = a Seaside.HttpResponse
>     req = a Seaside.HttpRequest
>     newUrl = 'http://localhost:7777/seaside...TsUQRrtJkJVoGgIF&_k=AUSMvomO'
>     doc = nil
> Context PC = 32
>
> ----------------------------------------------------------------------
> Seaside.STBrowserSimulator>>establishSession
> Receiver:
>     a Seaside.STBrowserSimulator
> Instance Variables:
>     history = nil
>     cookies = a Dictionary[0]
>     baseUrl =
> http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
>     agentString = nil
>     httpClient = nil
>     agent = nil
> Temporaries:
>     req = a Seaside.HttpRequest
> Context PC = 12
>
> ----------------------------------------------------------------------
> Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
> Receiver:
>     a Seaside.STWebAppTester
> Instance Variables:
>     browser = a Seaside.STBrowserSimulator
>     debugging = true
>     rootUrl = 'http://localhost:7777/seaside...ests/STAnchorDemo_testAnchor'
>     app = a Seaside.STTesterApplication named: 'STAnchorDemo_testAnchor'
>     pseudomain = a Seaside.STTestingPseudomain
>     handler = a Seaside.STTestErrorHandler
>     runnerTask = a Seaside.STRunnerTask
>     sessionPostCreationBlock = nil
> Context PC = 6
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 3
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest>>testAnchor
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 8
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(TestCase)>>performTest
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 6
>
> ----------------------------------------------------------------------
> optimized [] in TestCase>>runCase
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 9
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in TestCase>>runCase
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in TestCase>>runCase
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> BlockClosure>>sunitEnsure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in TestCase>>runCase
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in TestCase>>runCase
> Context PC = 5
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(TestCase)>>runCase
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 11
>
> ----------------------------------------------------------------------
> optimized [] in Seaside.STTestCase>>debug
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 13
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in Seaside.STTestCase>>debug
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in Seaside.STTestCase>>debug
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = nil
>     debugging = nil
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Arguments:
>     each = Seaside.STAnchorDemoTest>>#testAnchor
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
> Context PC = 5
>
> ----------------------------------------------------------------------
> Set>>do:
> Receiver:
>     a Set
> Instance Variables:
>     tally = 1
> Arguments:
>     aBlock = BlockClosure [] in [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Temporaries:
>     index = 2
>     elem = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 31
>
> ----------------------------------------------------------------------
> optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
> Context PC = 12
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
>     outerContext = nil
>     copiedValues = a Refactory.Browser.SUnitStatusBar
> Arguments:
>     anExceptionSelector = an ExceptionSet[2]
>     handlerBlock = BlockClosure [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
>     failed = true
> Context PC = 18
>
> ----------------------------------------------------------------------
> BlockClosure>>ifCurtailed:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
>     outerContext = nil
>     copiedValues = an Array[2]
> Arguments:
>     terminationBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Context PC = 4
>
> ----------------------------------------------------------------------
> Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     a Refactory.Browser.SUnitStatusBar
> Instance Variables:
>     container = a StatusPanel
>     eventHandlers = nil
>     properties = a Dictionary[4]
>     components = an OrderedCollection[6]
>     preferredBounds = 0@0 corner: 0@0
>     layoutAlgorithm = BlockClosure [] in Panel>>partFramingBlock:
>     testCount = 1
>     defects = nil
>     codeModel = STAnchorDemoTest
> Temporaries:
>     failed = true
> Context PC = 41
>
> ----------------------------------------------------------------------
> optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
> Receiver:
>     an UndefinedObject
> Arguments:
>     m = a ValueHolder on: false
>     v = true
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
>     .anActionSelector = #debugTests
> Context PC = 7
>
> ----------------------------------------------------------------------
> PluggableAdaptor>>setValue:
> Receiver:
>     a PluggableAdaptor
> Instance Variables:
>     dependents = a WinXPActionButtonView
>     model = a ValueHolder on: false
>     getBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     putBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     updateBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
> Arguments:
>     newValue = true
> Context PC = 6
>
> ----------------------------------------------------------------------
> PluggableAdaptor(ValueModel)>>value:
> Receiver:
>     a PluggableAdaptor
> Instance Variables:
>     dependents = a WinXPActionButtonView
>     model = a ValueHolder on: false
>     getBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     putBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     updateBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
> Arguments:
>     newValue = true
> Context PC = 5
>
> ----------------------------------------------------------------------
> WinXPTriggerButtonController(TriggerButtonController)>>pressAction
> Receiver:
>     a WinXPTriggerButtonController
> Instance Variables:
>     model = a PluggableAdaptor
>     view = a WinXPActionButtonView
>     sensor = a TranslatingSensor
>     keyboardProcessor = nil
>     keyboardHook = nil
>     dispatcher = nil
> Context PC = 17
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aPoint = 53@10
> Context PC = 8
>
> ----------------------------------------------------------------------
> TriggerButtonTracker>>finishSelectionFor:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aPoint = 53@10
> Context PC = 11
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aMouseButtonEvent = a RedButtonReleasedEvent
> Context PC = 13
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent>>dispatchTo:
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Arguments:
>     anObject = a TriggerButtonTracker
> Context PC = 4
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(SelectionTracker)>>handleEvent:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     anEvent = a RedButtonReleasedEvent
> Context PC = 4
>
> ----------------------------------------------------------------------
> EventDispatcher>>dispatch:to:
> Receiver:
>     an EventDispatcher
> Instance Variables:
>     windowController = an ApplicationStandardSystemController
>     currentMouseConsumer = nil
>     grabbingMouse = false
>     keyboardProcessor = a KeyboardProcessor
>     lastControlObject = a
> Refactory.CodeHighlighter.HighlightingTextEditorController
>     trapList = nil
>     state = nil
>     repairDamageWhenDebugging = true
>     flushQueueAfterError = true
>     distributeEventsWhenDebugging = true
>     dragDropInProgress = false
>     dragDropTracker = nil
>     dispatchUnknownEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
>     object = a TriggerButtonTracker
> Temporaries:
>     tmp = nil
> Context PC = 10
>
> ----------------------------------------------------------------------
> EventDispatcher>>dispatchEvent:
> Receiver:
>     an EventDispatcher
> Instance Variables:
>     windowController = an ApplicationStandardSystemController
>     currentMouseConsumer = nil
>     grabbingMouse = false
>     keyboardProcessor = a KeyboardProcessor
>     lastControlObject = a
> Refactory.CodeHighlighter.HighlightingTextEditorController
>     trapList = nil
>     state = nil
>     repairDamageWhenDebugging = true
>     flushQueueAfterError = true
>     distributeEventsWhenDebugging = true
>     dragDropInProgress = false
>     dragDropTracker = nil
>     dispatchUnknownEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
> Temporaries:
>     objectWantingControl = nil
>     targetKeyboardProcessor = nil
> Context PC = 60
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent(Event)>>dispatch
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Context PC = 16
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Arguments:
>     aWinMgr = a WindowManager
> Context PC = 4
>
> ----------------------------------------------------------------------
> optimized [] in WindowManager>>safelyDispatchForWindowManager:
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .event = a RedButtonReleasedEvent
>     .super = a WindowManager
> Context PC = 6
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in
> WindowManager>>safelyDispatchForWindowManager:
>     outerContext = nil
>     copiedValues = an Array[2]
> Arguments:
>     anExceptionSelector = BadControllerError
>     handlerBlock = BlockClosure [] in
> WindowManager>>safelyDispatchForWindowManager:
> Context PC = 18
>
> ----------------------------------------------------------------------
> WindowManager>>safelyDispatchForWindowManager:
> Receiver:
>     a WindowManager
> Instance Variables:
>     windows = an OrderedCollection[1]
>     activeController = nil
>     interruptLock = false
>     outstandingMetaOrDamage = false
>     openInProgress = false
>     eventQueue = an EventQueue
>     baseProcess = a Process in Semaphore>>wait
>     dontFilterEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
> Context PC = 13
>
> ----------------------------------------------------------------------
> WindowManager>>processNextEvent
> Receiver:
>     a WindowManager
> Instance Variables:
>     windows = an OrderedCollection[1]
>     activeController = nil
>     interruptLock = false
>     outstandingMetaOrDamage = false
>     openInProgress = false
>     eventQueue = an EventQueue
>     baseProcess = a Process in Semaphore>>wait
>     dontFilterEvents = false
> Temporaries:
>     event = a RedButtonReleasedEvent
> Context PC = 9
>
> ----------------------------------------------------------------------
> optimized [] in [] in WindowManager>>newProcess
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a WindowManager
> Context PC = 13
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in [] in WindowManager>>newProcess
>     outerContext = nil
>     copiedValues = a WindowManager
> Arguments:
>     anExceptionSelector = TerminateException
>     handlerBlock = BlockClosure [] in [] in WindowManager>>newProcess
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in WindowManager>>newProcess
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a WindowManager
> Context PC = 15
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in WindowManager>>newProcess
>     outerContext = nil
>     copiedValues = a WindowManager
> Arguments:
>     anExceptionSelector = TerminateException
>     handlerBlock = BlockClosure [] in [] in Process
> class>>forBlock:priority:
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in Process class>>forBlock:priority:
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .aBlock = BlockClosure [] in WindowManager>>newProcess
> Context PC = 9
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>  
<p><b><span
style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Key Technology, Inc. Disclaimer Notice</span></b><span
style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'> - The
information and attachment(s) contained in this communication are intended for
the addressee only, and may be confidential and/or legally privileged. If you
have received this communication in error, please contact the sender
immediately, and delete this communication from any computer or network system.
Any interception, review, printing, copying, re-transmission, dissemination, or
other use of, or taking of any action upon this information by persons or
entities other than the intended recipient is strictly prohibited by law and
may subject them to criminal or civil liability. Key Technology,&nbsp; Inc. is
not liable for the improper and/or incomplete transmission of the information
contained in this communication or for any delay in its receipt.</span>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Dealing with external DTD's in XML parser

Gregory Bourassa-3
In reply to this post by cdavidshaffer
David,

I looked a little closer at your example...maybe, instead of changing
the docs,  you could modify the parser's value for systemID to look for
the DTD on your drive.   That would be instead of trying to get the
parser to parse a string version of the DTD only.

There might still be the timing issue...does it respect the resolver you
gave it before parsing the whole doc?

Gregory Bourassa



C. David Shaffer wrote:

> Sorry if this is a stupid question...read the docs, they are no help.
> In VW7.6 I'm parsing XHTML documents that begin with:
>
> <!DOCTYPE html
>      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
>
> The VW parser goes out and fetches the DTD each time I parse a
> document.  That's no good so I tried using a PluggableEntityResolver as so:
>
>     parser entityResolver: (XML.PluggableEntityResolver withBlock:
> [:publicID :systemID |
>         systemID = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'
>             ifTrue: [parser xhtml1StrictDtd readStream]
>             ifFalse: [...similar code for HTMLlat1 and other references
> in above DTD...]])
>
> where parser xhtml1StringDtd returns the aforementioned DTD as a
> string.  This results in a walkback pasted below.  My ifFalse: block
> never runs (the parser doesn't ask my resolver to resolve those
> entities...it bugs out before that).  I am using this wrong?  or is this
> a bug?  How do people parse XML docs with DTD (passe, I know) without
> hitting the network?  BTW, I can't strip the DTD because I need the
> entities to be resolved properly.
>
> David
>
> Unhandled exception: Message not understood: #resolvePath:
> ByteString(Object)>>doesNotUnderstand:
> Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
> Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
> Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
> Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
> Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
> Seaside.XMLDOMParser(XML.XMLParser)>>prolog
> optimized [] in XML.XMLParser>>scanDocument
> BlockClosure>>ensure:
> Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
> SeasidePlatformSupport class>>parseSeasideDocumentFrom:
> Seaside.STSeasideResponseParser class>>parseDocumentFrom:
> Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
> Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
> Seaside.STBrowserSimulator>>establishSession
> Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
> Seaside.STAnchorDemoTest>>testAnchor
> Seaside.STAnchorDemoTest(TestCase)>>performTest
> optimized [] in TestCase>>runCase
> BlockClosure>>ensure:
> BlockClosure>>sunitEnsure:
> Seaside.STAnchorDemoTest(TestCase)>>runCase
> optimized [] in Seaside.STTestCase>>debug
> BlockClosure>>ensure:
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
> optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Set>>do:
> optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> BlockClosure>>on:do:
> optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
> BlockClosure>>ifCurtailed:
> Refactory.Browser.SUnitStatusBar>>debugTests
> optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
> PluggableAdaptor>>setValue:
> PluggableAdaptor(ValueModel)>>value:
> WinXPTriggerButtonController(TriggerButtonController)>>pressAction
> TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
> TriggerButtonTracker>>finishSelectionFor:
> TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
> RedButtonReleasedEvent>>dispatchTo:
> TriggerButtonTracker(SelectionTracker)>>handleEvent:
> EventDispatcher>>dispatch:to:
> EventDispatcher>>dispatchEvent:
> RedButtonReleasedEvent(Event)>>dispatch
> RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
> optimized [] in WindowManager>>safelyDispatchForWindowManager:
> BlockClosure>>on:do:
> WindowManager>>safelyDispatchForWindowManager:
> WindowManager>>processNextEvent
> optimized [] in [] in WindowManager>>newProcess
> BlockClosure>>on:do:
> optimized [] in WindowManager>>newProcess
> BlockClosure>>on:do:
> optimized [] in Process class>>forBlock:priority:
>
> ----------------------------------------------------------------------
> ByteString(Object)>>doesNotUnderstand:
> Receiver:
>     a ByteString
> Arguments:
>     aMessage = a Message with selector: #resolvePath: and arguments:
> #('xhtml-lat1.ent')
> Temporaries:
>     excpt = a MessageNotUnderstood
>     resumeValue = nil
> Context PC = 25
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>systemLiteral
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     lit = 'xhtml-lat1.ent'
> Context PC = 33
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>externalID:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     usage = #entity
> Temporaries:
>     lit2 = nil
>     lit1 = '-//W3C//ENTITIES Latin 1 for XHTML//EN'
>     forceSpace = BlockClosure [] in XML.XMLParser>>externalID:
>     skipSpace = BlockClosure [] in XML.XMLParser>>externalID:
> Context PC = 80
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>peDef:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     name = 'HTMLlat1'
> Temporaries:
>     val = nil
> Context PC = 14
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>entityDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     nm = 'HTMLlat1'
>     def = nil
>     str = a XML.StreamWrapper
> Context PC = 37
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>markUpDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 14
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdEntry
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 12
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>dtdFile:
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Arguments:
>     uriList = an Array[2]
> Temporaries:
>     str = a XML.StreamWrapper
>     input = a XML.InputSource
> Context PC = 77
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>docTypeDecl
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Temporaries:
>     nm = {html}
>     id = an Array[2]
> Context PC = 90
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>prolog
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 19
>
> ----------------------------------------------------------------------
> optimized [] in XML.XMLParser>>scanDocument
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Seaside.XMLDOMParser
> Context PC = 9
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in XML.XMLParser>>scanDocument
>     outerContext = nil
>     copiedValues = a Seaside.XMLDOMParser
> Arguments:
>     aBlock = BlockClosure [] in XML.XMLParser>>scanDocument
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.XMLDOMParser(XML.XMLParser)>>scanDocument
> Receiver:
>     a Seaside.XMLDOMParser
> Instance Variables:
>     sourceStack = a XML.StreamWrapper
>     hereChar = $> "16r003E"
>     hereCharNumBytes = 1
>     lastSource = a XML.StreamWrapper
>     currentSource = a XML.StreamWrapper
>     dtd = a XML.DocumentType
>     unresolvedIDREFs = a Set[0]
>     definedIDs = a Set[0]
>     latestID = nil
>     sax = a XML.SAXDispatcher
>     elementStack = an OrderedCollection[0]
>     validating = false
>     flags = 65548
>     eol = Core.Character cr
>     buffer = a WriteStream
>     nameBuffer = a WriteStream
> Context PC = 11
>
> ----------------------------------------------------------------------
> SeasidePlatformSupport class>>parseSeasideDocumentFrom:
> Receiver:
>     a SeasidePlatformSupport class
> Instance Variables:
>     superclass = Object
>     methodDict = a MethodDictionary[0]
>     format = 20480
>     subclasses = nil
>     instanceVariables = nil
>     organization =
>     name = #SeasidePlatformSupport
>     classPool = a NameSpaceOfClass[3]
>     environment = nil
>     defaultDispatcherName = 'seaside'
> Arguments:
>     aStream = an EncodedStream on a ReadWriteStream with an
> UTF8StreamEncoder
> Temporaries:
>     parser = a Seaside.XMLDOMParser
>     handler = a Seaside.STSeasideResponseParser
> Context PC = 29
>
> ----------------------------------------------------------------------
> Seaside.STSeasideResponseParser class>>parseDocumentFrom:
> Receiver:
>     a Seaside.STSeasideResponseParser class
> Instance Variables:
>     superclass = SAXHandler
>     methodDict = a MethodDictionary[22]
>     format = 16390
>     subclasses = nil
>     instanceVariables = an Array[4]
>     organization = ('content' #characters: #endElement:
> #ignorableWhitespace: #inputComponentFor: #radioComponentFor:
> #startAnchor: #startDocument #startElement:attributeList:
> #startElement:namespaceURI:namespace:attributeList: #startForm:
> #startGenericElement:attributeList: #startInput: #startOption:
> #startSelect: #startTextArea:)
> ('stack' #addEntity: #pop #push: #stack #top)
> ('accessing' #response #response:)
>
>     name = #STSeasideResponseParser
>     classPool = a NameSpaceOfClass[0]
>     environment = a NameSpace[420]
> Arguments:
>     aStream = an EncodedStream on a ReadWriteStream with an
> UTF8StreamEncoder
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.STSeasideResponseParser class>>parseDocumentFromResponse:
> Receiver:
>     a Seaside.STSeasideResponseParser class
> Instance Variables:
>     superclass = SAXHandler
>     methodDict = a MethodDictionary[22]
>     format = 16390
>     subclasses = nil
>     instanceVariables = an Array[4]
>     organization = ('content' #characters: #endElement:
> #ignorableWhitespace: #inputComponentFor: #radioComponentFor:
> #startAnchor: #startDocument #startElement:attributeList:
> #startElement:namespaceURI:namespace:attributeList: #startForm:
> #startGenericElement:attributeList: #startInput: #startOption:
> #startSelect: #startTextArea:)
> ('stack' #addEntity: #pop #push: #stack #top)
> ('accessing' #response #response:)
>
>     name = #STSeasideResponseParser
>     classPool = a NameSpaceOfClass[0]
>     environment = a NameSpace[420]
> Arguments:
>     aResponse = a Seaside.HttpResponse
> Context PC = 20
>
> ----------------------------------------------------------------------
> Seaside.STBrowserSimulator>>issueRequestUntilNotMoved:
> Receiver:
>     a Seaside.STBrowserSimulator
> Instance Variables:
>     history = nil
>     cookies = a Dictionary[0]
>     baseUrl =
> http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
>     agentString = nil
>     httpClient = nil
>     agent = nil
> Arguments:
>     anHttpRequest = a Seaside.HttpRequest
> Temporaries:
>     response = a Seaside.HttpResponse
>     req = a Seaside.HttpRequest
>     newUrl = 'http://localhost:7777/seaside...TsUQRrtJkJVoGgIF&_k=AUSMvomO'
>     doc = nil
> Context PC = 32
>
> ----------------------------------------------------------------------
> Seaside.STBrowserSimulator>>establishSession
> Receiver:
>     a Seaside.STBrowserSimulator
> Instance Variables:
>     history = nil
>     cookies = a Dictionary[0]
>     baseUrl =
> http://localhost:7777/seaside/activeTests/STAnchorDemo_testAnchor
>     agentString = nil
>     httpClient = nil
>     agent = nil
> Temporaries:
>     req = a Seaside.HttpRequest
> Context PC = 12
>
> ----------------------------------------------------------------------
> Seaside.STWebAppTester(Seaside.STRemoteAppTester)>>establishSession
> Receiver:
>     a Seaside.STWebAppTester
> Instance Variables:
>     browser = a Seaside.STBrowserSimulator
>     debugging = true
>     rootUrl = 'http://localhost:7777/seaside...ests/STAnchorDemo_testAnchor'
>     app = a Seaside.STTesterApplication named: 'STAnchorDemo_testAnchor'
>     pseudomain = a Seaside.STTestingPseudomain
>     handler = a Seaside.STTestErrorHandler
>     runnerTask = a Seaside.STRunnerTask
>     sessionPostCreationBlock = nil
> Context PC = 6
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>establishSession
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 3
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest>>testAnchor
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 8
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(TestCase)>>performTest
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 6
>
> ----------------------------------------------------------------------
> optimized [] in TestCase>>runCase
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 9
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in TestCase>>runCase
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in TestCase>>runCase
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> BlockClosure>>sunitEnsure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in TestCase>>runCase
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in TestCase>>runCase
> Context PC = 5
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(TestCase)>>runCase
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = a Seaside.STWebAppTester
>     debugging = true
> Context PC = 11
>
> ----------------------------------------------------------------------
> optimized [] in Seaside.STTestCase>>debug
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 13
>
> ----------------------------------------------------------------------
> BlockClosure>>ensure:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in Seaside.STTestCase>>debug
>     outerContext = nil
>     copiedValues = Seaside.STAnchorDemoTest>>#testAnchor
> Arguments:
>     aBlock = BlockClosure [] in Seaside.STTestCase>>debug
> Temporaries:
>     result = nil
> Context PC = 4
>
> ----------------------------------------------------------------------
> Seaside.STAnchorDemoTest(Seaside.STTestCase)>>debug
> Receiver:
>     a Seaside.STAnchorDemoTest
> Instance Variables:
>     testSelector = #testAnchor
>     tester = nil
>     debugging = nil
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Arguments:
>     each = Seaside.STAnchorDemoTest>>#testAnchor
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
> Context PC = 5
>
> ----------------------------------------------------------------------
> Set>>do:
> Receiver:
>     a Set
> Instance Variables:
>     tally = 1
> Arguments:
>     aBlock = BlockClosure [] in [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Temporaries:
>     index = 2
>     elem = Seaside.STAnchorDemoTest>>#testAnchor
> Context PC = 31
>
> ----------------------------------------------------------------------
> optimized [] in [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
> Context PC = 12
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
>     outerContext = nil
>     copiedValues = a Refactory.Browser.SUnitStatusBar
> Arguments:
>     anExceptionSelector = an ExceptionSet[2]
>     handlerBlock = BlockClosure [] in [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
>     failed = true
> Context PC = 18
>
> ----------------------------------------------------------------------
> BlockClosure>>ifCurtailed:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
>     outerContext = nil
>     copiedValues = an Array[2]
> Arguments:
>     terminationBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>debugTests
> Context PC = 4
>
> ----------------------------------------------------------------------
> Refactory.Browser.SUnitStatusBar>>debugTests
> Receiver:
>     a Refactory.Browser.SUnitStatusBar
> Instance Variables:
>     container = a StatusPanel
>     eventHandlers = nil
>     properties = a Dictionary[4]
>     components = an OrderedCollection[6]
>     preferredBounds = 0@0 corner: 0@0
>     layoutAlgorithm = BlockClosure [] in Panel>>partFramingBlock:
>     testCount = 1
>     defects = nil
>     codeModel = STAnchorDemoTest
> Temporaries:
>     failed = true
> Context PC = 41
>
> ----------------------------------------------------------------------
> optimized [] in Refactory.Browser.SUnitStatusBar>>actionDriver:
> Receiver:
>     an UndefinedObject
> Arguments:
>     m = a ValueHolder on: false
>     v = true
> Temporaries:
>     .super = a Refactory.Browser.SUnitStatusBar
>     .anActionSelector = #debugTests
> Context PC = 7
>
> ----------------------------------------------------------------------
> PluggableAdaptor>>setValue:
> Receiver:
>     a PluggableAdaptor
> Instance Variables:
>     dependents = a WinXPActionButtonView
>     model = a ValueHolder on: false
>     getBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     putBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     updateBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
> Arguments:
>     newValue = true
> Context PC = 6
>
> ----------------------------------------------------------------------
> PluggableAdaptor(ValueModel)>>value:
> Receiver:
>     a PluggableAdaptor
> Instance Variables:
>     dependents = a WinXPActionButtonView
>     model = a ValueHolder on: false
>     getBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     putBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
>     updateBlock = BlockClosure [] in
> Refactory.Browser.SUnitStatusBar>>actionDriver:
> Arguments:
>     newValue = true
> Context PC = 5
>
> ----------------------------------------------------------------------
> WinXPTriggerButtonController(TriggerButtonController)>>pressAction
> Receiver:
>     a WinXPTriggerButtonController
> Instance Variables:
>     model = a PluggableAdaptor
>     view = a WinXPActionButtonView
>     sensor = a TranslatingSensor
>     keyboardProcessor = nil
>     keyboardHook = nil
>     dispatcher = nil
> Context PC = 17
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(BasicButtonTracker)>>finishSelectionFor:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aPoint = 53@10
> Context PC = 8
>
> ----------------------------------------------------------------------
> TriggerButtonTracker>>finishSelectionFor:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aPoint = 53@10
> Context PC = 11
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(SelectionTracker)>>redButtonReleasedEvent:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     aMouseButtonEvent = a RedButtonReleasedEvent
> Context PC = 13
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent>>dispatchTo:
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Arguments:
>     anObject = a TriggerButtonTracker
> Context PC = 4
>
> ----------------------------------------------------------------------
> TriggerButtonTracker(SelectionTracker)>>handleEvent:
> Receiver:
>     a TriggerButtonTracker
> Instance Variables:
>     controller = a WinXPTriggerButtonController
>     inside = true
> Arguments:
>     anEvent = a RedButtonReleasedEvent
> Context PC = 4
>
> ----------------------------------------------------------------------
> EventDispatcher>>dispatch:to:
> Receiver:
>     an EventDispatcher
> Instance Variables:
>     windowController = an ApplicationStandardSystemController
>     currentMouseConsumer = nil
>     grabbingMouse = false
>     keyboardProcessor = a KeyboardProcessor
>     lastControlObject = a
> Refactory.CodeHighlighter.HighlightingTextEditorController
>     trapList = nil
>     state = nil
>     repairDamageWhenDebugging = true
>     flushQueueAfterError = true
>     distributeEventsWhenDebugging = true
>     dragDropInProgress = false
>     dragDropTracker = nil
>     dispatchUnknownEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
>     object = a TriggerButtonTracker
> Temporaries:
>     tmp = nil
> Context PC = 10
>
> ----------------------------------------------------------------------
> EventDispatcher>>dispatchEvent:
> Receiver:
>     an EventDispatcher
> Instance Variables:
>     windowController = an ApplicationStandardSystemController
>     currentMouseConsumer = nil
>     grabbingMouse = false
>     keyboardProcessor = a KeyboardProcessor
>     lastControlObject = a
> Refactory.CodeHighlighter.HighlightingTextEditorController
>     trapList = nil
>     state = nil
>     repairDamageWhenDebugging = true
>     flushQueueAfterError = true
>     distributeEventsWhenDebugging = true
>     dragDropInProgress = false
>     dragDropTracker = nil
>     dispatchUnknownEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
> Temporaries:
>     objectWantingControl = nil
>     targetKeyboardProcessor = nil
> Context PC = 60
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent(Event)>>dispatch
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Context PC = 16
>
> ----------------------------------------------------------------------
> RedButtonReleasedEvent(Event)>>dispatchForWindowManager:
> Receiver:
>     a RedButtonReleasedEvent
> Instance Variables:
>     time = 1215893189
>     initiator = an EventDispatcher
>     window = an ApplicationWindow 44040235
>     state = 0
>     x = 1030
>     y = 647
>     gx = 1069
>     gy = 869
>     buttonNumber = 1
> Arguments:
>     aWinMgr = a WindowManager
> Context PC = 4
>
> ----------------------------------------------------------------------
> optimized [] in WindowManager>>safelyDispatchForWindowManager:
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .event = a RedButtonReleasedEvent
>     .super = a WindowManager
> Context PC = 6
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in
> WindowManager>>safelyDispatchForWindowManager:
>     outerContext = nil
>     copiedValues = an Array[2]
> Arguments:
>     anExceptionSelector = BadControllerError
>     handlerBlock = BlockClosure [] in
> WindowManager>>safelyDispatchForWindowManager:
> Context PC = 18
>
> ----------------------------------------------------------------------
> WindowManager>>safelyDispatchForWindowManager:
> Receiver:
>     a WindowManager
> Instance Variables:
>     windows = an OrderedCollection[1]
>     activeController = nil
>     interruptLock = false
>     outstandingMetaOrDamage = false
>     openInProgress = false
>     eventQueue = an EventQueue
>     baseProcess = a Process in Semaphore>>wait
>     dontFilterEvents = false
> Arguments:
>     event = a RedButtonReleasedEvent
> Context PC = 13
>
> ----------------------------------------------------------------------
> WindowManager>>processNextEvent
> Receiver:
>     a WindowManager
> Instance Variables:
>     windows = an OrderedCollection[1]
>     activeController = nil
>     interruptLock = false
>     outstandingMetaOrDamage = false
>     openInProgress = false
>     eventQueue = an EventQueue
>     baseProcess = a Process in Semaphore>>wait
>     dontFilterEvents = false
> Temporaries:
>     event = a RedButtonReleasedEvent
> Context PC = 9
>
> ----------------------------------------------------------------------
> optimized [] in [] in WindowManager>>newProcess
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a WindowManager
> Context PC = 13
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in [] in WindowManager>>newProcess
>     outerContext = nil
>     copiedValues = a WindowManager
> Arguments:
>     anExceptionSelector = TerminateException
>     handlerBlock = BlockClosure [] in [] in WindowManager>>newProcess
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in WindowManager>>newProcess
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .super = a WindowManager
> Context PC = 15
>
> ----------------------------------------------------------------------
> BlockClosure>>on:do:
> Receiver:
>     a BlockClosure
> Instance Variables:
>     method = CompiledBlock [] in WindowManager>>newProcess
>     outerContext = nil
>     copiedValues = a WindowManager
> Arguments:
>     anExceptionSelector = TerminateException
>     handlerBlock = BlockClosure [] in [] in Process
> class>>forBlock:priority:
> Context PC = 18
>
> ----------------------------------------------------------------------
> optimized [] in Process class>>forBlock:priority:
> Receiver:
>     an UndefinedObject
> Temporaries:
>     .aBlock = BlockClosure [] in WindowManager>>newProcess
> Context PC = 9
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>  
<p><b><span
style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'>Key Technology, Inc. Disclaimer Notice</span></b><span
style='font-size:9.0pt;font-family:"Arial","sans-serif";color:#5F5F5F'> - The
information and attachment(s) contained in this communication are intended for
the addressee only, and may be confidential and/or legally privileged. If you
have received this communication in error, please contact the sender
immediately, and delete this communication from any computer or network system.
Any interception, review, printing, copying, re-transmission, dissemination, or
other use of, or taking of any action upon this information by persons or
entities other than the intended recipient is strictly prohibited by law and
may subject them to criminal or civil liability. Key Technology,&nbsp; Inc. is
not liable for the improper and/or incomplete transmission of the information
contained in this communication or for any delay in its receipt.</span>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Dealing with external DTD's in XML parser

Steffen Märcker
In reply to this post by cdavidshaffer
I am not sure whether this helps, but I had a similar question some time  
ago and got the solution below. In my application this code works well in  
terms of using a local DTD:

validateDocumentType: xmlFile
        | dtd resolver parser |
        dtd := 'cpn.dtd'.
        resolver := [:publicID :systemID | publicID = '-//CPN//DTD CPNXML 1.0//EN'
                                ifTrue: [(ObjectMemory imageDirectory / dtd_1) asFilename readStream]
                                ifFalse: [self error: 'unsupported document type']].
        (parser := XML.XMLParser new) handlers: XML.NullSAXDriver new;  
entityResolver: (XML.PluggableEntityResolver withBlock: resolver).
        [parser on: xmlFile; scanDocument]
                on: XML.InvalidSignal
                do:
                        [:ex |
                        dtd = 'cpn fixed.dtd'
                                ifTrue: [ex pass]
                                ifFalse: [dtd := 'cpn fixed.dtd'].
                        ex retry].
        ^true

Steffen

------- Weitergeleitete Nachricht -------
Von: "Michael Lucas-Smith" <[hidden email]>
An: "Steffen Märcker" <[hidden email]>
Kopie: vwnc <[hidden email]>
Betreff: Re: [vwnc] XMLParser - Referent inaccessible
Datum: Sun, 15 Feb 2009 19:25:40 +0100

Hi Steffen,

You'll want to change the entityResolver. There are several, but if you
want to be totally offline and completely ignore the DTD, you can simply
do:

(XMLParser on: '..test.xml' asFilename readStream)
      validate: false;
      entityResolver: (XML.PluggableEntityResolver withBlock:
[XML.ResolveEmptyResource]);
      scanDocument;
      root

See the comment on PluggableEntityResolver for more details on what it
can do.

Cheers,
Michael

Steffen Märcker wrote:

> Hi,
>
> I've got XML-files like the one attached. The interesting part is the  
> DTD's system identifier, which links to an external DTD file. The  
> following code fails with a 'Referent inaccessible' exception if the  
> HTTP parcel is loaded, but no internet connection established.
>
> ((XMLParser on: '../test.xml' asFilename readStream)
>         validate: false;
>         scanDocument)
>         root.
>
> Because the XML should not be validated, I do not expect the parser to  
> actually trying to access the DTD file. If this is the specified  
> behaviour, I wonder which is the best way to make an application work  
> offline without modifying the above code which is part of the XML Object  
> Marshaling framework?
>
> Have a nice weekend!
> Steffen
> ------------------------------------------------------------------------
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

[vwnc] Bug in XML parser -- test included (was Re: Dealing with external DTD's in XML parser)

cdavidshaffer
Steffen Märcker wrote:

> I am not sure whether this helps, but I had a similar question some
> time ago and got the solution below. In my application this code works
> well in terms of using a local DTD:
>
> validateDocumentType: xmlFile
>     | dtd resolver parser |
>     dtd := 'cpn.dtd'.
>     resolver := [:publicID :systemID | publicID = '-//CPN//DTD CPNXML
> 1.0//EN'
>                 ifTrue: [(ObjectMemory imageDirectory / dtd_1)
> asFilename readStream]
>                 ifFalse: [self error: 'unsupported document type']].
>     (parser := XML.XMLParser new) handlers: XML.NullSAXDriver new;
> entityResolver: (XML.PluggableEntityResolver withBlock: resolver).
>     [parser on: xmlFile; scanDocument]
>         on: XML.InvalidSignal
>         do:
>             [:ex |
>             dtd = 'cpn fixed.dtd'
>                 ifTrue: [ex pass]
>                 ifFalse: [dtd := 'cpn fixed.dtd'].
>             ex retry].
>     ^true
Thanks guys.  I don't understand what your error handler is doing but it
doesn't solve my problem.  Gregory's idea of rewriting the systemID is
OK, I guess, but I think there's a bug in VW's XML framework that we're
working around here.  Attached is a sample which exhibits the bug.

David


<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of March 3, 2008 on April 23, 2009 at 5:11:29 pm</time-stamp>


<class>
<name>XMLBroken</name>
<environment>Reg</environment>
<super>XProgramming.SUnit.TestCase</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars></inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category></category>
<attributes>
<package>XMLBroken</package>
</attributes>
</class>

<methods>
<class-id>Reg.XMLBroken</class-id> <category>accessing</category>

<body package="XMLBroken" selector="sampleResponse">sampleResponse
        ^'&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;&lt;head&gt;&lt;title&gt;Simple Example&lt;/title&gt;&lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8; charset=utf-8"/&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;This is an example&lt;/h1&gt;&lt;/body&gt;'</body>

<body package="XMLBroken" selector="xhtml1StrictDtd">xhtml1StrictDtd
        ^'&lt;!--
   Extensible HTML version 1.0 Strict DTD

   This is the same as HTML 4 Strict except for
   changes due to the differences between XML and SGML.

   Namespace = http://www.w3.org/1999/xhtml

   For further information, see: http://www.w3.org/TR/xhtml1

   Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
   All Rights Reserved.

   This DTD module is identified by the PUBLIC and SYSTEM identifiers:

   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

   $Revision: 1.1 $
   $Date: 2002/08/01 13:56:03 $

--&gt;

&lt;!--================ Character mnemonic entities =========================--&gt;

&lt;!ENTITY % HTMLlat1 PUBLIC
   "-//W3C//ENTITIES Latin 1 for XHTML//EN"
   "xhtml-lat1.ent"&gt;
%HTMLlat1;

&lt;!ENTITY % HTMLsymbol PUBLIC
   "-//W3C//ENTITIES Symbols for XHTML//EN"
   "xhtml-symbol.ent"&gt;
%HTMLsymbol;

&lt;!ENTITY % HTMLspecial PUBLIC
   "-//W3C//ENTITIES Special for XHTML//EN"
   "xhtml-special.ent"&gt;
%HTMLspecial;

&lt;!--================== Imported Names ====================================--&gt;

&lt;!ENTITY % ContentType "CDATA"&gt;
    &lt;!-- media type, as per [RFC2045] --&gt;

&lt;!ENTITY % ContentTypes "CDATA"&gt;
    &lt;!-- comma-separated list of media types, as per [RFC2045] --&gt;

&lt;!ENTITY % Charset "CDATA"&gt;
    &lt;!-- a character encoding, as per [RFC2045] --&gt;

&lt;!ENTITY % Charsets "CDATA"&gt;
    &lt;!-- a space separated list of character encodings, as per [RFC2045] --&gt;

&lt;!ENTITY % LanguageCode "NMTOKEN"&gt;
    &lt;!-- a language code, as per [RFC3066] --&gt;

&lt;!ENTITY % Character "CDATA"&gt;
    &lt;!-- a single character, as per section 2.2 of [XML] --&gt;

&lt;!ENTITY % Number "CDATA"&gt;
    &lt;!-- one or more digits --&gt;

&lt;!ENTITY % LinkTypes "CDATA"&gt;
    &lt;!-- space-separated list of link types --&gt;

&lt;!ENTITY % MediaDesc "CDATA"&gt;
    &lt;!-- single or comma-separated list of media descriptors --&gt;

&lt;!ENTITY % URI "CDATA"&gt;
    &lt;!-- a Uniform Resource Identifier, see [RFC2396] --&gt;

&lt;!ENTITY % UriList "CDATA"&gt;
    &lt;!-- a space separated list of Uniform Resource Identifiers --&gt;

&lt;!ENTITY % Datetime "CDATA"&gt;
    &lt;!-- date and time information. ISO date format --&gt;

&lt;!ENTITY % Script "CDATA"&gt;
    &lt;!-- script expression --&gt;

&lt;!ENTITY % StyleSheet "CDATA"&gt;
    &lt;!-- style sheet data --&gt;

&lt;!ENTITY % Text "CDATA"&gt;
    &lt;!-- used for titles etc. --&gt;

&lt;!ENTITY % Length "CDATA"&gt;
    &lt;!-- nn for pixels or nn% for percentage length --&gt;

&lt;!ENTITY % MultiLength "CDATA"&gt;
    &lt;!-- pixel, percentage, or relative --&gt;

&lt;!ENTITY % Pixels "CDATA"&gt;
    &lt;!-- integer representing length in pixels --&gt;

&lt;!-- these are used for image maps --&gt;

&lt;!ENTITY % Shape "(rect|circle|poly|default)"&gt;

&lt;!ENTITY % Coords "CDATA"&gt;
    &lt;!-- comma separated list of lengths --&gt;

&lt;!--=================== Generic Attributes ===============================--&gt;

&lt;!-- core attributes common to most elements
  id       document-wide unique id
  class    space separated list of classes
  style    associated style info
  title    advisory title/amplification
--&gt;
&lt;!ENTITY % coreattrs
 "id          ID             #IMPLIED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED"
  &gt;

&lt;!-- internationalization attributes
  lang        language code (backwards compatible)
  xml:lang    language code (as per XML 1.0 spec)
  dir         direction for weak/neutral text
--&gt;
&lt;!ENTITY % i18n
 "lang        %LanguageCode; #IMPLIED
  xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #IMPLIED"
  &gt;

&lt;!-- attributes for common UI events
  onclick     a pointer button was clicked
  ondblclick  a pointer button was double clicked
  onmousedown a pointer button was pressed down
  onmouseup   a pointer button was released
  onmousemove a pointer was moved onto the element
  onmouseout  a pointer was moved away from the element
  onkeypress  a key was pressed and released
  onkeydown   a key was pressed down
  onkeyup     a key was released
--&gt;
&lt;!ENTITY % events
 "onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED"
  &gt;

&lt;!-- attributes for elements that can get the focus
  accesskey   accessibility key character
  tabindex    position in tabbing order
  onfocus     the element got the focus
  onblur      the element lost the focus
--&gt;
&lt;!ENTITY % focus
 "accesskey   %Character;    #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED"
  &gt;

&lt;!ENTITY % attrs "%coreattrs; %i18n; %events;"&gt;

&lt;!--=================== Text Elements ====================================--&gt;

&lt;!ENTITY % special.pre
   "br | span | bdo | map"&gt;


&lt;!ENTITY % special
   "%special.pre; | object | img "&gt;

&lt;!ENTITY % fontstyle "tt | i | b | big | small "&gt;

&lt;!ENTITY % phrase "em | strong | dfn | code | q |
                   samp | kbd | var | cite | abbr | acronym | sub | sup "&gt;

&lt;!ENTITY % inline.forms "input | select | textarea | label | button"&gt;

&lt;!-- these can occur at block or inline level --&gt;
&lt;!ENTITY % misc.inline "ins | del | script"&gt;

&lt;!-- these can only occur at block level --&gt;
&lt;!ENTITY % misc "noscript | %misc.inline;"&gt;

&lt;!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;"&gt;

&lt;!-- %Inline; covers inline or "text-level" elements --&gt;
&lt;!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*"&gt;

&lt;!--================== Block level elements ==============================--&gt;

&lt;!ENTITY % heading "h1|h2|h3|h4|h5|h6"&gt;
&lt;!ENTITY % lists "ul | ol | dl"&gt;
&lt;!ENTITY % blocktext "pre | hr | blockquote | address"&gt;

&lt;!ENTITY % block
     "p | %heading; | div | %lists; | %blocktext; | fieldset | table"&gt;

&lt;!ENTITY % Block "(%block; | form | %misc;)*"&gt;

&lt;!-- %Flow; mixes block and inline and is used for list items etc. --&gt;
&lt;!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*"&gt;

&lt;!--================== Content models for exclusions =====================--&gt;

&lt;!-- a elements use %Inline; excluding a --&gt;

&lt;!ENTITY % a.content
   "(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc.inline;)*"&gt;

&lt;!-- pre uses %Inline excluding big, small, sup or sup --&gt;

&lt;!ENTITY % pre.content
   "(#PCDATA | a | %fontstyle; | %phrase; | %special.pre; | %misc.inline;
      | %inline.forms;)*"&gt;

&lt;!-- form uses %Block; excluding form --&gt;

&lt;!ENTITY % form.content "(%block; | %misc;)*"&gt;

&lt;!-- button uses %Flow; but excludes a, form and form controls --&gt;

&lt;!ENTITY % button.content
   "(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
    table | %special; | %fontstyle; | %phrase; | %misc;)*"&gt;

&lt;!--================ Document Structure ==================================--&gt;

&lt;!-- the namespace URI designates the document profile --&gt;

&lt;!ELEMENT html (head, body)&gt;
&lt;!ATTLIST html
  %i18n;
  id          ID             #IMPLIED
  xmlns       %URI;          #FIXED ''http://www.w3.org/1999/xhtml''
  &gt;

&lt;!--================ Document Head =======================================--&gt;

&lt;!ENTITY % head.misc "(script|style|meta|link|object)*"&gt;

&lt;!-- content model is %head.misc; combined with a single
     title and an optional base element in any order --&gt;

&lt;!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;))))&gt;

&lt;!ATTLIST head
  %i18n;
  id          ID             #IMPLIED
  profile     %URI;          #IMPLIED
  &gt;

&lt;!-- The title element is not considered part of the flow of text.
       It should be displayed, for example as the page header or
       window title. Exactly one title is required per document.
    --&gt;
&lt;!ELEMENT title (#PCDATA)&gt;
&lt;!ATTLIST title
  %i18n;
  id          ID             #IMPLIED
  &gt;

&lt;!-- document base URI --&gt;

&lt;!ELEMENT base EMPTY&gt;
&lt;!ATTLIST base
  href        %URI;          #REQUIRED
  id          ID             #IMPLIED
  &gt;

&lt;!-- generic metainformation --&gt;
&lt;!ELEMENT meta EMPTY&gt;
&lt;!ATTLIST meta
  %i18n;
  id          ID             #IMPLIED
  http-equiv  CDATA          #IMPLIED
  name        CDATA          #IMPLIED
  content     CDATA          #REQUIRED
  scheme      CDATA          #IMPLIED
  &gt;

&lt;!--
  Relationship values can be used in principle:

   a) for document specific toolbars/menus when used
      with the link element in document head e.g.
        start, contents, previous, next, index, end, help
   b) to link to a separate style sheet (rel="stylesheet")
   c) to make a link to a script (rel="script")
   d) by stylesheets to control how collections of
      html nodes are rendered into printed documents
   e) to make a link to a printable version of this document
      e.g. a PostScript or PDF version (rel="alternate" media="print")
--&gt;

&lt;!ELEMENT link EMPTY&gt;
&lt;!ATTLIST link
  %attrs;
  charset     %Charset;      #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  type        %ContentType;  #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  media       %MediaDesc;    #IMPLIED
  &gt;

&lt;!-- style info, which may include CDATA sections --&gt;
&lt;!ELEMENT style (#PCDATA)&gt;
&lt;!ATTLIST style
  %i18n;
  id          ID             #IMPLIED
  type        %ContentType;  #REQUIRED
  media       %MediaDesc;    #IMPLIED
  title       %Text;         #IMPLIED
  xml:space   (preserve)     #FIXED ''preserve''
  &gt;

&lt;!-- script statements, which may include CDATA sections --&gt;
&lt;!ELEMENT script (#PCDATA)&gt;
&lt;!ATTLIST script
  id          ID             #IMPLIED
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  xml:space   (preserve)     #FIXED ''preserve''
  &gt;

&lt;!-- alternate content container for non script-based rendering --&gt;

&lt;!ELEMENT noscript %Block;&gt;
&lt;!ATTLIST noscript
  %attrs;
  &gt;

&lt;!--=================== Document Body ====================================--&gt;

&lt;!ELEMENT body %Block;&gt;
&lt;!ATTLIST body
  %attrs;
  onload          %Script;   #IMPLIED
  onunload        %Script;   #IMPLIED
  &gt;

&lt;!ELEMENT div %Flow;&gt;  &lt;!-- generic language/style container --&gt;
&lt;!ATTLIST div
  %attrs;
  &gt;

&lt;!--=================== Paragraphs =======================================--&gt;

&lt;!ELEMENT p %Inline;&gt;
&lt;!ATTLIST p
  %attrs;
  &gt;

&lt;!--=================== Headings =========================================--&gt;

&lt;!--
  There are six levels of headings from h1 (the most important)
  to h6 (the least important).
--&gt;

&lt;!ELEMENT h1  %Inline;&gt;
&lt;!ATTLIST h1
   %attrs;
   &gt;

&lt;!ELEMENT h2 %Inline;&gt;
&lt;!ATTLIST h2
   %attrs;
   &gt;

&lt;!ELEMENT h3 %Inline;&gt;
&lt;!ATTLIST h3
   %attrs;
   &gt;

&lt;!ELEMENT h4 %Inline;&gt;
&lt;!ATTLIST h4
   %attrs;
   &gt;

&lt;!ELEMENT h5 %Inline;&gt;
&lt;!ATTLIST h5
   %attrs;
   &gt;

&lt;!ELEMENT h6 %Inline;&gt;
&lt;!ATTLIST h6
   %attrs;
   &gt;

&lt;!--=================== Lists ============================================--&gt;

&lt;!-- Unordered list --&gt;

&lt;!ELEMENT ul (li)+&gt;
&lt;!ATTLIST ul
  %attrs;
  &gt;

&lt;!-- Ordered (numbered) list --&gt;

&lt;!ELEMENT ol (li)+&gt;
&lt;!ATTLIST ol
  %attrs;
  &gt;

&lt;!-- list item --&gt;

&lt;!ELEMENT li %Flow;&gt;
&lt;!ATTLIST li
  %attrs;
  &gt;

&lt;!-- definition lists - dt for term, dd for its definition --&gt;

&lt;!ELEMENT dl (dt|dd)+&gt;
&lt;!ATTLIST dl
  %attrs;
  &gt;

&lt;!ELEMENT dt %Inline;&gt;
&lt;!ATTLIST dt
  %attrs;
  &gt;

&lt;!ELEMENT dd %Flow;&gt;
&lt;!ATTLIST dd
  %attrs;
  &gt;

&lt;!--=================== Address ==========================================--&gt;

&lt;!-- information on author --&gt;

&lt;!ELEMENT address %Inline;&gt;
&lt;!ATTLIST address
  %attrs;
  &gt;

&lt;!--=================== Horizontal Rule ==================================--&gt;

&lt;!ELEMENT hr EMPTY&gt;
&lt;!ATTLIST hr
  %attrs;
  &gt;

&lt;!--=================== Preformatted Text ================================--&gt;

&lt;!-- content is %Inline; excluding "img|object|big|small|sub|sup" --&gt;

&lt;!ELEMENT pre %pre.content;&gt;
&lt;!ATTLIST pre
  %attrs;
  xml:space (preserve) #FIXED ''preserve''
  &gt;

&lt;!--=================== Block-like Quotes ================================--&gt;

&lt;!ELEMENT blockquote %Block;&gt;
&lt;!ATTLIST blockquote
  %attrs;
  cite        %URI;          #IMPLIED
  &gt;

&lt;!--=================== Inserted/Deleted Text ============================--&gt;

&lt;!--
  ins/del are allowed in block and inline content, but its
  inappropriate to include block content within an ins element
  occurring in inline content.
--&gt;
&lt;!ELEMENT ins %Flow;&gt;
&lt;!ATTLIST ins
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  &gt;

&lt;!ELEMENT del %Flow;&gt;
&lt;!ATTLIST del
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  &gt;

&lt;!--================== The Anchor Element ================================--&gt;

&lt;!-- content is %Inline; except that anchors shouldn''t be nested --&gt;

&lt;!ELEMENT a %a.content;&gt;
&lt;!ATTLIST a
  %attrs;
  %focus;
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        NMTOKEN        #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  &gt;

&lt;!--===================== Inline Elements ================================--&gt;

&lt;!ELEMENT span %Inline;&gt; &lt;!-- generic language/style container --&gt;
&lt;!ATTLIST span
  %attrs;
  &gt;

&lt;!ELEMENT bdo %Inline;&gt;  &lt;!-- I18N BiDi over-ride --&gt;
&lt;!ATTLIST bdo
  %coreattrs;
  %events;
  lang        %LanguageCode; #IMPLIED
  xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #REQUIRED
  &gt;

&lt;!ELEMENT br EMPTY&gt;   &lt;!-- forced line break --&gt;
&lt;!ATTLIST br
  %coreattrs;
  &gt;

&lt;!ELEMENT em %Inline;&gt;   &lt;!-- emphasis --&gt;
&lt;!ATTLIST em %attrs;&gt;

&lt;!ELEMENT strong %Inline;&gt;   &lt;!-- strong emphasis --&gt;
&lt;!ATTLIST strong %attrs;&gt;

&lt;!ELEMENT dfn %Inline;&gt;   &lt;!-- definitional --&gt;
&lt;!ATTLIST dfn %attrs;&gt;

&lt;!ELEMENT code %Inline;&gt;   &lt;!-- program code --&gt;
&lt;!ATTLIST code %attrs;&gt;

&lt;!ELEMENT samp %Inline;&gt;   &lt;!-- sample --&gt;
&lt;!ATTLIST samp %attrs;&gt;

&lt;!ELEMENT kbd %Inline;&gt;  &lt;!-- something user would type --&gt;
&lt;!ATTLIST kbd %attrs;&gt;

&lt;!ELEMENT var %Inline;&gt;   &lt;!-- variable --&gt;
&lt;!ATTLIST var %attrs;&gt;

&lt;!ELEMENT cite %Inline;&gt;   &lt;!-- citation --&gt;
&lt;!ATTLIST cite %attrs;&gt;

&lt;!ELEMENT abbr %Inline;&gt;   &lt;!-- abbreviation --&gt;
&lt;!ATTLIST abbr %attrs;&gt;

&lt;!ELEMENT acronym %Inline;&gt;   &lt;!-- acronym --&gt;
&lt;!ATTLIST acronym %attrs;&gt;

&lt;!ELEMENT q %Inline;&gt;   &lt;!-- inlined quote --&gt;
&lt;!ATTLIST q
  %attrs;
  cite        %URI;          #IMPLIED
  &gt;

&lt;!ELEMENT sub %Inline;&gt; &lt;!-- subscript --&gt;
&lt;!ATTLIST sub %attrs;&gt;

&lt;!ELEMENT sup %Inline;&gt; &lt;!-- superscript --&gt;
&lt;!ATTLIST sup %attrs;&gt;

&lt;!ELEMENT tt %Inline;&gt;   &lt;!-- fixed pitch font --&gt;
&lt;!ATTLIST tt %attrs;&gt;

&lt;!ELEMENT i %Inline;&gt;   &lt;!-- italic font --&gt;
&lt;!ATTLIST i %attrs;&gt;

&lt;!ELEMENT b %Inline;&gt;   &lt;!-- bold font --&gt;
&lt;!ATTLIST b %attrs;&gt;

&lt;!ELEMENT big %Inline;&gt;   &lt;!-- bigger font --&gt;
&lt;!ATTLIST big %attrs;&gt;

&lt;!ELEMENT small %Inline;&gt;   &lt;!-- smaller font --&gt;
&lt;!ATTLIST small %attrs;&gt;

&lt;!--==================== Object ======================================--&gt;
&lt;!--
  object is used to embed objects as part of HTML pages.
  param elements should precede other content. Parameters
  can also be expressed as attribute/value pairs on the
  object element itself when brevity is desired.
--&gt;

&lt;!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*&gt;
&lt;!ATTLIST object
  %attrs;
  declare     (declare)      #IMPLIED
  classid     %URI;          #IMPLIED
  codebase    %URI;          #IMPLIED
  data        %URI;          #IMPLIED
  type        %ContentType;  #IMPLIED
  codetype    %ContentType;  #IMPLIED
  archive     %UriList;      #IMPLIED
  standby     %Text;         #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  name        NMTOKEN        #IMPLIED
  tabindex    %Number;       #IMPLIED
  &gt;

&lt;!--
  param is used to supply a named property value.
  In XML it would seem natural to follow RDF and support an
  abbreviated syntax where the param elements are replaced
  by attribute value pairs on the object start tag.
--&gt;
&lt;!ELEMENT param EMPTY&gt;
&lt;!ATTLIST param
  id          ID             #IMPLIED
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  valuetype   (data|ref|object) "data"
  type        %ContentType;  #IMPLIED
  &gt;

&lt;!--=================== Images ===========================================--&gt;

&lt;!--
   To avoid accessibility problems for people who aren''t
   able to see the image, you should provide a text
   description using the alt and longdesc attributes.
   In addition, avoid the use of server-side image maps.
   Note that in this DTD there is no name attribute. That
   is only available in the transitional and frameset DTD.
--&gt;

&lt;!ELEMENT img EMPTY&gt;
&lt;!ATTLIST img
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #REQUIRED
  longdesc    %URI;          #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  ismap       (ismap)        #IMPLIED
  &gt;

&lt;!-- usemap points to a map element which may be in this document
  or an external document, although the latter is not widely supported --&gt;

&lt;!--================== Client-side image maps ============================--&gt;

&lt;!-- These can be placed in the same document or grouped in a
     separate document although this isn''t yet widely supported --&gt;

&lt;!ELEMENT map ((%block; | form | %misc;)+ | area+)&gt;
&lt;!ATTLIST map
  %i18n;
  %events;
  id          ID             #REQUIRED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED
  name        NMTOKEN        #IMPLIED
  &gt;

&lt;!ELEMENT area EMPTY&gt;
&lt;!ATTLIST area
  %attrs;
  %focus;
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  href        %URI;          #IMPLIED
  nohref      (nohref)       #IMPLIED
  alt         %Text;         #REQUIRED
  &gt;

&lt;!--================ Forms ===============================================--&gt;
&lt;!ELEMENT form %form.content;&gt;   &lt;!-- forms shouldn''t be nested --&gt;

&lt;!ATTLIST form
  %attrs;
  action      %URI;          #REQUIRED
  method      (get|post)     "get"
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  onsubmit    %Script;       #IMPLIED
  onreset     %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  accept-charset %Charsets;  #IMPLIED
  &gt;

&lt;!--
  Each label must not contain more than ONE field
  Label elements shouldn''t be nested.
--&gt;
&lt;!ELEMENT label %Inline;&gt;
&lt;!ATTLIST label
  %attrs;
  for         IDREF          #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  &gt;

&lt;!ENTITY % InputType
  "(text | password | checkbox |
    radio | submit | reset |
    file | hidden | image | button)"
   &gt;

&lt;!-- the name attribute is required for all but submit &amp; reset --&gt;

&lt;!ELEMENT input EMPTY&gt;     &lt;!-- form control --&gt;
&lt;!ATTLIST input
  %attrs;
  %focus;
  type        %InputType;    "text"
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  checked     (checked)      #IMPLIED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  size        CDATA          #IMPLIED
  maxlength   %Number;       #IMPLIED
  src         %URI;          #IMPLIED
  alt         CDATA          #IMPLIED
  usemap      %URI;          #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  &gt;

&lt;!ELEMENT select (optgroup|option)+&gt;  &lt;!-- option selector --&gt;
&lt;!ATTLIST select
  %attrs;
  name        CDATA          #IMPLIED
  size        %Number;       #IMPLIED
  multiple    (multiple)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  &gt;

&lt;!ELEMENT optgroup (option)+&gt;   &lt;!-- option group --&gt;
&lt;!ATTLIST optgroup
  %attrs;
  disabled    (disabled)     #IMPLIED
  label       %Text;         #REQUIRED
  &gt;

&lt;!ELEMENT option (#PCDATA)&gt;     &lt;!-- selectable choice --&gt;
&lt;!ATTLIST option
  %attrs;
  selected    (selected)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  label       %Text;         #IMPLIED
  value       CDATA          #IMPLIED
  &gt;

&lt;!ELEMENT textarea (#PCDATA)&gt;     &lt;!-- multi-line text field --&gt;
&lt;!ATTLIST textarea
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
  rows        %Number;       #REQUIRED
  cols        %Number;       #REQUIRED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  &gt;

&lt;!--
  The fieldset element is used to group form fields.
  Only one legend element should occur in the content
  and if present should only be preceded by whitespace.
--&gt;
&lt;!ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)*&gt;
&lt;!ATTLIST fieldset
  %attrs;
  &gt;

&lt;!ELEMENT legend %Inline;&gt;     &lt;!-- fieldset label --&gt;
&lt;!ATTLIST legend
  %attrs;
  accesskey   %Character;    #IMPLIED
  &gt;

&lt;!--
 Content is %Flow; excluding a, form and form controls
--&gt;
&lt;!ELEMENT button %button.content;&gt;  &lt;!-- push button --&gt;
&lt;!ATTLIST button
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  type        (button|submit|reset) "submit"
  disabled    (disabled)     #IMPLIED
  &gt;

&lt;!--======================= Tables =======================================--&gt;

&lt;!-- Derived from IETF HTML table standard, see [RFC1942] --&gt;

&lt;!--
 The border attribute sets the thickness of the frame around the
 table. The default units are screen pixels.

 The frame attribute specifies which parts of the frame around
 the table should be rendered. The values are not the same as
 CALS to avoid a name clash with the valign attribute.
--&gt;
&lt;!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)"&gt;

&lt;!--
 The rules attribute defines which rules to draw between cells:

 If rules is absent then assume:
     "none" if border is absent or border="0" otherwise "all"
--&gt;

&lt;!ENTITY % TRules "(none | groups | rows | cols | all)"&gt;
 
&lt;!-- horizontal alignment attributes for cell contents

  char        alignment char, e.g. char='':''
  charoff     offset for alignment char
--&gt;
&lt;!ENTITY % cellhalign
  "align      (left|center|right|justify|char) #IMPLIED
   char       %Character;    #IMPLIED
   charoff    %Length;       #IMPLIED"
  &gt;

&lt;!-- vertical alignment attributes for cell contents --&gt;
&lt;!ENTITY % cellvalign
  "valign     (top|middle|bottom|baseline) #IMPLIED"
  &gt;

&lt;!ELEMENT table
     (caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))&gt;
&lt;!ELEMENT caption  %Inline;&gt;
&lt;!ELEMENT thead    (tr)+&gt;
&lt;!ELEMENT tfoot    (tr)+&gt;
&lt;!ELEMENT tbody    (tr)+&gt;
&lt;!ELEMENT colgroup (col)*&gt;
&lt;!ELEMENT col      EMPTY&gt;
&lt;!ELEMENT tr       (th|td)+&gt;
&lt;!ELEMENT th       %Flow;&gt;
&lt;!ELEMENT td       %Flow;&gt;

&lt;!ATTLIST table
  %attrs;
  summary     %Text;         #IMPLIED
  width       %Length;       #IMPLIED
  border      %Pixels;       #IMPLIED
  frame       %TFrame;       #IMPLIED
  rules       %TRules;       #IMPLIED
  cellspacing %Length;       #IMPLIED
  cellpadding %Length;       #IMPLIED
  &gt;

&lt;!ATTLIST caption
  %attrs;
  &gt;

&lt;!--
colgroup groups a set of col elements. It allows you to group
several semantically related columns together.
--&gt;
&lt;!ATTLIST colgroup
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!--
 col elements define the alignment properties for cells in
 one or more columns.

 The width attribute specifies the width of the columns, e.g.

     width=64        width in screen pixels
     width=0.5*      relative width of 0.5

 The span attribute causes the attributes of one
 col element to apply to more than one column.
--&gt;
&lt;!ATTLIST col
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!--
    Use thead to duplicate headers when breaking table
    across page boundaries, or for static headers when
    tbody sections are rendered in scrolling panel.

    Use tfoot to duplicate footers when breaking table
    across page boundaries, or for static footers when
    tbody sections are rendered in scrolling panel.

    Use multiple tbody sections when rules are needed
    between groups of table rows.
--&gt;
&lt;!ATTLIST thead
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tfoot
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tbody
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tr
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;


&lt;!-- Scope is simpler than headers attribute for common tables --&gt;
&lt;!ENTITY % Scope "(row|col|rowgroup|colgroup)"&gt;

&lt;!-- th is for headers, td for data and for cells acting as both --&gt;

&lt;!ATTLIST th
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST td
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  &gt;
'</body>
</methods>

<methods>
<class-id>Reg.XMLBroken</class-id> <category>running</category>

<body package="XMLBroken" selector="testParse">testParse
        | resolver parser |
        resolver := [:publicID :systemID | publicID = '-//W3C//DTD XHTML 1.0 Strict//EN'
                ifTrue: [self xhtml1StrictDtd readStream]
                ifFalse: [XML.ResolveEmptyResource]].
        (parser := XML.XMLParser new) handlers: XML.NullSAXDriver new; entityResolver: (XML.PluggableEntityResolver withBlock: resolver).
        parser on: self sampleResponse readStream; scanDocument</body>
</methods>

</st-source>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Bug in XML parser -- test included (was Re: Dealing with external DTD's in XML parser)

cdavidshaffer
OK, I've attached a (fixed) version of my test case and a fix for the
bug (missing send of asURI).  I don't know if this resolves the problem
altogether but it causes the test to run without error.

David


<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of March 3, 2008 on April 23, 2009 at 11:44:06 pm</time-stamp>


<class>
<name>XMLBroken</name>
<environment>Reg</environment>
<super>XProgramming.SUnit.TestCase</super>
<private>false</private>
<indexed-type>none</indexed-type>
<inst-vars></inst-vars>
<class-inst-vars></class-inst-vars>
<imports></imports>
<category></category>
<attributes>
<package>XMLBroken</package>
</attributes>
</class>

<methods>
<class-id>Reg.XMLBroken</class-id> <category>accessing</category>

<body package="XMLBroken" selector="sampleResponse">sampleResponse
        ^'&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;&lt;head&gt;&lt;title&gt;Simple Example&lt;/title&gt;&lt;meta http-equiv="Content-Type" content="text/html;charset=utf-8; charset=utf-8"/&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;This is an example&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;'</body>

<body package="XMLBroken" selector="xhtml1StrictDtd">xhtml1StrictDtd
        ^'&lt;!--
   Extensible HTML version 1.0 Strict DTD

   This is the same as HTML 4 Strict except for
   changes due to the differences between XML and SGML.

   Namespace = http://www.w3.org/1999/xhtml

   For further information, see: http://www.w3.org/TR/xhtml1

   Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
   All Rights Reserved.

   This DTD module is identified by the PUBLIC and SYSTEM identifiers:

   PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"

   $Revision: 1.1 $
   $Date: 2002/08/01 13:56:03 $

--&gt;

&lt;!--================ Character mnemonic entities =========================--&gt;

&lt;!ENTITY % HTMLlat1 PUBLIC
   "-//W3C//ENTITIES Latin 1 for XHTML//EN"
   "xhtml-lat1.ent"&gt;
%HTMLlat1;

&lt;!ENTITY % HTMLsymbol PUBLIC
   "-//W3C//ENTITIES Symbols for XHTML//EN"
   "xhtml-symbol.ent"&gt;
%HTMLsymbol;

&lt;!ENTITY % HTMLspecial PUBLIC
   "-//W3C//ENTITIES Special for XHTML//EN"
   "xhtml-special.ent"&gt;
%HTMLspecial;

&lt;!--================== Imported Names ====================================--&gt;

&lt;!ENTITY % ContentType "CDATA"&gt;
    &lt;!-- media type, as per [RFC2045] --&gt;

&lt;!ENTITY % ContentTypes "CDATA"&gt;
    &lt;!-- comma-separated list of media types, as per [RFC2045] --&gt;

&lt;!ENTITY % Charset "CDATA"&gt;
    &lt;!-- a character encoding, as per [RFC2045] --&gt;

&lt;!ENTITY % Charsets "CDATA"&gt;
    &lt;!-- a space separated list of character encodings, as per [RFC2045] --&gt;

&lt;!ENTITY % LanguageCode "NMTOKEN"&gt;
    &lt;!-- a language code, as per [RFC3066] --&gt;

&lt;!ENTITY % Character "CDATA"&gt;
    &lt;!-- a single character, as per section 2.2 of [XML] --&gt;

&lt;!ENTITY % Number "CDATA"&gt;
    &lt;!-- one or more digits --&gt;

&lt;!ENTITY % LinkTypes "CDATA"&gt;
    &lt;!-- space-separated list of link types --&gt;

&lt;!ENTITY % MediaDesc "CDATA"&gt;
    &lt;!-- single or comma-separated list of media descriptors --&gt;

&lt;!ENTITY % URI "CDATA"&gt;
    &lt;!-- a Uniform Resource Identifier, see [RFC2396] --&gt;

&lt;!ENTITY % UriList "CDATA"&gt;
    &lt;!-- a space separated list of Uniform Resource Identifiers --&gt;

&lt;!ENTITY % Datetime "CDATA"&gt;
    &lt;!-- date and time information. ISO date format --&gt;

&lt;!ENTITY % Script "CDATA"&gt;
    &lt;!-- script expression --&gt;

&lt;!ENTITY % StyleSheet "CDATA"&gt;
    &lt;!-- style sheet data --&gt;

&lt;!ENTITY % Text "CDATA"&gt;
    &lt;!-- used for titles etc. --&gt;

&lt;!ENTITY % Length "CDATA"&gt;
    &lt;!-- nn for pixels or nn% for percentage length --&gt;

&lt;!ENTITY % MultiLength "CDATA"&gt;
    &lt;!-- pixel, percentage, or relative --&gt;

&lt;!ENTITY % Pixels "CDATA"&gt;
    &lt;!-- integer representing length in pixels --&gt;

&lt;!-- these are used for image maps --&gt;

&lt;!ENTITY % Shape "(rect|circle|poly|default)"&gt;

&lt;!ENTITY % Coords "CDATA"&gt;
    &lt;!-- comma separated list of lengths --&gt;

&lt;!--=================== Generic Attributes ===============================--&gt;

&lt;!-- core attributes common to most elements
  id       document-wide unique id
  class    space separated list of classes
  style    associated style info
  title    advisory title/amplification
--&gt;
&lt;!ENTITY % coreattrs
 "id          ID             #IMPLIED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED"
  &gt;

&lt;!-- internationalization attributes
  lang        language code (backwards compatible)
  xml:lang    language code (as per XML 1.0 spec)
  dir         direction for weak/neutral text
--&gt;
&lt;!ENTITY % i18n
 "lang        %LanguageCode; #IMPLIED
  xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #IMPLIED"
  &gt;

&lt;!-- attributes for common UI events
  onclick     a pointer button was clicked
  ondblclick  a pointer button was double clicked
  onmousedown a pointer button was pressed down
  onmouseup   a pointer button was released
  onmousemove a pointer was moved onto the element
  onmouseout  a pointer was moved away from the element
  onkeypress  a key was pressed and released
  onkeydown   a key was pressed down
  onkeyup     a key was released
--&gt;
&lt;!ENTITY % events
 "onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED"
  &gt;

&lt;!-- attributes for elements that can get the focus
  accesskey   accessibility key character
  tabindex    position in tabbing order
  onfocus     the element got the focus
  onblur      the element lost the focus
--&gt;
&lt;!ENTITY % focus
 "accesskey   %Character;    #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED"
  &gt;

&lt;!ENTITY % attrs "%coreattrs; %i18n; %events;"&gt;

&lt;!--=================== Text Elements ====================================--&gt;

&lt;!ENTITY % special.pre
   "br | span | bdo | map"&gt;


&lt;!ENTITY % special
   "%special.pre; | object | img "&gt;

&lt;!ENTITY % fontstyle "tt | i | b | big | small "&gt;

&lt;!ENTITY % phrase "em | strong | dfn | code | q |
                   samp | kbd | var | cite | abbr | acronym | sub | sup "&gt;

&lt;!ENTITY % inline.forms "input | select | textarea | label | button"&gt;

&lt;!-- these can occur at block or inline level --&gt;
&lt;!ENTITY % misc.inline "ins | del | script"&gt;

&lt;!-- these can only occur at block level --&gt;
&lt;!ENTITY % misc "noscript | %misc.inline;"&gt;

&lt;!ENTITY % inline "a | %special; | %fontstyle; | %phrase; | %inline.forms;"&gt;

&lt;!-- %Inline; covers inline or "text-level" elements --&gt;
&lt;!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*"&gt;

&lt;!--================== Block level elements ==============================--&gt;

&lt;!ENTITY % heading "h1|h2|h3|h4|h5|h6"&gt;
&lt;!ENTITY % lists "ul | ol | dl"&gt;
&lt;!ENTITY % blocktext "pre | hr | blockquote | address"&gt;

&lt;!ENTITY % block
     "p | %heading; | div | %lists; | %blocktext; | fieldset | table"&gt;

&lt;!ENTITY % Block "(%block; | form | %misc;)*"&gt;

&lt;!-- %Flow; mixes block and inline and is used for list items etc. --&gt;
&lt;!ENTITY % Flow "(#PCDATA | %block; | form | %inline; | %misc;)*"&gt;

&lt;!--================== Content models for exclusions =====================--&gt;

&lt;!-- a elements use %Inline; excluding a --&gt;

&lt;!ENTITY % a.content
   "(#PCDATA | %special; | %fontstyle; | %phrase; | %inline.forms; | %misc.inline;)*"&gt;

&lt;!-- pre uses %Inline excluding big, small, sup or sup --&gt;

&lt;!ENTITY % pre.content
   "(#PCDATA | a | %fontstyle; | %phrase; | %special.pre; | %misc.inline;
      | %inline.forms;)*"&gt;

&lt;!-- form uses %Block; excluding form --&gt;

&lt;!ENTITY % form.content "(%block; | %misc;)*"&gt;

&lt;!-- button uses %Flow; but excludes a, form and form controls --&gt;

&lt;!ENTITY % button.content
   "(#PCDATA | p | %heading; | div | %lists; | %blocktext; |
    table | %special; | %fontstyle; | %phrase; | %misc;)*"&gt;

&lt;!--================ Document Structure ==================================--&gt;

&lt;!-- the namespace URI designates the document profile --&gt;

&lt;!ELEMENT html (head, body)&gt;
&lt;!ATTLIST html
  %i18n;
  id          ID             #IMPLIED
  xmlns       %URI;          #FIXED ''http://www.w3.org/1999/xhtml''
  &gt;

&lt;!--================ Document Head =======================================--&gt;

&lt;!ENTITY % head.misc "(script|style|meta|link|object)*"&gt;

&lt;!-- content model is %head.misc; combined with a single
     title and an optional base element in any order --&gt;

&lt;!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;))))&gt;

&lt;!ATTLIST head
  %i18n;
  id          ID             #IMPLIED
  profile     %URI;          #IMPLIED
  &gt;

&lt;!-- The title element is not considered part of the flow of text.
       It should be displayed, for example as the page header or
       window title. Exactly one title is required per document.
    --&gt;
&lt;!ELEMENT title (#PCDATA)&gt;
&lt;!ATTLIST title
  %i18n;
  id          ID             #IMPLIED
  &gt;

&lt;!-- document base URI --&gt;

&lt;!ELEMENT base EMPTY&gt;
&lt;!ATTLIST base
  href        %URI;          #REQUIRED
  id          ID             #IMPLIED
  &gt;

&lt;!-- generic metainformation --&gt;
&lt;!ELEMENT meta EMPTY&gt;
&lt;!ATTLIST meta
  %i18n;
  id          ID             #IMPLIED
  http-equiv  CDATA          #IMPLIED
  name        CDATA          #IMPLIED
  content     CDATA          #REQUIRED
  scheme      CDATA          #IMPLIED
  &gt;

&lt;!--
  Relationship values can be used in principle:

   a) for document specific toolbars/menus when used
      with the link element in document head e.g.
        start, contents, previous, next, index, end, help
   b) to link to a separate style sheet (rel="stylesheet")
   c) to make a link to a script (rel="script")
   d) by stylesheets to control how collections of
      html nodes are rendered into printed documents
   e) to make a link to a printable version of this document
      e.g. a PostScript or PDF version (rel="alternate" media="print")
--&gt;

&lt;!ELEMENT link EMPTY&gt;
&lt;!ATTLIST link
  %attrs;
  charset     %Charset;      #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  type        %ContentType;  #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  media       %MediaDesc;    #IMPLIED
  &gt;

&lt;!-- style info, which may include CDATA sections --&gt;
&lt;!ELEMENT style (#PCDATA)&gt;
&lt;!ATTLIST style
  %i18n;
  id          ID             #IMPLIED
  type        %ContentType;  #REQUIRED
  media       %MediaDesc;    #IMPLIED
  title       %Text;         #IMPLIED
  xml:space   (preserve)     #FIXED ''preserve''
  &gt;

&lt;!-- script statements, which may include CDATA sections --&gt;
&lt;!ELEMENT script (#PCDATA)&gt;
&lt;!ATTLIST script
  id          ID             #IMPLIED
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #REQUIRED
  src         %URI;          #IMPLIED
  defer       (defer)        #IMPLIED
  xml:space   (preserve)     #FIXED ''preserve''
  &gt;

&lt;!-- alternate content container for non script-based rendering --&gt;

&lt;!ELEMENT noscript %Block;&gt;
&lt;!ATTLIST noscript
  %attrs;
  &gt;

&lt;!--=================== Document Body ====================================--&gt;

&lt;!ELEMENT body %Block;&gt;
&lt;!ATTLIST body
  %attrs;
  onload          %Script;   #IMPLIED
  onunload        %Script;   #IMPLIED
  &gt;

&lt;!ELEMENT div %Flow;&gt;  &lt;!-- generic language/style container --&gt;
&lt;!ATTLIST div
  %attrs;
  &gt;

&lt;!--=================== Paragraphs =======================================--&gt;

&lt;!ELEMENT p %Inline;&gt;
&lt;!ATTLIST p
  %attrs;
  &gt;

&lt;!--=================== Headings =========================================--&gt;

&lt;!--
  There are six levels of headings from h1 (the most important)
  to h6 (the least important).
--&gt;

&lt;!ELEMENT h1  %Inline;&gt;
&lt;!ATTLIST h1
   %attrs;
   &gt;

&lt;!ELEMENT h2 %Inline;&gt;
&lt;!ATTLIST h2
   %attrs;
   &gt;

&lt;!ELEMENT h3 %Inline;&gt;
&lt;!ATTLIST h3
   %attrs;
   &gt;

&lt;!ELEMENT h4 %Inline;&gt;
&lt;!ATTLIST h4
   %attrs;
   &gt;

&lt;!ELEMENT h5 %Inline;&gt;
&lt;!ATTLIST h5
   %attrs;
   &gt;

&lt;!ELEMENT h6 %Inline;&gt;
&lt;!ATTLIST h6
   %attrs;
   &gt;

&lt;!--=================== Lists ============================================--&gt;

&lt;!-- Unordered list --&gt;

&lt;!ELEMENT ul (li)+&gt;
&lt;!ATTLIST ul
  %attrs;
  &gt;

&lt;!-- Ordered (numbered) list --&gt;

&lt;!ELEMENT ol (li)+&gt;
&lt;!ATTLIST ol
  %attrs;
  &gt;

&lt;!-- list item --&gt;

&lt;!ELEMENT li %Flow;&gt;
&lt;!ATTLIST li
  %attrs;
  &gt;

&lt;!-- definition lists - dt for term, dd for its definition --&gt;

&lt;!ELEMENT dl (dt|dd)+&gt;
&lt;!ATTLIST dl
  %attrs;
  &gt;

&lt;!ELEMENT dt %Inline;&gt;
&lt;!ATTLIST dt
  %attrs;
  &gt;

&lt;!ELEMENT dd %Flow;&gt;
&lt;!ATTLIST dd
  %attrs;
  &gt;

&lt;!--=================== Address ==========================================--&gt;

&lt;!-- information on author --&gt;

&lt;!ELEMENT address %Inline;&gt;
&lt;!ATTLIST address
  %attrs;
  &gt;

&lt;!--=================== Horizontal Rule ==================================--&gt;

&lt;!ELEMENT hr EMPTY&gt;
&lt;!ATTLIST hr
  %attrs;
  &gt;

&lt;!--=================== Preformatted Text ================================--&gt;

&lt;!-- content is %Inline; excluding "img|object|big|small|sub|sup" --&gt;

&lt;!ELEMENT pre %pre.content;&gt;
&lt;!ATTLIST pre
  %attrs;
  xml:space (preserve) #FIXED ''preserve''
  &gt;

&lt;!--=================== Block-like Quotes ================================--&gt;

&lt;!ELEMENT blockquote %Block;&gt;
&lt;!ATTLIST blockquote
  %attrs;
  cite        %URI;          #IMPLIED
  &gt;

&lt;!--=================== Inserted/Deleted Text ============================--&gt;

&lt;!--
  ins/del are allowed in block and inline content, but its
  inappropriate to include block content within an ins element
  occurring in inline content.
--&gt;
&lt;!ELEMENT ins %Flow;&gt;
&lt;!ATTLIST ins
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  &gt;

&lt;!ELEMENT del %Flow;&gt;
&lt;!ATTLIST del
  %attrs;
  cite        %URI;          #IMPLIED
  datetime    %Datetime;     #IMPLIED
  &gt;

&lt;!--================== The Anchor Element ================================--&gt;

&lt;!-- content is %Inline; except that anchors shouldn''t be nested --&gt;

&lt;!ELEMENT a %a.content;&gt;
&lt;!ATTLIST a
  %attrs;
  %focus;
  charset     %Charset;      #IMPLIED
  type        %ContentType;  #IMPLIED
  name        NMTOKEN        #IMPLIED
  href        %URI;          #IMPLIED
  hreflang    %LanguageCode; #IMPLIED
  rel         %LinkTypes;    #IMPLIED
  rev         %LinkTypes;    #IMPLIED
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  &gt;

&lt;!--===================== Inline Elements ================================--&gt;

&lt;!ELEMENT span %Inline;&gt; &lt;!-- generic language/style container --&gt;
&lt;!ATTLIST span
  %attrs;
  &gt;

&lt;!ELEMENT bdo %Inline;&gt;  &lt;!-- I18N BiDi over-ride --&gt;
&lt;!ATTLIST bdo
  %coreattrs;
  %events;
  lang        %LanguageCode; #IMPLIED
  xml:lang    %LanguageCode; #IMPLIED
  dir         (ltr|rtl)      #REQUIRED
  &gt;

&lt;!ELEMENT br EMPTY&gt;   &lt;!-- forced line break --&gt;
&lt;!ATTLIST br
  %coreattrs;
  &gt;

&lt;!ELEMENT em %Inline;&gt;   &lt;!-- emphasis --&gt;
&lt;!ATTLIST em %attrs;&gt;

&lt;!ELEMENT strong %Inline;&gt;   &lt;!-- strong emphasis --&gt;
&lt;!ATTLIST strong %attrs;&gt;

&lt;!ELEMENT dfn %Inline;&gt;   &lt;!-- definitional --&gt;
&lt;!ATTLIST dfn %attrs;&gt;

&lt;!ELEMENT code %Inline;&gt;   &lt;!-- program code --&gt;
&lt;!ATTLIST code %attrs;&gt;

&lt;!ELEMENT samp %Inline;&gt;   &lt;!-- sample --&gt;
&lt;!ATTLIST samp %attrs;&gt;

&lt;!ELEMENT kbd %Inline;&gt;  &lt;!-- something user would type --&gt;
&lt;!ATTLIST kbd %attrs;&gt;

&lt;!ELEMENT var %Inline;&gt;   &lt;!-- variable --&gt;
&lt;!ATTLIST var %attrs;&gt;

&lt;!ELEMENT cite %Inline;&gt;   &lt;!-- citation --&gt;
&lt;!ATTLIST cite %attrs;&gt;

&lt;!ELEMENT abbr %Inline;&gt;   &lt;!-- abbreviation --&gt;
&lt;!ATTLIST abbr %attrs;&gt;

&lt;!ELEMENT acronym %Inline;&gt;   &lt;!-- acronym --&gt;
&lt;!ATTLIST acronym %attrs;&gt;

&lt;!ELEMENT q %Inline;&gt;   &lt;!-- inlined quote --&gt;
&lt;!ATTLIST q
  %attrs;
  cite        %URI;          #IMPLIED
  &gt;

&lt;!ELEMENT sub %Inline;&gt; &lt;!-- subscript --&gt;
&lt;!ATTLIST sub %attrs;&gt;

&lt;!ELEMENT sup %Inline;&gt; &lt;!-- superscript --&gt;
&lt;!ATTLIST sup %attrs;&gt;

&lt;!ELEMENT tt %Inline;&gt;   &lt;!-- fixed pitch font --&gt;
&lt;!ATTLIST tt %attrs;&gt;

&lt;!ELEMENT i %Inline;&gt;   &lt;!-- italic font --&gt;
&lt;!ATTLIST i %attrs;&gt;

&lt;!ELEMENT b %Inline;&gt;   &lt;!-- bold font --&gt;
&lt;!ATTLIST b %attrs;&gt;

&lt;!ELEMENT big %Inline;&gt;   &lt;!-- bigger font --&gt;
&lt;!ATTLIST big %attrs;&gt;

&lt;!ELEMENT small %Inline;&gt;   &lt;!-- smaller font --&gt;
&lt;!ATTLIST small %attrs;&gt;

&lt;!--==================== Object ======================================--&gt;
&lt;!--
  object is used to embed objects as part of HTML pages.
  param elements should precede other content. Parameters
  can also be expressed as attribute/value pairs on the
  object element itself when brevity is desired.
--&gt;

&lt;!ELEMENT object (#PCDATA | param | %block; | form | %inline; | %misc;)*&gt;
&lt;!ATTLIST object
  %attrs;
  declare     (declare)      #IMPLIED
  classid     %URI;          #IMPLIED
  codebase    %URI;          #IMPLIED
  data        %URI;          #IMPLIED
  type        %ContentType;  #IMPLIED
  codetype    %ContentType;  #IMPLIED
  archive     %UriList;      #IMPLIED
  standby     %Text;         #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  name        NMTOKEN        #IMPLIED
  tabindex    %Number;       #IMPLIED
  &gt;

&lt;!--
  param is used to supply a named property value.
  In XML it would seem natural to follow RDF and support an
  abbreviated syntax where the param elements are replaced
  by attribute value pairs on the object start tag.
--&gt;
&lt;!ELEMENT param EMPTY&gt;
&lt;!ATTLIST param
  id          ID             #IMPLIED
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  valuetype   (data|ref|object) "data"
  type        %ContentType;  #IMPLIED
  &gt;

&lt;!--=================== Images ===========================================--&gt;

&lt;!--
   To avoid accessibility problems for people who aren''t
   able to see the image, you should provide a text
   description using the alt and longdesc attributes.
   In addition, avoid the use of server-side image maps.
   Note that in this DTD there is no name attribute. That
   is only available in the transitional and frameset DTD.
--&gt;

&lt;!ELEMENT img EMPTY&gt;
&lt;!ATTLIST img
  %attrs;
  src         %URI;          #REQUIRED
  alt         %Text;         #REQUIRED
  longdesc    %URI;          #IMPLIED
  height      %Length;       #IMPLIED
  width       %Length;       #IMPLIED
  usemap      %URI;          #IMPLIED
  ismap       (ismap)        #IMPLIED
  &gt;

&lt;!-- usemap points to a map element which may be in this document
  or an external document, although the latter is not widely supported --&gt;

&lt;!--================== Client-side image maps ============================--&gt;

&lt;!-- These can be placed in the same document or grouped in a
     separate document although this isn''t yet widely supported --&gt;

&lt;!ELEMENT map ((%block; | form | %misc;)+ | area+)&gt;
&lt;!ATTLIST map
  %i18n;
  %events;
  id          ID             #REQUIRED
  class       CDATA          #IMPLIED
  style       %StyleSheet;   #IMPLIED
  title       %Text;         #IMPLIED
  name        NMTOKEN        #IMPLIED
  &gt;

&lt;!ELEMENT area EMPTY&gt;
&lt;!ATTLIST area
  %attrs;
  %focus;
  shape       %Shape;        "rect"
  coords      %Coords;       #IMPLIED
  href        %URI;          #IMPLIED
  nohref      (nohref)       #IMPLIED
  alt         %Text;         #REQUIRED
  &gt;

&lt;!--================ Forms ===============================================--&gt;
&lt;!ELEMENT form %form.content;&gt;   &lt;!-- forms shouldn''t be nested --&gt;

&lt;!ATTLIST form
  %attrs;
  action      %URI;          #REQUIRED
  method      (get|post)     "get"
  enctype     %ContentType;  "application/x-www-form-urlencoded"
  onsubmit    %Script;       #IMPLIED
  onreset     %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  accept-charset %Charsets;  #IMPLIED
  &gt;

&lt;!--
  Each label must not contain more than ONE field
  Label elements shouldn''t be nested.
--&gt;
&lt;!ELEMENT label %Inline;&gt;
&lt;!ATTLIST label
  %attrs;
  for         IDREF          #IMPLIED
  accesskey   %Character;    #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  &gt;

&lt;!ENTITY % InputType
  "(text | password | checkbox |
    radio | submit | reset |
    file | hidden | image | button)"
   &gt;

&lt;!-- the name attribute is required for all but submit &amp; reset --&gt;

&lt;!ELEMENT input EMPTY&gt;     &lt;!-- form control --&gt;
&lt;!ATTLIST input
  %attrs;
  %focus;
  type        %InputType;    "text"
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  checked     (checked)      #IMPLIED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  size        CDATA          #IMPLIED
  maxlength   %Number;       #IMPLIED
  src         %URI;          #IMPLIED
  alt         CDATA          #IMPLIED
  usemap      %URI;          #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  accept      %ContentTypes; #IMPLIED
  &gt;

&lt;!ELEMENT select (optgroup|option)+&gt;  &lt;!-- option selector --&gt;
&lt;!ATTLIST select
  %attrs;
  name        CDATA          #IMPLIED
  size        %Number;       #IMPLIED
  multiple    (multiple)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  tabindex    %Number;       #IMPLIED
  onfocus     %Script;       #IMPLIED
  onblur      %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  &gt;

&lt;!ELEMENT optgroup (option)+&gt;   &lt;!-- option group --&gt;
&lt;!ATTLIST optgroup
  %attrs;
  disabled    (disabled)     #IMPLIED
  label       %Text;         #REQUIRED
  &gt;

&lt;!ELEMENT option (#PCDATA)&gt;     &lt;!-- selectable choice --&gt;
&lt;!ATTLIST option
  %attrs;
  selected    (selected)     #IMPLIED
  disabled    (disabled)     #IMPLIED
  label       %Text;         #IMPLIED
  value       CDATA          #IMPLIED
  &gt;

&lt;!ELEMENT textarea (#PCDATA)&gt;     &lt;!-- multi-line text field --&gt;
&lt;!ATTLIST textarea
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
  rows        %Number;       #REQUIRED
  cols        %Number;       #REQUIRED
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  &gt;

&lt;!--
  The fieldset element is used to group form fields.
  Only one legend element should occur in the content
  and if present should only be preceded by whitespace.
--&gt;
&lt;!ELEMENT fieldset (#PCDATA | legend | %block; | form | %inline; | %misc;)*&gt;
&lt;!ATTLIST fieldset
  %attrs;
  &gt;

&lt;!ELEMENT legend %Inline;&gt;     &lt;!-- fieldset label --&gt;
&lt;!ATTLIST legend
  %attrs;
  accesskey   %Character;    #IMPLIED
  &gt;

&lt;!--
 Content is %Flow; excluding a, form and form controls
--&gt;
&lt;!ELEMENT button %button.content;&gt;  &lt;!-- push button --&gt;
&lt;!ATTLIST button
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
  value       CDATA          #IMPLIED
  type        (button|submit|reset) "submit"
  disabled    (disabled)     #IMPLIED
  &gt;

&lt;!--======================= Tables =======================================--&gt;

&lt;!-- Derived from IETF HTML table standard, see [RFC1942] --&gt;

&lt;!--
 The border attribute sets the thickness of the frame around the
 table. The default units are screen pixels.

 The frame attribute specifies which parts of the frame around
 the table should be rendered. The values are not the same as
 CALS to avoid a name clash with the valign attribute.
--&gt;
&lt;!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)"&gt;

&lt;!--
 The rules attribute defines which rules to draw between cells:

 If rules is absent then assume:
     "none" if border is absent or border="0" otherwise "all"
--&gt;

&lt;!ENTITY % TRules "(none | groups | rows | cols | all)"&gt;
 
&lt;!-- horizontal alignment attributes for cell contents

  char        alignment char, e.g. char='':''
  charoff     offset for alignment char
--&gt;
&lt;!ENTITY % cellhalign
  "align      (left|center|right|justify|char) #IMPLIED
   char       %Character;    #IMPLIED
   charoff    %Length;       #IMPLIED"
  &gt;

&lt;!-- vertical alignment attributes for cell contents --&gt;
&lt;!ENTITY % cellvalign
  "valign     (top|middle|bottom|baseline) #IMPLIED"
  &gt;

&lt;!ELEMENT table
     (caption?, (col*|colgroup*), thead?, tfoot?, (tbody+|tr+))&gt;
&lt;!ELEMENT caption  %Inline;&gt;
&lt;!ELEMENT thead    (tr)+&gt;
&lt;!ELEMENT tfoot    (tr)+&gt;
&lt;!ELEMENT tbody    (tr)+&gt;
&lt;!ELEMENT colgroup (col)*&gt;
&lt;!ELEMENT col      EMPTY&gt;
&lt;!ELEMENT tr       (th|td)+&gt;
&lt;!ELEMENT th       %Flow;&gt;
&lt;!ELEMENT td       %Flow;&gt;

&lt;!ATTLIST table
  %attrs;
  summary     %Text;         #IMPLIED
  width       %Length;       #IMPLIED
  border      %Pixels;       #IMPLIED
  frame       %TFrame;       #IMPLIED
  rules       %TRules;       #IMPLIED
  cellspacing %Length;       #IMPLIED
  cellpadding %Length;       #IMPLIED
  &gt;

&lt;!ATTLIST caption
  %attrs;
  &gt;

&lt;!--
colgroup groups a set of col elements. It allows you to group
several semantically related columns together.
--&gt;
&lt;!ATTLIST colgroup
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!--
 col elements define the alignment properties for cells in
 one or more columns.

 The width attribute specifies the width of the columns, e.g.

     width=64        width in screen pixels
     width=0.5*      relative width of 0.5

 The span attribute causes the attributes of one
 col element to apply to more than one column.
--&gt;
&lt;!ATTLIST col
  %attrs;
  span        %Number;       "1"
  width       %MultiLength;  #IMPLIED
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!--
    Use thead to duplicate headers when breaking table
    across page boundaries, or for static headers when
    tbody sections are rendered in scrolling panel.

    Use tfoot to duplicate footers when breaking table
    across page boundaries, or for static footers when
    tbody sections are rendered in scrolling panel.

    Use multiple tbody sections when rules are needed
    between groups of table rows.
--&gt;
&lt;!ATTLIST thead
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tfoot
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tbody
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST tr
  %attrs;
  %cellhalign;
  %cellvalign;
  &gt;


&lt;!-- Scope is simpler than headers attribute for common tables --&gt;
&lt;!ENTITY % Scope "(row|col|rowgroup|colgroup)"&gt;

&lt;!-- th is for headers, td for data and for cells acting as both --&gt;

&lt;!ATTLIST th
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  &gt;

&lt;!ATTLIST td
  %attrs;
  abbr        %Text;         #IMPLIED
  axis        CDATA          #IMPLIED
  headers     IDREFS         #IMPLIED
  scope       %Scope;        #IMPLIED
  rowspan     %Number;       "1"
  colspan     %Number;       "1"
  %cellhalign;
  %cellvalign;
  &gt;
'</body>
</methods>

<methods>
<class-id>Reg.XMLBroken</class-id> <category>running</category>

<body package="XMLBroken" selector="testParse">testParse
        | resolver parser |
        resolver := [:publicID :systemID | publicID = '-//W3C//DTD XHTML 1.0 Strict//EN'
                ifTrue: [self xhtml1StrictDtd readStream]
                ifFalse: [XML.ResolveEmptyResource]].
        (parser := XML.XMLParser new) handlers: XML.NullSAXDriver new; entityResolver: (XML.PluggableEntityResolver withBlock: resolver).
        parser on: self sampleResponse readStream; scanDocument</body>
</methods>

</st-source>

<?xml version="1.0"?>

<st-source>
<time-stamp>From VisualWorks® NonCommercial, 7.6 of March 3, 2008 on April 23, 2009 at 11:44:35 pm</time-stamp>


<methods>
<class-id>XML.XMLParser</class-id> <category>DTD processing</category>

<body package="XML" selector="systemLiteral">systemLiteral

        | lit |
        lit := self quotedString.
        (lit includes: $#)
                ifTrue: [self malformed: #noFragmentsInSystemIDs &lt;&lt; #xml &gt;&gt; 'Fragments in System IDs are not supported'].
        ^lit isEmpty
                ifTrue: [lit]
                ifFalse: [(self latestURI asURI resolvePath: lit) asString]</body>
</methods>

</st-source>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

[vwnc] VW - MySQL - locak tables

Aby Mathew
Doesn't the SQL "lock tables tablename write" work when given from VW to
MySQL..?

It works good from the MySQL prompt but not when sending from within VW.

Anybody know something about this.

Thanks in advance..

Aby



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc