[wpkg-users] Q: Failing to parse xml "Error parsing xml 'snip': The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document."
John N.
jnyhuis at uw.edu
Thu Jan 6 19:22:22 CET 2022
That solved the problem!
A "Big Thank You" to both of you who responded.
Clearly I need to up my xml game...
Thanks,
John H. Nyhuis
jnyhuis at uw.edu
Mon-Tue: (206)-685-8334
Box 359461, UWT 15th floor, 106
Wed-Thur: (206)-616-2725
Box 351617, HRC 3rd floor, 303
On 1/6/2022 1:25 AM, Bernhard Mayr wrote:
> Hi,
>
> Saved your document as an XML file and opened it in Chromium:
> /This page contains the following errors:
> error on line 34 at column 18: error parsing attribute name
> Below is a rendering of the page up to the first error./
>
> line 34 was: <remove 'msiexec /x %guid% /qn /norestart' />
> looks like 'cmd=' is missing
>
> Fixed that and got
> Opening and ending tag mismatch: install line
>
> line 20 was: <install cmd='msiexec /i "%root%\Drivers\Printers\ricoh\RePackage\%msi-name%" /norestart /qn' >
> also lacked a '/" before the closing '>'
>
> fixed that, then it looked OK in Chromium
>
> Sincerely
>
> Bernhard
>
>
>
> Am Do., 6. Jan. 2022 um 01:43 Uhr schrieb John N. <jnyhuis at uw.edu <mailto:jnyhuis at uw.edu>>:
>
> I'm trying to debug a WPKG package. The package xml passes my parser check, but when run, WPKG reports an error:
>
> "Error parsing xml 'snip': The stylesheet does not contain a document element. The stylesheet may be empty, or it may not be a well-formed XML document."
> One of our web coders suggests it may be a problem with the upstream schema located at "http://www.wpkg.org/packages <http://www.wpkg.org/packages> /xsd/packages.xsd" ?
>
> I'd appreciate any pointers if anyone can point out what I am missing...
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <packages:packages
> xmlns:packages="http://www.wpkg.org/packages <http://www.wpkg.org/packages>" xmlns:wpkg="http://www.wpkg.org/wpkg <http://www.wpkg.org/wpkg>" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>"
> xsi:schemaLocation="http://www.wpkg.org/packages <http://www.wpkg.org/packages> /xsd/packages.xsd" >
> <!-- RICOH printers -->
> <!--Unlike other packages, the RICOH primters need to be repackaged into an installer before they can be provisioned. -->
> <!--This is a substantial process, and can be found here: https://wiki.biostat.washington.edu/index.php/Ricoh_Printer_WPKG_Install <https://wiki.biostat.washington.edu/index.php/Ricoh_Printer_WPKG_Install> -->
> <!--Once the installers have been built, this file can be updated to pull the new drivers. -->
> <!--msi-name is the name of the installer file for this printer -->
> <!--Use ORCA to get the guid of the installer. It is found under "Property" and "ProductCode". This value will change with every installer build, so don't forget to update it or the package will fail to uninstall and upgrade.-->
> <!--Remember to up the revision by +1 when updating-->
>
> <package
> id="hrc3s-bw"
> name="HRC 3rd floor Printer South: Black and White"
> revision="5"
> execute="once"
> priority="5"
> date="Jan 5 2022">
>
> <variable name="printer" value="hrc3s-bw" />
> <variable name="msi-name" value="hrc3s-bw-TCP_IP-RICOH_PS_UniversalDriver_V4.32-64Bit-for64bitOS-1.0.0.msi" />
> <variable name="guid" value="{75DEA569-99A4-4A5A-9815-0786F1F67D1C}" />
>
> <install cmd='msiexec /i "%root%\Drivers\Printers\ricoh\RePackage\%msi-name%" /norestart /qn' >
> <install cmd='waitfor nothing /t 10' >
> <exit code="0" />
> </install>
>
> <upgrade include="remove" />
> <upgrade include="install" />
>
> <remove 'msiexec /x %guid% /qn /norestart' />
> </package>
>
> </packages:packages>
>
>
>
> --
> Thanks in advance,
>
> John H. Nyhuis
> jnyhuis at uw.edu <mailto:jnyhuis at uw.edu>
> Mon-Tue: (206)-685-8334
> Box 359461, UWT 15th floor, 106
> Wed-Thur: (206)-616-2725
> Box 351617, HRC 3rd floor, 303
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ <http://lists.wpkg.org/pipermail/wpkg-users/>
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org <mailto:wpkg-users at lists.wpkg.org>
> https://lists.wpkg.org/mailman/listinfo/wpkg-users <https://lists.wpkg.org/mailman/listinfo/wpkg-users>
>
More information about the wpkg-users
mailing list