Warning: Sablotron error on line 4: XML parser error 4: not well-formed (invalid token) in c:\dir1\dir2\xml.php on line 7
1: <?php 2: 3: // Allocate a new XSLT processor 4: $xh = xslt_create(); 5: 6: // Process the document, returning the result into the $result variable 7: $result = xslt_process ($xh, 'file://C:/dir1/dir2/simple.xml', 'file://C:/dir1/dir2/simple.xsl'); 8: 9: xslt_free($xh); 10: 11:?>
I had a few spare minutes so I ran the code you provided in your first post. It works fine for me, prints the value of the first node in the text area.
Are you sure that you are actually using this xsl? In my limited experience of Sablotron it generally throws up these errors when there is non valid xml in the xsl file. I don't mean to sound patronising saying that, on many occasions I've been ready to throw my machine out of the window simply because I was using the wrong (un-modified) xsl file :)
Also, to print the value of both nodes you would use: