ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: XSLT question (passing parameters)
by Stephane Roux other posts by this author
Nov 19 2005 6:13AM messages near this date
view in the new Beta List Site
Re: XSLT question (passing parameters) | Re: XSLT question (passing parameters)
& XSLT In <437F1A38.4060009@[...].net> , David Craig wrote:

>  <?xml version="1.0" encoding="UTF-8"?>
>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>  version="1.0">
>  <xsl:param name="x"/>
>  
>  <xsl:template match="/">
>              <xsl:text>|</xsl:text><xsl:value-of select="$x"
>  /><xsl:text>|</xsl:text>
>      </xsl:template>
>  </xsl:stylesheet>
>  
>  I would expect to get "|valueofx|" but instead I get "||"

How do you expect the processor to guess the value of x ?

Try adding a select to your <xsl:param> 


-- 
|":._.:"| http://habett.com/
|  (=)  | http://habett.org/
|.(/'\).| Underneath there is the light

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
David Craig
Lars Haugseth
A. Pagaltzis
Stephane Roux
A. Pagaltzis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved