Good stuff for programming geeks
[ start | index | login or register ]
start > comment-PXSL Ask-a-Question-4

Comment-PXSL Ask-a-Question-4 commented PXSL Ask-a-Question

Created by invisible. Last edited by invisible 2434 days ago. Viewed 952 times. #1
[edit] [rdf]
labels
attachments
Tom,

PXSL is very very well done. Quite aside from the fact that XSLT is finally somewhat readable, the fact that you've added a serious macro system means that some serious scripting of XML can occur. I'm very impressed. So far I've been able to do everything I try to do -- except one thing.

To wit: I would like to have a macro such that:

,command c a1 a2 a3

produces

<a href="c?a1=,a1&a2=,a2&a3=a3">,BODY</a>

In other words I would like to have macro parameters appear in an attribute

However I can't find a way to do it. The '-attribute=' syntax binds too tightly, and there's nothing I can pass to -href= that doesn't instantly get treated as a single string. The closest I've gotten is:

,command c a1 a2 a3 = a -href=<( ,command <<?a1=>> a1 <<&a2=>> a2 <<&a3=>> a3 )>

which for ',command -a1=s1 -a2=s2 -a3=s3' at least produces '<a href="command">' But that's it. Can't get past the first string.

I imagine the current implementation cannot do what I'm trying to do. But do you see the utility of it?

Thanks for any help. And thanks muchly for a very nice tool.

15 comments (by Chris, ucblockhead, invisible, tmoertel) | post comment
community.moertel.com | Copyright © 2003–07 Moertel Consulting