OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Passing an external value to an xml file

[ Lists Home | Date Index | Thread Index ]

Hi,
         I have an XML file(employees.xml) which holds the information of 
all the employees in a company. I have created an xsl file(emp.xsl) too, 
which is used to transform this xml file. I have included '<?xml-stylesheet 
type="text/xsl" href="emp.xsl"?>' in the xml file. A link in an HTML page 
points to this xml file. When you click on this link the details 'of a 
particular employee' have to be displayed in the browser. So the href 
attribute of the <a> tag will be 'employees.xml?empid=4". The xml file need 
to get this 'empid' and pass it to the xsl file, so that I can use something 
like :

<xsl:template match="/">
	<xsl:apply-templates select="//employee[employeeid=...]"/>
</xsl:template>

in the xsl file.

My files reside in an NT Server running IIS, but I am asked not to use ASP 
or any other server side scripting techniques. Can I get the work done with 
the help of just the xml and xsl files. Someone suggested <xsl:param> but I 
don't know how it can be implemented. Even if it can be successfully 
implemented, I guess it won't work with xml version 1.0. But still can 
anybody show me how to use xsl:param to tackle the problem? Or is there some 
other way to solve the issue? I will be extremely grateful if somebody can 
show me the way.

Thanks.
Anoop A.V.


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS