Hi,

> >\def\Url[#1]#2{Href:#1 / text:#2}
> >\defineXMLargument[url]{\expanded\Url[\XMLpar{url}{href}{DEFAULT}]}
> \expanded{\somecommand stuff to expand}
> so, expanded takes an argument! and the first thing in there is not
> expanded, you forgot the {}

%This should be ok, I think
\def\Url[#1]#2{Href:#1 / text:#2}

% Now I have \expanded{\Url} it should work, shouldn't it?
\defineXMLargument[url]\expanded{\Url[\XMLpar{url}{href}{DEFAULT}]}

But I still get:
  Href:DEFAULT / text:ONE Href:foo / text:TWO Href:foo / text:TREE
                              --- should be TREE---^^^
using
  <url>ONE</url> <url href="foo">TWO</url> <url>TREE</url>

Tobias
-- 
This above all: To thine own self be true / And it must follow as
the night the day / Thou canst not then be false to any man.

Reply via email to