This is a duplicate post to one made in the VFP forum but with an added .Net twist...
I'm playing with an XML document inside a static HTML page ala these two pages:
http://fox.wikis.com/wc.dll?Wiki~WikiXSLTest~Wikihttp://msdn.microsoft.com/XML/XMLCodeSamples/default.aspx?pull=/library/en-us/dnexxml/html/xml020899.aspAnd it's working pretty cool/fast for the sort feature. Now I want to add a filtering ability and hitting a stumbling block. There are 4 columns and I'd like to be able to filter the result set on some combination of columns.
The example from the MSDN article works well to filter to a SQL where equivalent of
servname > 'S'filterBy.value = 'VFPData/dbservers[servname $gt$ \'S\']';
But how can I replicate this equivalent:
where 'PROD' $ servname?
filterBy.value = 'VFPData/dbservers[contains( servname, cFilter )]'; // fails quite miserably with an
Error: Unknown method VFPData/dbservers[->contains( servname<-, cFilter)] in the IE window.
In addition to the XSL filter question:
How can I get VS2003 to help me edit/debug the underlying HTML page? I can get a code view of the file and a "layout" view but the layout page is no where the same as a browser view of the page. Am I missing something? Right now I save the page, go to IE and hit refresh to see how the code change worked. I don't seem to find anyway to kick up the .Net debugger and step through the script code on the page and/or doing runtime exploration of the objects to browse properties etc.