This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re: XSL-List Digest V3 #744
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Re: XSL-List Digest V3 #744
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Sun, 6 May 2001 22:42:59 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
http://www.bayes.co.uk/xml/index.xml?/xml/tutorial/filtering/filter.xml
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Carlton Noles
>Sent: 06 May 2001 21:57
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] Re: XSL-List Digest V3 #744
>
>
>OK I see what's what now (sorry sometime's it takes a
>minit for the light bulb to go on). However what I
>really want to do os use the xsl:choose as a filter
>and set the filter at runtime.
>
>for my addressbook analogy paging would work do
>display one contact per 'page' but what about more
>complicated filtering?
>
>Carlton
>> ------------------------------
>>
>> Date: Sat, 5 May 2001 08:48:55 +0100
>> From: "Chris Bayes" <Chris@Bayes.co.uk>
>> Subject: RE: [xsl] Re: XSL-List Digest V3 #731
>>
>> Carlton,
>> Your transform knows nothing about the Request
>> object *nor* does IE the
>> Request object is a serverside thing.
>> Again *look* at
>>
>http://www.bayes.co.uk/xml/index.xml?/xml/tutorial/paging/paging.xml
>> and you
>> will see you do not need to do this.
>> But if you need to do this as the result of a post
>> for some bizarre reason
>> then create and add a request object to the
>> processor.
>>
>> var qs = document.location.search;
>> var Reqest = new Array();
>> var ps = qs.replace(/&/, "&");
>> var psa = ps.split("&");
>> for (var i=0; i < psa.length; i++){
>> var p = psa[i].split("=");
>> // add logic here for duplicate fields
>> Request[p[0]] = p[1];
>> }
>>
>> proc.addObject(Request,
>> "urn:carltonNoles-RequestObject");
>>
>> Then in your stylesheet add the urn
>> <xsl:stylesheet version="1.0"
>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>> xmlns:Request="urn:carltonNoles-RequestObject"
>> >
>> Then you can use it as in
>> <xsl:when match="LName=Request:QueryString('name')">
>> Note the ":"
>>
>> This would have to be a very bizarre reason because
>> I don't see how you can
>> execute your script if you are posting to some xml
>> with <form
>> action="some.xml" that contains a stylesheet pi.
>>
>> Ciao Chris
>>
>> XML/XSL Portal
>> http://www.bayes.co.uk/xml
>>
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list