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 url query string to xsl

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Using this url and the following xml and xsl file I get 9999999 as the passed parameter. Why isn't 123 being passed?

TIA

clark.xml file
<?xml version=&quot;1.0&quot;?>

<!-- File Name: clark.xml -->

<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;clark.xsl&quot;?>

<nohead xmlns:sql='urn:schemas-microsoft-com:xml-sql'>

<sql:header>
<sql:param name='projectid'>1
</sql:param>
</sql:header>

<nodata>
clark
</nodata>

</nohead>

clark.xsl file
<?xml version='1.0'?>

<!-- File Name: clark.xsl -->

<xsl:stylesheet xmlns:xsl=&quot; version=&quot;1.0&quot;>

<xsl:eek:utput method=&quot;html&quot;/>

<xsl:template match='/'>

<xsl:param name=&quot;projectid&quot;>9999999999</xsl:param>


<HTML>
<BODY>

<FORM>
<xsl:text>Clark Test: </xsl:text>

<xsl:value-of select=&quot;$projectid&quot;/>

<BR />
<BR />
<BR />

</FORM>
</BODY>
</HTML>
</xsl:template>
</xsl:stylesheet>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top