I am not sure because XML changed a lot, but this method

entityURIFromRelative: aRelativeUri andBase: aBaseUri
    ^ ((self httpClient beginsWithSupportedURLProtocol: aRelativeUri)
        ifTrue: [self httpClient]
        ifFalse: [self fileClient])
            combineRelative: aRelativeUri
            withBase: aBaseUri

produces the invalid address: 'http:/www.musicxml.org/dtds/common.mod'

where perhaps should be:

entityURIFromRelative: aRelativeUri andBase: aBaseUri
    ^ ((self httpClient beginsWithSupportedURLProtocol: aBaseUri)
        ifTrue: [self httpClient]
        ifFalse: [self fileClient])
            combineRelative: aRelativeUri
            withBase: aBaseUri

but then you get XMLFileIOException....
maybe Monty can check?

Hernán




2013/12/25 Stéphane Ducasse <stephane.duca...@inria.fr>

> Hi Hernan
>
> how did you reproduce the bug?
> Because it would be nice to fix it.
>
> Stef
>
> On 24 Dec 2013, at 18:48, Hernán Morales Durand <hernan.mora...@gmail.com>
> wrote:
>
> I have tried in Pharo 2.0 configurations from Config Browser
> (ConfigurationOfXMLParser-StephaneDucasse.16) and latest from
> http://www.smalltalkhub.com/mc/PharoExtras/XMLParser/main(ConfigurationOfXMLParser-monty.37)
>  and both have this bug.
>
> Hernán
>
>
> 2013/12/24 Stéphane Ducasse <stephane.duca...@inria.fr>
>
>> Hi Satoshi
>>
>> Did you try with the latest configuration of XMLParser?
>> Because I do not know what it is in Moose.
>> Stef
>>
>> On 23 Dec 2013, at 18:26, NISHIHARA Satoshi <goo...@gmail.com> wrote:
>>
>> > Hello
>> >
>> > using: Pharo3.0 Latest update: #30659 (it occurs same error to
>> > Pharo2.0 Latest update: #20628)
>> > (Moose 4.9 with XML-Parser (DamienCassou.143) has no_err)
>> >
>> > 1. load XMLParser (StephaneDucasse.16) from Configuration browser
>> > 2. select and inspect it below:
>> > ^  XMLDOMParser parse: '<?xml version="1.0" encoding="UTF-8"
>> standalone="no"?>
>> > <!DOCTYPE score-partwise PUBLIC
>> >    "-//Recordare//DTD MusicXML 3.0 Partwise//EN"
>> >    "http://www.musicxml.org/dtds/partwise.dtd";>
>> > <score-partwise version="3.0">
>> >  <part-list>
>> >    <score-part id="P1">
>> >      <part-name>Music</part-name>
>> >    </score-part>
>> >  </part-list>
>> >  <part id="P1">
>> >    <measure number="1">
>> >      <attributes>
>> >        <divisions>1</divisions>
>> >        <key>
>> >          <fifths>0</fifths>
>> >        </key>
>> >        <time>
>> >          <beats>4</beats>
>> >          <beat-type>4</beat-type>
>> >        </time>
>> >        <clef>
>> >          <sign>G</sign>
>> >          <line>2</line>
>> >        </clef>
>> >      </attributes>
>> >      <note>
>> >        <pitch>
>> >          <step>C</step>
>> >          <octave>4</octave>
>> >        </pitch>
>> >        <duration>4</duration>
>> >        <type>whole</type>
>> >      </note>
>> >    </measure>
>> >  </part>
>> > </score-partwise>
>> > ' readStream.
>> >
>> > 3. and get DNU: SmallInteger>>asciiValue
>> >
>> > 'case of XMLZincClient>>#get:
>> > 'http://www.musicxml.com/dtds/partwise.dtd' timeout: ... onError: ...
>> > returns binaryStream?
>> >
>> >
>> > --
>> > --
>> > "NISHIHARA Satoshi"
>> > [:goonsh :nsh | ^ nishis perform: goonsh with: nsh]
>> > <PharoDebug.log>
>>
>>
>>
>
>

Reply via email to