This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AW: Passing XML in parameter for HREF in <xsl:attribute>


You might want to try the following:

<a>
	<xsl:attribute name="href">
		myservlet?request=<xsl:value-of select="REQUEST/@id"/>
		<xsl:value-of select="REQUEST/COMMAND/@id"/>
	</xsl:attribute>
	LINKTEXT
</a>

Oh..and hello to everyoneone on the list, I am new here.

-----Ursprüngliche Nachricht-----
Von: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Im Auftrag von
Peter.FLYNN@syntegra.bt.co.uk
Gesendet: Donnerstag, 29. März 2001 12:10
An: XSL-List@lists.mulberrytech.com
Betreff: [xsl] Passing XML in parameter for HREF in <xsl:attribute>


If I had some XML as defined.

<REQUEST id="12">
   <COMMAND id="something"/>
</REQUEST>

I'm wanting to send simple XML via the URL in the HREF.
e.g.

<A HREF="myservlet?request=<REQUEST id="12"><COMMAND
id="something"/></REQUEST>"></A>

I've tried various techniques (using &quot; etc) and the URL just isn't
giving me the right output.  To further add to the confusion, things such as
the id and commands are retrieved from value-of.

Has anyone else successfully passed XML via a parameter on the URL?  Is it
an unusual thing to do, as I've seen very little details on the Internet
about this.

Regards,
Peter


****************************************************************************
**

Check us out at http://www.syntegra.com

***********************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]