This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:passing parameters to xslt from an asp page
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>, "'Michael dot Kay at icl dot com'" <Michael dot Kay at icl dot com>
- Subject: RE:passing parameters to xslt from an asp page
- From: Swamy Kanakala <swamyk at microsoft dot com>
- Date: Tue, 3 Oct 2000 10:05:22 -0700
- Reply-To: xsl-list at mulberrytech dot com
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@icl.com]
Sent: Monday, October 02, 2000 2:14 AM
To: 'xsl-list@mulberrytech.com'
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