[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Using URL params as xml tag attributes

Subject: RE: Using URL params as xml tag attributes
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 31 Mar 2004 08:51:52 +0300
url params
Hi,

> I would like to use a URL parameter in my Cocoon-XSLT as an 
> attribute in a
> XML tag.
> (http://www.yourdomain.com:8080/cocoon/vc/Hello.xml?djUser.id=
> 1&djUser.first
> Name=Mike)
> 
> You will notice that I use the djUser.firstName successfully 
> to mention the
> person's name, but can not use djUser.id as a value in a XML 
> tag attribute
> (VoiceXML var tag.)
> 
> It returns <var expr="" name="djUser.id" /> I need it to return <var
> expr="1" name="djUser.id" />  So, how do I fix this?
> 
> 
> Code:
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
> <xsl:param name="djUser.id"/>
> <xsl:param name="djUser.firstName"/>
> 
> 
> <xsl:template match="user">
> 
> <vxml version="2.0">
> 
>     <var name="djUser.id" expr="{@djUser.id}"/>

use $djUser.id in the AVT if it's the parameter value you're after.

Cheers,

Jarno -  Angel Theory: Transmission

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.