Subject: RE: mulitple parameters [was: Special characters and XML-to-WML problem] From: Stéphane Mamdy <smamdy@xxxxxxxxxxxxx> Date: Fri, 11 Aug 2000 15:48:46 +0100 |
Yes, you're right, of course. It seems so evident now. Sorry for the mistake. Stéphane Mamdy. -----Message d'origine----- De : owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]De la part de Jeni Tennison Envoyé : vendredi 11 août 2000 11:53 À : Stéphane Mamdy Cc : xsl-list@xxxxxxxxxxxxxxxx Objet : RE: mulitple parameters [was: Special characters and XML-to-WML problem] Stéphane, >There a differents possibilies >1) ><A HREF >href><xsl:attribute>http://myserver.com:8001/addItemToOrder?item_name=CPU&a m >p;order_id=0&user_name=jdoe</xsl:attribute>...</a> > >1') ><A >HREF="http://myserver.com:8001/addItemToOrder?item_name=CPU&order_id=0&user _ >name=jdoe" target> ><xsl:attribute>#target</xsl:attribute>...</a> It looks like you're a little confused about how xsl:attribute works. xsl:attribute defines an attribute on the surrounding element (in this case the 'a' element) with a name given by its 'name' attribute and a value given by its content, e.g: <a> <xsl:attribute name="href">http://myserver.com:8001/addItemToOrder?item_name=CPU&order_ id=0&user_name=jdoe</xsl:attribute> ... </a> or <a href="http://myserver.com:8001/addItemToOrder?item_name=CPU&order_id=0&a mp;user_name=jdoe"> <xsl:attribute name="target">#target</xsl:attribute> ... </a> You have to specify the name of the attribute within the xsl:attribute. Remember that XSLT is always well-formed XML: you can't specify the name of an attribute within a start-tag without giving it a value as well - <a href>, for example, is not well-formed. I hope that makes things a little clearer, Jeni Dr Jeni Tennison Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE Telephone 0115 9061301 ? Fax 0115 9061304 ? Email jeni.tennison@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: mulitple parameters [was: Spe, Jeni Tennison | Thread | Special characters and XML-to-WML p, keshlam |
RE: Search and Replace in XSLT, Jeni Tennison | Date | RE: How to make the user selecting , Stéphane Mamdy |
Month |