[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

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
dr jeni tennison
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&amp;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&amp;order_
id=0&amp;user_name=jdoe</xsl:attribute>
  ...
</a>

or

<a
href="http://myserver.com:8001/addItemToOrder?item_name=CPU&amp;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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.