Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing a parameter via url to xsl

Status
Not open for further replies.

mindx

Technical User
May 8, 2002
2
CH
Hi
I got a problem with passing a parameter via url to a xsl!
This is my XSL:

<xsl:stylesheet xmlns:xsl=&quot; version = &quot;1.0&quot;>
<xsl:param name=&quot;lang&quot;>it</xsl:param>

<xsl:template match=&quot;/&quot;>
<xsl:value-of select=&quot;$lang&quot;/>
</xsl:template>

</xsl:stylesheet>

And this is my XML:

<!-- edited with XML Spy v3.5 -->
<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;url.xsl&quot;?>
<ueb>
</ueb>

now i wanna pass a the parameter $lang like this: myXML.xml?lang=en and write it to the browser!
But when i write the $lang it write always the default Value (it)!?!?
Can anybody tell me why???

Thanks Dani
 
hi dani, i have basicly kind of same problem. if you are working with cocoon 1.8, i could send you a file, which should work ok. if its cocoon 2.0 you are working with, unfortunatly i dont have a clou.

anyway, if you are interested in those files, send email to xml@boessem.de, to send those files to your email adress.

[afro]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top