chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] ssax/sxml and lowdown transforms


From: Markus Espenhain
Subject: Re: [Chicken-users] ssax/sxml and lowdown transforms
Date: Sat, 6 Jun 2015 18:41:26 +0200

> On 06 Jun 2015, at 18:12, Markus Espenhain <address@hidden> wrote:
> 
> Hi,
> 
> I’m still new to chicken and scheme so please bear with me :)
> 
> I had some trouble to mange some sxml transforms
> 
> The first - what would a transform rule look like to transform
> 
>    (foo ((bar) (baz)))
> 
> into
> 
>    ((bar) (baz))

I noticed that pre-post-order-splice/pre-post-order-splice* maps (((bar) 
(baz))) into  ((bar) (bar)) … is this the only way (or the correct way) to get 
the desired result?

> 
> And the second - maybe more lowdown related …
> 
> lowdown returns all spaces in a extra spaces list - for example:
> 
>    (paragraph "this" (#\space) "is" (#\space #\space) "text")
> 
> How would one match these 'spaces' nodes and transform them into a single 
> space instead
> 
>    (#\space) -> " "
>    (#\space #\space) -> " "
> 
> or alternatively
> 
>    (#\space \#space) -> "  "
> 
> 
> thanks
> Markus
> 
> ps @the-lowdown-authors - It would be cool if a lowdown 'user' could register 
> custom inline hooks (and also block hooks!). I saw the lowdown-extra, which 
> creates two inline hooks but the inline-hook parameter is not exported … or 
> at least I did not know how to import + call inline-hook :)
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]