Re: [PHP-XML-DEV] Dynamic attributes from XSL (Sterling you might help)

[email protected] ("Alexandru COSTIN")
Newsgroups php.xml.dev
Message-ID <[email protected]>
    Hi,

> This should do it:
> <a href="index.php?code={id}">Link</a>
> If you want to refer to an attribute instead of an element, use
> something like this:
> <a href="index.php?code={@id}">foo</a>
    I feel pretty stupid :)

> IIRC, you can use any XPATH expression inside those curly braces.
    This is a very good news.

> See W3C's XSLT spec for more. Okay, I know, W3C's documents are
> unreadble, but once you get used to it you'll find a massive amount of
> useful information.
    I've did this for SOAP, but for XSL I've learned it from a guru in our
team, but it seems he was not up to date with all the possible techniques.
    Anyway, thanks for the tip.

                    Alexandru
>
> Sander
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.