Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 1st, 2006, 02:49 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using a varible to filter XML output

Hello,

I have an issue that I cannot seem to resolve using XML and PHP.

Given:

The XML
http://www.aagrating.com/19space.xml

The XSL
http://www.aagrating.com/format.xsl

The CSS
http://www.aagrating.com/table.css


Given this setup I would like to be able to filter my data given a PHP variable (i.e. form submits, loads XML and filters based off of user input). I can use xpath to output the format to a table correctly, but when I attempt to set a variable for XPath it locks up.

the php script:
http://www.aagrating.com/xmlTest.php

I have attempted to use "$myVar", '$myVar' " '+myVar+' ", but I cannot find the correct syntax. Is this eveb possible? Any thoughts?

Thanks in advance!

-thom






Similar Threads
Thread Thread Starter Forum Replies Last Post
Varible DB Name Mdingler SQL Server 2000 3 December 7th, 2006 10:21 PM
Filter multi-tier XML data island jayme27 XSLT 1 April 22nd, 2006 04:53 AM
Varible mrideout BOOK: Beginning ASP.NET 1.0 3 July 22nd, 2004 01:57 PM
XML output prashantnair XML 6 June 9th, 2004 12:22 AM
XML-to-XML filter arvin XSLT 7 July 21st, 2003 05:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.