[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: mulitple parameters [was: Special characters and XML-t
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|