Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help asap

Status
Not open for further replies.

SQL2KDBA69

Programmer
Feb 4, 2004
227
US
this is the error im getting on the page.


The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'install.php'....

<b>Warning</b>: set_error_handler() expects argument 1, 'error_handler', to be a valid callback in <b>/ho...


does any one knows what this means.
 
This means that either your xml or your xsl has more then one top level element, but you guessed as much.
In xml any node can have any number of childnodes, but there is only one root-element.
So:
"<b>Warning</b>: set_error_handler() expects argument 1, 'error_handler', to be a valid callback in <b>...</b>"
would be invalid xml: at top-level there are 2 nodes <b> and a text-value that belongs to no node at all.
If you want to parse a html-like text like that using xsl, you should at least put in in a root-node: "<root><b>Warning</b>: set_error_...<b>...</b></root>.
Even then: html is less strict then xml. "<b>" in xml would always have to be closed with "</b>", in html that is not nescecary.
If you post the xml AND xsl you're using, I'm sure someone on this forum can help you out in notime, provided you can change them both.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top