Re: Dynamic attributes from XSL (Sterling you might help)

From: Date: Sat, 24 May 2003 22:45:45 +0000
Subject: Re: Dynamic attributes from XSL (Sterling you might help)
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-119@lists.php.net to get a copy of this message
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

« previous php.xml.dev (#119) next »