Hi Matt,

Thanks for the ideas.

xml->sxml in Guile has a trim-whitespace option, but I don't know if it
changes behavior for whitespace-only nodes.

I was (am?) hoping to find a way to do the described customization in
chicken without having to dive into the ssax code, since I imagine that
would break a lot of other things (differences between the egg and the
original?).

Nathaniel


On Thu, May 21, 2015 at 5:50 PM, Matt Gushee <[email protected]> wrote:

> Hi, Nathaniel--
>
> Have you looked at the ssax source code? It looks like it would be quite
> easy to make the change you need (though I haven't tried it). Of course,
> that doesn't help if you are trying to distribute an egg to the public that
> depends on ssax.
>
> Also, I see from a comment in SSAX.scm that the authors are aware that the
> whitespace-stripping behavior is non-conformant. Personally, I think it is
> a poor choice on their part (or at least, as someone suggested in the
> discussion you referenced, it should be easy to modify that behavior), but
> I suppose they have their reasons.
>
> --
> Matt
>
> On Thu, May 21, 2015 at 8:35 AM, Nathaniel Rudavsky-Brody <
> [email protected]> wrote:
>
>> Hello,
>>
>> When using ssax:xml->sxml, I've been having the same problem with "lost"
>> whitespace as is described here:
>> http://sourceforge.net/p/ssax/mailman/message/28005086/
>>
>> However, I can't get the solution given there to work:
>>
>> (define ssax:reverse-collect-str-drop-ws ssax:reverse-collect-str)
>>
>>
>> Is this possible in Chicken? Or is there another way to redefine
>> xml->sxml without taking everything apart?
>>
>> Many thanks,
>>
>> Nathaniel
>>
>> _______________________________________________
>> Chicken-users mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/chicken-users
>>
>>
>
> _______________________________________________
> Chicken-users mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/chicken-users
>
>


-- 


Caractères mobiles
Livre numérique, papier et web
http://studio.cm
Tél +32 (0) 2 213 86 45
Gsm +32 (0) 485 136 458
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to