[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: mulitple parameters [was: Special characters and XML-to-WML problem]
Subject: RE: mulitple parameters [was: Special characters and XML-to-WML problem] From: Jeni Tennison <jeni.tennison@xxxxxxxxxxxxxxxx> Date: Fri, 11 Aug 2000 11:52:54 +0100 |
Stéphane, >There a differents possibilies >1) ><A HREF >href><xsl:attribute>http://myserver.com:8001/addItemToOrder?item_name=CPU&am >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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: mulitple parameters [was: Spe, Stéphane Mamdy | Thread | RE: mulitple parameters [was: Spe, Stéphane Mamdy |
Re: mulitple parameters [was: Spe, Jeni Tennison | Date | Re: Search and Replace in XSLT, Jeni Tennison |
Month |
Keywords