Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Hey, I'm also new to implementing xsl/xml but i played around with your code for a bit, I couldn't get it working but even if you change </p> <pre><code>&lt;xsl:for-each select="/Profiles/Profile[id='$id']"&gt; </code></pre> <p>to </p> <pre><code>&lt;xsl:for-each select="/Profiles/Profile[id='2']"&gt; </code></pre> <p>You still get a nasty error although it does fetch the right information. If you remove any "" or even the '' with anything but numeric it give more errors. I have found another way to do this although i haven't had time to test it. <a href="http://www.tonymarston.net/php-mysql/client-side-xslt.html" rel="nofollow noreferrer">Client Side XSLT</a></p> <p>I have the same problem as you and would really like to see this problem solved.</p> <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: xmlXPathCompOpEval: function function bound to undefined prefix php in E:\xampplite\htdocs\XSL\index.php on line 17</p> <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: xmlXPathCompiledEval: 1 objects left on the stack. in E:\xampplite\htdocs\XSL\index.php on line 17</p> <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: xmlXPathCompOpEval: function function bound to undefined prefix php in E:\xampplite\htdocs\XSL\index.php on line 17</p> <p>Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: xmlXPathCompiledEval: 2 objects left on the stack. in E:\xampplite\htdocs\XSL\index.php on line 17</p> <p>Profile</p> <p>User Profiles ID Name Date of Birth 2 mark antony 79900200</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload