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

RE:passing parameters to xslt from an asp page

Subject: RE:passing parameters to xslt from an asp page
From: Swamy Kanakala <swamyk@xxxxxxxxxxxxx>
Date: Tue, 3 Oct 2000 10:05:22 -0700
passing parameters to xslt
Hi,
     Could you guys pl give me a suggestion for this problem?

I am using this xml data file
	<?xml version="1.0"?>
		<searchdoc>
		  <company type="specialist">
			<name> company name </name>
			<description>company information
			</description>
			<geography> South America</geography>
			<link>  www.companyurl.com </link>
			<products>
				<product>  Exchange Server </product>
				<product>   IIS(Web)</product>
				<product>   Kerberos </product>
				<product>   PKI and Certificates </product>
				<product>   SQL Server </product>
				<product>   SSL</product>
				<product>   VPNs</product>
				<product>   Windows NT</product>
				<product> Windows 2000</product>
			</products>
			<specialities>
				<speciality>	Auditing</speciality>
				<speciality>	Design and
Planning</speciality>
				<speciality>	Forensics </speciality>
				<speciality>	Implementation</speciality>
				<speciality>	Policy</speciality>
				<speciality>	System
Hardening</speciality>
			</specialities>
			<segments>
				<segment> Large Business	</segment>
				<segment> Government	</segment>
			</segments>
		  </company>
	</xml>
This data file is for creating search page.Users should be able to search
for company details by selecting any or all or any combination of these 4
fields
'product','speciality','segment','geography' . For that I am using this
xpath 

xPath = "/searchdoc/company[./products[$any$ product " & product & "] &&
./specialities[$any$ speciality " & speciality & "] && ./segments[$any$
segment " & segment & "] && ./geography" & geography & "]"

Using this xpath in ASP I am able to pass the parameters and get the results
comfortably , but I need to sort out the list based on the 'type' attribute
for company.(ie I have to display all the partners in the beginning,all
specialists next and all members third).So I need to use XSLT but I am not
able to pass search parameters from that asp page to xslt and sorting  at
the same time.I am using msxml parser 2.6.

Thanks in advance,
Swamy







-----Original Message-----
From: Kay Michael [mailto:Michael.Kay@xxxxxxx]
Sent: Monday, October 02, 2000 2:14 AM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Subject: RE: Output is incorrect...


> I am writing a very simple application that converts XML  
> into HTML using an
> XSL sheet  However, I am getting confusing output that I just 
> do not exepect to see.  

> <xsl:template match="cat[@id=$id]">

Match patterns used in xsl:template are not allowed to contain variable
references, so a conformant processor should reject this. 

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.