[
Lists Home |
Date Index |
Thread Index
]
- From: "Brandt Dainow" <bd@internet-etc.com>
- To: "'Kieran O'Shea'" <ksh@dretec.com>, <XML-L@listserv.heanet.ie>, <xml-dev@ic.ac.uk>
- Date: Fri, 21 Jan 2000 17:13:48 -0000
You're putting XSL syntax inside HTML. HTML has no XSL functionality. What
you want to do is make HTMl part of your XSL output. Try this something
like this
<template match = "someElement">
<a href=http://www.bancal.com/servlet/<xsl:value-of select="@id"/>>
</template>
Thus you are wrapping the XSL values with HTML at output level
Brandt Dainow
bd@internet-etc.com
Internet Etc Ltd
http://www.internet-etc.com
>-----Original Message-----
>From: owner-xml-dev@ic.ac.uk [mailto:owner-xml-dev@ic.ac.uk]On
>Behalf Of
>Kieran O'Shea
>Sent: Friday, January 21, 2000 4:02 PM
>To: 'XML-L@listserv.heanet.ie'; 'xml-dev@ic.ac.uk'
>Subject: Problem with substituting XSL @ variable into a hyper link
>
>
>Hi,
> I am trying to display an attribute from an XML
>document in a HREF
><A> tag
>in XSL. The IE5 processor refuses to substitute in the
>variable value and
>instead outputs the variable name
>instead.
>
> (1) <a href="http://www.bancal.com/servlet/{@id}">
>
> The following didn't work either for the <ADD> template
>
> (2) <a href="#{@id}"/> Tag 1
>
> The following XSL command substitutes it in correctly.
>
> (3) <xsl:value-of select="@id"/>
>
>
>Could anybody tell me if there is a way to substitute in the
>value of the
>variable in example (1) and (2) please.
>
>
>
>This full code is below.
>
>XML
>
> <Add id="A1">
> Add A User
> </Add>
> <Delete id="D1">
> Delete A User
> </Delete>
>
>XSL
>
> <xsl:template match="Add">
> <a href="#{@id}"/> Tag 1
>
> </xsl:template>
> <xsl:template match="Delete">
> <a href="http://www.bancal.com/servlet/{@id}">
> <xsl:value-of select="@id"/></a>
>
>
>
>
>
>xml-dev: A list for W3C XML Developers. To post,
mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN
981-02-3594-1
Unsubscribe by posting to majordom@ic.ac.uk the message
unsubscribe xml-dev (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address
Please note: New list subscriptions now closed in preparation for transfer
to OASIS.
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Unsubscribe by posting to majordom@ic.ac.uk the message
unsubscribe xml-dev (or)
unsubscribe xml-dev your-subscribed-email@your-subscribed-address
Please note: New list subscriptions now closed in preparation for transfer to OASIS.
|