You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(31) |
Nov
(25) |
Dec
(33) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(48) |
Feb
(62) |
Mar
(22) |
Apr
(29) |
May
(9) |
Jun
(45) |
Jul
(28) |
Aug
(41) |
Sep
(60) |
Oct
(96) |
Nov
(99) |
Dec
(70) |
2003 |
Jan
(98) |
Feb
(159) |
Mar
(164) |
Apr
(150) |
May
(143) |
Jun
(97) |
Jul
(184) |
Aug
(143) |
Sep
(207) |
Oct
(126) |
Nov
(159) |
Dec
(165) |
2004 |
Jan
(131) |
Feb
(229) |
Mar
(220) |
Apr
(212) |
May
(320) |
Jun
(223) |
Jul
(191) |
Aug
(390) |
Sep
(261) |
Oct
(229) |
Nov
(215) |
Dec
(184) |
2005 |
Jan
(221) |
Feb
(312) |
Mar
(336) |
Apr
(273) |
May
(359) |
Jun
(277) |
Jul
(303) |
Aug
(321) |
Sep
(256) |
Oct
(415) |
Nov
(428) |
Dec
(508) |
2006 |
Jan
(585) |
Feb
(419) |
Mar
(496) |
Apr
(296) |
May
(403) |
Jun
(404) |
Jul
(553) |
Aug
(296) |
Sep
(252) |
Oct
(416) |
Nov
(414) |
Dec
(245) |
2007 |
Jan
(354) |
Feb
(422) |
Mar
(389) |
Apr
(298) |
May
(397) |
Jun
(318) |
Jul
(315) |
Aug
(339) |
Sep
(253) |
Oct
(317) |
Nov
(350) |
Dec
(264) |
2008 |
Jan
(353) |
Feb
(313) |
Mar
(433) |
Apr
(383) |
May
(343) |
Jun
(355) |
Jul
(321) |
Aug
(338) |
Sep
(242) |
Oct
(206) |
Nov
(199) |
Dec
(279) |
2009 |
Jan
(327) |
Feb
(221) |
Mar
(280) |
Apr
(278) |
May
(237) |
Jun
(345) |
Jul
(322) |
Aug
(324) |
Sep
(676) |
Oct
(586) |
Nov
(735) |
Dec
(329) |
2010 |
Jan
(619) |
Feb
(424) |
Mar
(529) |
Apr
(241) |
May
(312) |
Jun
(554) |
Jul
(698) |
Aug
(576) |
Sep
(408) |
Oct
(268) |
Nov
(391) |
Dec
(426) |
2011 |
Jan
(629) |
Feb
(512) |
Mar
(465) |
Apr
(467) |
May
(475) |
Jun
(403) |
Jul
(426) |
Aug
(542) |
Sep
(418) |
Oct
(620) |
Nov
(614) |
Dec
(358) |
2012 |
Jan
(357) |
Feb
(466) |
Mar
(344) |
Apr
(215) |
May
(408) |
Jun
(375) |
Jul
(241) |
Aug
(260) |
Sep
(401) |
Oct
(461) |
Nov
(498) |
Dec
(294) |
2013 |
Jan
(453) |
Feb
(447) |
Mar
(434) |
Apr
(326) |
May
(295) |
Jun
(471) |
Jul
(463) |
Aug
(278) |
Sep
(525) |
Oct
(343) |
Nov
(389) |
Dec
(405) |
2014 |
Jan
(564) |
Feb
(324) |
Mar
(319) |
Apr
(319) |
May
(384) |
Jun
(259) |
Jul
(210) |
Aug
(219) |
Sep
(315) |
Oct
(478) |
Nov
(207) |
Dec
(316) |
2015 |
Jan
(222) |
Feb
(234) |
Mar
(201) |
Apr
(145) |
May
(367) |
Jun
(318) |
Jul
(195) |
Aug
(210) |
Sep
(234) |
Oct
(248) |
Nov
(217) |
Dec
(189) |
2016 |
Jan
(219) |
Feb
(177) |
Mar
(110) |
Apr
(91) |
May
(159) |
Jun
(124) |
Jul
(192) |
Aug
(119) |
Sep
(125) |
Oct
(64) |
Nov
(80) |
Dec
(68) |
2017 |
Jan
(156) |
Feb
(312) |
Mar
(386) |
Apr
(217) |
May
(89) |
Jun
(115) |
Jul
(79) |
Aug
(122) |
Sep
(100) |
Oct
(99) |
Nov
(129) |
Dec
(77) |
2018 |
Jan
(106) |
Feb
(78) |
Mar
(160) |
Apr
(73) |
May
(110) |
Jun
(160) |
Jul
(93) |
Aug
(92) |
Sep
(75) |
Oct
(147) |
Nov
(114) |
Dec
(97) |
2019 |
Jan
(141) |
Feb
(78) |
Mar
(158) |
Apr
(60) |
May
(123) |
Jun
(54) |
Jul
(44) |
Aug
(147) |
Sep
(117) |
Oct
(54) |
Nov
(74) |
Dec
(96) |
2020 |
Jan
(113) |
Feb
(125) |
Mar
(142) |
Apr
(57) |
May
(71) |
Jun
(99) |
Jul
(58) |
Aug
(81) |
Sep
(49) |
Oct
(50) |
Nov
(63) |
Dec
(37) |
2021 |
Jan
(37) |
Feb
(45) |
Mar
(39) |
Apr
(18) |
May
(14) |
Jun
(9) |
Jul
(44) |
Aug
(23) |
Sep
(13) |
Oct
(31) |
Nov
(13) |
Dec
(33) |
2022 |
Jan
(17) |
Feb
(8) |
Mar
(32) |
Apr
(7) |
May
(17) |
Jun
(7) |
Jul
(36) |
Aug
(29) |
Sep
(9) |
Oct
(20) |
Nov
(10) |
Dec
(1) |
2023 |
Jan
(30) |
Feb
(37) |
Mar
(23) |
Apr
(1) |
May
(14) |
Jun
(5) |
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
(48) |
Nov
(4) |
Dec
(29) |
2024 |
Jan
(1) |
Feb
|
Mar
(21) |
Apr
(6) |
May
(16) |
Jun
(41) |
Jul
(11) |
Aug
(17) |
Sep
(16) |
Oct
(11) |
Nov
(3) |
Dec
(9) |
2025 |
Jan
(7) |
Feb
(7) |
Mar
(6) |
Apr
(6) |
May
(30) |
Jun
(8) |
Jul
(10) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: Jean-Paul R. <re...@gm...> - 2024-06-24 09:43:45
|
Dear Julian, >Is it even possible to include XSLTs in a library package in a manner that they can be loaded into XQuery? I assume by "library package" you mean library module? I do this all the time without an issue. It's just another XML document. However I have a doubt about this path: >doc('./CMIF-base.xsl') Have you tested this with the full explicit path to the document? e.g. "/db/apps/myapp/CMIF-base.xsl" Cheers, JPR On Mon, Jun 24, 2024 at 11:35 AM Julian Jarosch <jul...@ad...> wrote: > Hello everyone, > > I’m trying to use XSLT stylesheets in an XQuery module in a library > package, along the lines of (simplified example): > > declare variable $template := doc('./CMIF-base.xsl'); > > The current actual code is here: > > > https://github.com/digicademy/cmiferator/blob/78b2725bf9fcc163fc48df0a96c436fadeefcef6/library-package/content/cmiferator.xqm#L25 > > I had successfully tested this as an XQuery module written directly in > eXist/eXide. It stopped working when I installed it as a library package, > as far as I can tell. > > By “stopped working” I mean that the variable which is supposed to contain > the stylesheet document ($template in the example) remains empty and the > transform:transform() function fails because of a missing stylesheet > argument. > > Currently, it seems to me that the cause is with the library package? Is > it even possible to include XSLTs in a library package in a manner that > they can be loaded into XQuery? > > Thanks for any guidance – presumably for pointing out an egregious > oversight on my end :-) > > Kind regards, > Julian > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Julian J. <jul...@ad...> - 2024-06-24 09:34:48
|
Hello everyone, I’m trying to use XSLT stylesheets in an XQuery module in a library package, along the lines of (simplified example): declare variable $template := doc('./CMIF-base.xsl'); The current actual code is here: https://github.com/digicademy/cmiferator/blob/78b2725bf9fcc163fc48df0a96c436fadeefcef6/library-package/content/cmiferator.xqm#L25 I had successfully tested this as an XQuery module written directly in eXist/eXide. It stopped working when I installed it as a library package, as far as I can tell. By “stopped working” I mean that the variable which is supposed to contain the stylesheet document ($template in the example) remains empty and the transform:transform() function fails because of a missing stylesheet argument. Currently, it seems to me that the cause is with the library package? Is it even possible to include XSLTs in a library package in a manner that they can be loaded into XQuery? Thanks for any guidance – presumably for pointing out an egregious oversight on my end :-) Kind regards, Julian |
From: Florian S. <ml-...@fl...> - 2024-06-24 05:32:46
|
Hi Ted, the best way to debug your Javascript is using the browser console (because it's the browser, not eXist-db which executes that code). If you're using Chrome or Edge, check the following help page: https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/console/ For Firefox, see: https://firefox-source-docs.mozilla.org/devtools-user/ Especially, search for information about the Console output and how to send debug messages to the console. HTH Florian Am 24.06.24 um 02:46 schrieb Ted Hickox: > I feel like such an idiot. Thanks for helping me validate my data. > Since I know my data is valid, I know that there is something wrong > with my Javascript. I'm not sure what that would be, but I will test > various things. In case anyone is curious, here is my Javascript. > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > > SVG_Data.open("GET","http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq>", true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState == 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " > = '" + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > } > SVG_Data.send(); > > And here is my revised HTML > > <html xmlns="http://www.w3.org/1999/xhtml > <http://www.w3.org/1999/xhtml>" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > <http://www.w3.org/2001/XMLSchema-instance>" > xsi:schemaLocation="http://www.TedTheSpeedlearner.com > <http://www.TedTheSpeedlearner.com> SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" > href="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css>"/> > <script language="javascript" > src="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js>"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > > On Sun, Jun 23, 2024 at 5:57 PM Florian Schmitt > <ml-...@fl... > <mailto:ml-...@fl...>> wrote: > > Hi Ted, > > taka a close look to the validation result. Instead of "ellipse", > "Ellipse" is expected. You've defined in your schema that the element > name starts with an upper-case "E", which isn't the case in your XML. > > Thus, replace > > <ellipse> > <X_Center_Coordinate>100</X_Center_Coordinate> > <Y_Center_Coordinate>100</Y_Center_Coordinate> > <X_Radius_Coordinate>30</X_Radius_Coordinate> > <Y_Radius_Coordinate>70</Y_Radius_Coordinate> > </ellipse> > > with > > <Ellipse> > <X_Center_Coordinate>100</X_Center_Coordinate> > <Y_Center_Coordinate>100</Y_Center_Coordinate> > <X_Radius_Coordinate>30</X_Radius_Coordinate> > <Y_Radius_Coordinate>70</Y_Radius_Coordinate> > </Ellipse> > > HTH > Florian > > > Am 23.06.2024 um 23:24 schrieb Ted Hickox: > > Here is a little update. I attempted to validate my xml code. > This is > > the result I received: > > > > image.png > > > > I'm assuming that the problem is located in my xml code and not > in my > > xml schema. Here are my xml and xml schema codes > ... > > > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > <mailto:Exi...@li...> > https://lists.sourceforge.net/lists/listinfo/exist-open > <https://lists.sourceforge.net/lists/listinfo/exist-open> > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |
From: Joe W. <jo...@gm...> - 2024-06-24 02:45:26
|
eXide displays a warning icon next to the line where that variable is defined. eXide's linter - xqlint [1] - performs some static analysis of the query. With this warning message, it's just trying to be helpful and tell you that you've defined a variable that isn't used again. It's not an error, just a warning that you might've done something unintentionally. It's safe to ignore this warning. [1] https://github.com/wcandillon/xqlint On Sun, Jun 23, 2024 at 8:53 PM Ted Hickox <meg...@gm...> wrote: > I discovered something else. Here is my SVG_Ellipse.xq > > xquery version "3.0"; > declare default element namespace "http://www.TedTheSpeedlearner.com"; > declare option exist:serialize "method=text media-type=text/plain"; > let $header-addition := > response:set-header("Access-Control-Allow-Origin","*") > let $doc := doc("SVG_Ellipse.xml")/SVG_Data_Collection/ellipse > let $First_Data_Name := $doc/X_Center_Coordinate > let $Data := concat("cx*",$First_Data_Name, "*") > let $Second_Data_Name := $doc/Y_Center_Coordinate > let $Data := concat($Data, "cy*",$Second_Data_Name, "*") > let $Third_Data_Name := $doc/X_Radius_Coordinate > let $Data := concat($Data, "rx*",$Third_Data_Name, "*") > let $Fourth_Data_Name := $doc/Y_Radius_Coordinate > let $Data := concat($Data, "ry*",$Fourth_Data_Name) > return $Data > > What does it mean when eXide says that $header-addition is an unused > variable? > > On Sun, Jun 23, 2024 at 7:46 PM Ted Hickox <meg...@gm...> wrote: > >> I feel like such an idiot. Thanks for helping me validate my data. >> Since I know my data is valid, I know that there is something wrong with my >> Javascript. I'm not sure what that would be, but I will test various >> things. In case anyone is curious, here is my Javascript. >> >> var SVG_Data; >> var Retrieved_Data; >> var Attribute_List; >> var Coordinate_List; >> var Counter; >> function Setup() { >> SVG_Data = new XMLHttpRequest(); >> SVG_Data.open("GET"," >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >> true); >> SVG_Data.onreadystatechange = function () { >> if (SVG_Data.readyState == 4) { >> Retrieved_Data = SVG_Data.responseText; >> Retrieved_Data = Retrieved_Data.split("*"); >> Attribute_List = ""; >> Coordinate_List = ""; >> for (Counter = 0; Counter < 8; Counter++) { >> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >> Counter = Counter + 1; >> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >> Attribute_List = Attribute_List.split("*"); >> Coordinate_List = Coordinate_List.split("*"); >> Coordinate = "<ellipse id = 'My_Ellipse'"; >> for (Counter = 0; Counter < 4; Counter++) { >> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" >> + Coordinate_List[Counter] + "'";} >> Coordinate = Coordinate + ">"; >> document.getElementById("Image_Box").innerHTML = Coordinate; >> } >> }; >> } >> SVG_Data.send(); >> >> And here is my revised HTML >> >> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> >> <head> >> <title>SVG Ellipse</title> >> <link rel="stylesheet" type="text/css" href=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> >> <script language="javascript" src=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> >> </head> >> <body onload="Setup()"> >> <svg id="Image_Box"> >> <ellipse id="My_Ellipse"/> >> </svg> >> </body> >> </html> >> >> On Sun, Jun 23, 2024 at 5:57 PM Florian Schmitt < >> ml-...@fl...> wrote: >> >>> Hi Ted, >>> >>> taka a close look to the validation result. Instead of "ellipse", >>> "Ellipse" is expected. You've defined in your schema that the element >>> name starts with an upper-case "E", which isn't the case in your XML. >>> >>> Thus, replace >>> >>> <ellipse> >>> <X_Center_Coordinate>100</X_Center_Coordinate> >>> <Y_Center_Coordinate>100</Y_Center_Coordinate> >>> <X_Radius_Coordinate>30</X_Radius_Coordinate> >>> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> >>> </ellipse> >>> >>> with >>> >>> <Ellipse> >>> <X_Center_Coordinate>100</X_Center_Coordinate> >>> <Y_Center_Coordinate>100</Y_Center_Coordinate> >>> <X_Radius_Coordinate>30</X_Radius_Coordinate> >>> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> >>> </Ellipse> >>> >>> HTH >>> Florian >>> >>> >>> Am 23.06.2024 um 23:24 schrieb Ted Hickox: >>> > Here is a little update. I attempted to validate my xml code. This >>> is >>> > the result I received: >>> > >>> > image.png >>> > >>> > I'm assuming that the problem is located in my xml code and not in my >>> > xml schema. Here are my xml and xml schema codes >>> ... >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >> _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Ted H. <meg...@gm...> - 2024-06-24 00:52:57
|
I discovered something else. Here is my SVG_Ellipse.xq xquery version "3.0"; declare default element namespace "http://www.TedTheSpeedlearner.com"; declare option exist:serialize "method=text media-type=text/plain"; let $header-addition := response:set-header("Access-Control-Allow-Origin","*") let $doc := doc("SVG_Ellipse.xml")/SVG_Data_Collection/ellipse let $First_Data_Name := $doc/X_Center_Coordinate let $Data := concat("cx*",$First_Data_Name, "*") let $Second_Data_Name := $doc/Y_Center_Coordinate let $Data := concat($Data, "cy*",$Second_Data_Name, "*") let $Third_Data_Name := $doc/X_Radius_Coordinate let $Data := concat($Data, "rx*",$Third_Data_Name, "*") let $Fourth_Data_Name := $doc/Y_Radius_Coordinate let $Data := concat($Data, "ry*",$Fourth_Data_Name) return $Data What does it mean when eXide says that $header-addition is an unused variable? On Sun, Jun 23, 2024 at 7:46 PM Ted Hickox <meg...@gm...> wrote: > I feel like such an idiot. Thanks for helping me validate my data. Since > I know my data is valid, I know that there is something wrong with my > Javascript. I'm not sure what that would be, but I will test various > things. In case anyone is curious, here is my Javascript. > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", > true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState == 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" > + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > } > SVG_Data.send(); > > And here is my revised HTML > > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" href=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> > <script language="javascript" src=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > > On Sun, Jun 23, 2024 at 5:57 PM Florian Schmitt < > ml-...@fl...> wrote: > >> Hi Ted, >> >> taka a close look to the validation result. Instead of "ellipse", >> "Ellipse" is expected. You've defined in your schema that the element >> name starts with an upper-case "E", which isn't the case in your XML. >> >> Thus, replace >> >> <ellipse> >> <X_Center_Coordinate>100</X_Center_Coordinate> >> <Y_Center_Coordinate>100</Y_Center_Coordinate> >> <X_Radius_Coordinate>30</X_Radius_Coordinate> >> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> >> </ellipse> >> >> with >> >> <Ellipse> >> <X_Center_Coordinate>100</X_Center_Coordinate> >> <Y_Center_Coordinate>100</Y_Center_Coordinate> >> <X_Radius_Coordinate>30</X_Radius_Coordinate> >> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> >> </Ellipse> >> >> HTH >> Florian >> >> >> Am 23.06.2024 um 23:24 schrieb Ted Hickox: >> > Here is a little update. I attempted to validate my xml code. This is >> > the result I received: >> > >> > image.png >> > >> > I'm assuming that the problem is located in my xml code and not in my >> > xml schema. Here are my xml and xml schema codes >> ... >> >> >> >> >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |
From: Ted H. <meg...@gm...> - 2024-06-24 00:47:11
|
I feel like such an idiot. Thanks for helping me validate my data. Since I know my data is valid, I know that there is something wrong with my Javascript. I'm not sure what that would be, but I will test various things. In case anyone is curious, here is my Javascript. var SVG_Data; var Retrieved_Data; var Attribute_List; var Coordinate_List; var Counter; function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET"," http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState == 4) { Retrieved_Data = SVG_Data.responseText; Retrieved_Data = Retrieved_Data.split("*"); Attribute_List = ""; Coordinate_List = ""; for (Counter = 0; Counter < 8; Counter++) { Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; Counter = Counter + 1; Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} Attribute_List = Attribute_List.split("*"); Coordinate_List = Coordinate_List.split("*"); Coordinate = "<ellipse id = 'My_Ellipse'"; for (Counter = 0; Counter < 4; Counter++) { Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" + Coordinate_List[Counter] + "'";} Coordinate = Coordinate + ">"; document.getElementById("Image_Box").innerHTML = Coordinate; } }; } SVG_Data.send(); And here is my revised HTML <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> <head> <title>SVG Ellipse</title> <link rel="stylesheet" type="text/css" href=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> <script language="javascript" src=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> </head> <body onload="Setup()"> <svg id="Image_Box"> <ellipse id="My_Ellipse"/> </svg> </body> </html> On Sun, Jun 23, 2024 at 5:57 PM Florian Schmitt < ml-...@fl...> wrote: > Hi Ted, > > taka a close look to the validation result. Instead of "ellipse", > "Ellipse" is expected. You've defined in your schema that the element > name starts with an upper-case "E", which isn't the case in your XML. > > Thus, replace > > <ellipse> > <X_Center_Coordinate>100</X_Center_Coordinate> > <Y_Center_Coordinate>100</Y_Center_Coordinate> > <X_Radius_Coordinate>30</X_Radius_Coordinate> > <Y_Radius_Coordinate>70</Y_Radius_Coordinate> > </ellipse> > > with > > <Ellipse> > <X_Center_Coordinate>100</X_Center_Coordinate> > <Y_Center_Coordinate>100</Y_Center_Coordinate> > <X_Radius_Coordinate>30</X_Radius_Coordinate> > <Y_Radius_Coordinate>70</Y_Radius_Coordinate> > </Ellipse> > > HTH > Florian > > > Am 23.06.2024 um 23:24 schrieb Ted Hickox: > > Here is a little update. I attempted to validate my xml code. This is > > the result I received: > > > > image.png > > > > I'm assuming that the problem is located in my xml code and not in my > > xml schema. Here are my xml and xml schema codes > ... > > > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Florian S. <ml-...@fl...> - 2024-06-23 22:56:34
|
Hi Ted, taka a close look to the validation result. Instead of "ellipse", "Ellipse" is expected. You've defined in your schema that the element name starts with an upper-case "E", which isn't the case in your XML. Thus, replace <ellipse> <X_Center_Coordinate>100</X_Center_Coordinate> <Y_Center_Coordinate>100</Y_Center_Coordinate> <X_Radius_Coordinate>30</X_Radius_Coordinate> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> </ellipse> with <Ellipse> <X_Center_Coordinate>100</X_Center_Coordinate> <Y_Center_Coordinate>100</Y_Center_Coordinate> <X_Radius_Coordinate>30</X_Radius_Coordinate> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> </Ellipse> HTH Florian Am 23.06.2024 um 23:24 schrieb Ted Hickox: > Here is a little update. I attempted to validate my xml code. This is > the result I received: > > image.png > > I'm assuming that the problem is located in my xml code and not in my > xml schema. Here are my xml and xml schema codes ... |
From: Ted H. <meg...@gm...> - 2024-06-23 21:24:49
|
Here is a little update. I attempted to validate my xml code. This is the result I received: [image: image.png] I'm assuming that the problem is located in my xml code and not in my xml schema. Here are my xml and xml schema codes. <SVG_Data_Collection xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.TedTheSpeedlearner.com SVG_Ellipse_Data_Schema.xsd"> <ellipse> <X_Center_Coordinate>100</X_Center_Coordinate> <Y_Center_Coordinate>100</Y_Center_Coordinate> <X_Radius_Coordinate>30</X_Radius_Coordinate> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> </ellipse> </SVG_Data_Collection> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:target=" http://www.TedTheSpeedlearner.com" targetNamespace=" http://www.TedTheSpeedlearner.com" elementFormDefault="qualified"> <complexType name="Ellipse_Type"> <sequence> <element name="X_Center_Coordinate" type="string"/> <element name="Y_Center_Coordinate" type="string"/> <element name="X_Radius_Coordinate" type="string"/> <element name="Y_Radius_Coordinate" type="string"/> </sequence> </complexType> <element name="SVG_Data_Collection"> <complexType> <sequence> <element name="Ellipse" type="target:Ellipse_Type"/> </sequence> </complexType> </element> </schema> On Sun, Jun 23, 2024 at 4:10 PM Ted Hickox <meg...@gm...> wrote: > The manage and renaming features of eXist worked perfectly. I didn't know > I could do any of this. Thanks for your advice on that one. I guess the > first thing you might suggest is running an xQuery on the xml that my > Javascript is using. I have an xml schema that can do this task. I will > just have to write an xQuery to test the xml code. > > In the meantime, in case I may need additional help, here is my javascript > code and my xml code. I will let you know when I run my xQuery. > > SVG_Ellipse.js > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", > true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState == 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" > + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > } > SVG_Data.send(); > > SVG_Ellipse.xq > > xquery version "3.0"; > declare default element namespace "http://www.TedTheSpeedlearner.com"; > declare option exist:serialize "method=text media-type=text/plain"; > let $header-addition := > response:set-header("Access-Control-Allow-Origin","*") > let $doc := doc("SVG_Ellipse.xml")/SVG_Data_Collection/ellipse > let $First_Data_Name := $doc/X_Center_Coordinate > let $Data := concat("cx*",$First_Data_Name, "*") > let $Second_Data_Name := $doc/Y_Center_Coordinate > let $Data := concat($Data, "cy*",$Second_Data_Name, "*") > let $Third_Data_Name := $doc/X_Radius_Coordinate > let $Data := concat($Data, "rx*",$Third_Data_Name, "*") > let $Fourth_Data_Name := $doc/Y_Radius_Coordinate > let $Data := concat($Data, "ry*",$Fourth_Data_Name) > return $Data > > SVG_Ellipse.xml > > <SVG_Data_Collection xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.TedTheSpeedlearner.com SVG_Ellipse_Data_Schema.xsd"> > <ellipse> > <X_Center_Coordinate>100</X_Center_Coordinate> > <Y_Center_Coordinate>100</Y_Center_Coordinate> > <X_Radius_Coordinate>30</X_Radius_Coordinate> > <Y_Radius_Coordinate>70</Y_Radius_Coordinate> > </ellipse> > </SVG_Data_Collection> > > On Sun, Jun 23, 2024 at 3:41 PM Florian Schmitt < > ml-...@fl...> wrote: > >> Hi Ted, >> >> for renaming a resource in eXide, select "Manage" from the File menu, >> left-click the file to rename and hit the rename button (file symbol >> with pencil). >> >> Blank screen: Check the browser console for Javascript errors. As far as >> i remember, your HTML page is initially empty. If it stays empty, >> there's an issue with your Javascriupt of Xquery code. >> >> Greetings, >> Florian >> >> Am 23.06.2024 um 21:12 schrieb Ted Hickox: >> > I became innovative. I copied and pasted the document then I saved it >> > as an xhtml file. When I tried to open the new file, all I got was a >> > blank screen. Why would I get a blank screen? >> > >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |
From: Ted H. <meg...@gm...> - 2024-06-23 21:10:22
|
The manage and renaming features of eXist worked perfectly. I didn't know I could do any of this. Thanks for your advice on that one. I guess the first thing you might suggest is running an xQuery on the xml that my Javascript is using. I have an xml schema that can do this task. I will just have to write an xQuery to test the xml code. In the meantime, in case I may need additional help, here is my javascript code and my xml code. I will let you know when I run my xQuery. SVG_Ellipse.js var SVG_Data; var Retrieved_Data; var Attribute_List; var Coordinate_List; var Counter; function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET"," http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState == 4) { Retrieved_Data = SVG_Data.responseText; Retrieved_Data = Retrieved_Data.split("*"); Attribute_List = ""; Coordinate_List = ""; for (Counter = 0; Counter < 8; Counter++) { Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; Counter = Counter + 1; Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} Attribute_List = Attribute_List.split("*"); Coordinate_List = Coordinate_List.split("*"); Coordinate = "<ellipse id = 'My_Ellipse'"; for (Counter = 0; Counter < 4; Counter++) { Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" + Coordinate_List[Counter] + "'";} Coordinate = Coordinate + ">"; document.getElementById("Image_Box").innerHTML = Coordinate; } }; } SVG_Data.send(); SVG_Ellipse.xq xquery version "3.0"; declare default element namespace "http://www.TedTheSpeedlearner.com"; declare option exist:serialize "method=text media-type=text/plain"; let $header-addition := response:set-header("Access-Control-Allow-Origin","*") let $doc := doc("SVG_Ellipse.xml")/SVG_Data_Collection/ellipse let $First_Data_Name := $doc/X_Center_Coordinate let $Data := concat("cx*",$First_Data_Name, "*") let $Second_Data_Name := $doc/Y_Center_Coordinate let $Data := concat($Data, "cy*",$Second_Data_Name, "*") let $Third_Data_Name := $doc/X_Radius_Coordinate let $Data := concat($Data, "rx*",$Third_Data_Name, "*") let $Fourth_Data_Name := $doc/Y_Radius_Coordinate let $Data := concat($Data, "ry*",$Fourth_Data_Name) return $Data SVG_Ellipse.xml <SVG_Data_Collection xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.TedTheSpeedlearner.com SVG_Ellipse_Data_Schema.xsd"> <ellipse> <X_Center_Coordinate>100</X_Center_Coordinate> <Y_Center_Coordinate>100</Y_Center_Coordinate> <X_Radius_Coordinate>30</X_Radius_Coordinate> <Y_Radius_Coordinate>70</Y_Radius_Coordinate> </ellipse> </SVG_Data_Collection> On Sun, Jun 23, 2024 at 3:41 PM Florian Schmitt < ml-...@fl...> wrote: > Hi Ted, > > for renaming a resource in eXide, select "Manage" from the File menu, > left-click the file to rename and hit the rename button (file symbol > with pencil). > > Blank screen: Check the browser console for Javascript errors. As far as > i remember, your HTML page is initially empty. If it stays empty, > there's an issue with your Javascriupt of Xquery code. > > Greetings, > Florian > > Am 23.06.2024 um 21:12 schrieb Ted Hickox: > > I became innovative. I copied and pasted the document then I saved it > > as an xhtml file. When I tried to open the new file, all I got was a > > blank screen. Why would I get a blank screen? > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Florian S. <ml-...@fl...> - 2024-06-23 20:40:25
|
Hi Ted, for renaming a resource in eXide, select "Manage" from the File menu, left-click the file to rename and hit the rename button (file symbol with pencil). Blank screen: Check the browser console for Javascript errors. As far as i remember, your HTML page is initially empty. If it stays empty, there's an issue with your Javascriupt of Xquery code. Greetings, Florian Am 23.06.2024 um 21:12 schrieb Ted Hickox: > I became innovative. I copied and pasted the document then I saved it > as an xhtml file. When I tried to open the new file, all I got was a > blank screen. Why would I get a blank screen? > |
From: Ted H. <meg...@gm...> - 2024-06-23 19:13:15
|
I became innovative. I copied and pasted the document then I saved it as an xhtml file. When I tried to open the new file, all I got was a blank screen. Why would I get a blank screen? On Sun, Jun 23, 2024 at 2:04 PM Ted Hickox <meg...@gm...> wrote: > I can do that if I know how to change the file extension in exide. > > On Sun, Jun 23, 2024, 1:23 PM Florian Schmitt < > ml-...@fl...> wrote: > >> Aww - i've testeds with Firefox where changing the File type worked as >> described. But it seems you're using Edge or Chrome? Please try to >> rename the .html file to .xhtml. This worked for me using Edge. >> >> Greetings, >> Florian >> >> Am 23.06.2024 um 19:19 schrieb Ted Hickox: >> > I fixed the equals sign and now that code is error free. >> > >> > I also attempted to make a couple of changes to my HTML code. I tried >> > to add the following lines of code: >> > >> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" >> > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd >> > <http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>"> >> > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml >> >"> >> > >> > Then I saved my code just like you asked me to. Finally I held down >> the >> > control button and pressed the letter r. Everything refreshed as you >> > stated it should. But the doctype code disappeared. And once again I >> > got this when I ran the html code: >> > >> > image.png >> > >> > Why would I get this if my code now looks like this: >> > >> > <html xmlns="http://www.w3.org/1999/xhtml >> > <http://www.w3.org/1999/xhtml>" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance >> > <http://www.w3.org/2001/XMLSchema-instance>" >> > xsi:schemaLocation="http://www.TedTheSpeedlearner.com >> > <http://www.TedTheSpeedlearner.com> >> SVG_Ellipse_Webpage_XML_Schema.xsd"> >> > <head> >> > <title>SVG Ellipse</title> >> > <link rel="stylesheet" type="text/css" >> > href=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css < >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css>"/> >> > <script language="javascript" >> > src=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js < >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js>"/> >> > </head> >> > <body onload="Setup()"> >> > <svg id="Image_Box"> >> > <ellipse id="My_Ellipse"/> >> > </svg> >> > </body> >> > </html> >> > >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |
From: Ted H. <meg...@gm...> - 2024-06-23 19:04:59
|
I can do that if I know how to change the file extension in exide. On Sun, Jun 23, 2024, 1:23 PM Florian Schmitt < ml-...@fl...> wrote: > Aww - i've testeds with Firefox where changing the File type worked as > described. But it seems you're using Edge or Chrome? Please try to > rename the .html file to .xhtml. This worked for me using Edge. > > Greetings, > Florian > > Am 23.06.2024 um 19:19 schrieb Ted Hickox: > > I fixed the equals sign and now that code is error free. > > > > I also attempted to make a couple of changes to my HTML code. I tried > > to add the following lines of code: > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd > > <http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>"> > > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml > >"> > > > > Then I saved my code just like you asked me to. Finally I held down the > > control button and pressed the letter r. Everything refreshed as you > > stated it should. But the doctype code disappeared. And once again I > > got this when I ran the html code: > > > > image.png > > > > Why would I get this if my code now looks like this: > > > > <html xmlns="http://www.w3.org/1999/xhtml > > <http://www.w3.org/1999/xhtml>" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > > <http://www.w3.org/2001/XMLSchema-instance>" > > xsi:schemaLocation="http://www.TedTheSpeedlearner.com > > <http://www.TedTheSpeedlearner.com> SVG_Ellipse_Webpage_XML_Schema.xsd"> > > <head> > > <title>SVG Ellipse</title> > > <link rel="stylesheet" type="text/css" > > href=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css < > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css>"/> > > <script language="javascript" > > src=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js < > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js>"/> > > </head> > > <body onload="Setup()"> > > <svg id="Image_Box"> > > <ellipse id="My_Ellipse"/> > > </svg> > > </body> > > </html> > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Florian S. <ml-...@fl...> - 2024-06-23 18:22:38
|
Aww - i've testeds with Firefox where changing the File type worked as described. But it seems you're using Edge or Chrome? Please try to rename the .html file to .xhtml. This worked for me using Edge. Greetings, Florian Am 23.06.2024 um 19:19 schrieb Ted Hickox: > I fixed the equals sign and now that code is error free. > > I also attempted to make a couple of changes to my HTML code. I tried > to add the following lines of code: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd > <http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>"> > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml>"> > > Then I saved my code just like you asked me to. Finally I held down the > control button and pressed the letter r. Everything refreshed as you > stated it should. But the doctype code disappeared. And once again I > got this when I ran the html code: > > image.png > > Why would I get this if my code now looks like this: > > <html xmlns="http://www.w3.org/1999/xhtml > <http://www.w3.org/1999/xhtml>" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > <http://www.w3.org/2001/XMLSchema-instance>" > xsi:schemaLocation="http://www.TedTheSpeedlearner.com > <http://www.TedTheSpeedlearner.com> SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" > href="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css>"/> > <script language="javascript" > src="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js>"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > |
From: Ted H. <meg...@gm...> - 2024-06-23 17:19:34
|
I fixed the equals sign and now that code is error free. I also attempted to make a couple of changes to my HTML code. I tried to add the following lines of code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Then I saved my code just like you asked me to. Finally I held down the control button and pressed the letter r. Everything refreshed as you stated it should. But the doctype code disappeared. And once again I got this when I ran the html code: [image: image.png] Why would I get this if my code now looks like this: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> <head> <title>SVG Ellipse</title> <link rel="stylesheet" type="text/css" href=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> <script language="javascript" src=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> </head> <body onload="Setup()"> <svg id="Image_Box"> <ellipse id="My_Ellipse"/> </svg> </body> </html> On Sun, Jun 23, 2024 at 11:38 AM Florian Schmitt < ml-...@fl...> wrote: > Hi Ted, > > you'll see the XML source in the browser because Jetty sends the file > with content-type=application/xml. To change the content type to > xhthml+xml (which allows the browser to render the HTML as expected), > open the HTML file in eXide, change the content-type combobox in eXide > in the upper right corner from XML to HTML. Don't forget to save and > reload using CTRL+R. > > The Javascript error is in fact a warning. It's triggered by line 10: > > if (SVG_Data.readyState = 4) { > > I assume it should be double equation signs: > > if (SVG_Data.readyState == 4) { > > With a single equation sign, you don't test for equality - instead > you're trying to assing the value 4 to SVG_Data.readyState. That's a > common bug so it has its own error message - doing an assignment in the > conditional expression instead of a equation test is a bug in almost all > cases. I assume the assignment fails, thus the bool value is false in > every case, and the code inside the if clause is never executed. > > Regarding the "windows service" issue, sadly i can't help - i don't use > eXist on Windows. > > Greetings, > Florian > > Am 23.06.2024 um 17:39 schrieb Ted Hickox: > > I wanted to thank everyone here who has tried to assist me so far with > > my eXist database problems. I will ignore the problem of the error > > message that displays every time I open the eXist database and I've been > > assured that in a future upgrade of the eXist database the file type > > mismatch will be corrected as well. But I still have two problems. The > > first is that when I shut down and then restarted the eXist database, I > > was told that it will no longer run as a windows service. How will this > > impact my current project. And then I tried to use this web address to > > display my webpage: > > > > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.html > > <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.html> > All I saw when I did this is > > > > image.png > > > > Furthermore, this is my javascript code: > > > > var SVG_Data; > > var Retrieved_Data; > > var Attribute_List; > > var Coordinate_List; > > var Counter; > > function Setup() { > > SVG_Data = new XMLHttpRequest(); > > > > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq < > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq>", > true); > > SVG_Data.onreadystatechange = function () { > > if (SVG_Data.readyState = 4) { > > Retrieved_Data = SVG_Data.responseText; > > Retrieved_Data = Retrieved_Data.split("*"); > > Attribute_List = ""; > > Coordinate_List = ""; > > for (Counter = 0; Counter < 8; Counter++) { > > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > > Counter = Counter + 1; > > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > > Attribute_List = Attribute_List.split("*"); > > Coordinate_List = Coordinate_List.split("*"); > > Coordinate = "<ellipse id = 'My_Ellipse'"; > > for (Counter = 0; Counter < 4; Counter++) { > > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = > > '" + Coordinate_List[Counter] + "'";} > > Coordinate = Coordinate + ">"; > > document.getElementById("Image_Box").innerHTML = Coordinate; > > } > > }; > > } > > SVG_Data.send(); > > > > The error states that there is an assignment in the conditional > > expression. I have no idea what that error means. > > * > > * > > * > > * > > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Florian S. <ml-...@fl...> - 2024-06-23 16:37:32
|
Hi Ted, you'll see the XML source in the browser because Jetty sends the file with content-type=application/xml. To change the content type to xhthml+xml (which allows the browser to render the HTML as expected), open the HTML file in eXide, change the content-type combobox in eXide in the upper right corner from XML to HTML. Don't forget to save and reload using CTRL+R. The Javascript error is in fact a warning. It's triggered by line 10: if (SVG_Data.readyState = 4) { I assume it should be double equation signs: if (SVG_Data.readyState == 4) { With a single equation sign, you don't test for equality - instead you're trying to assing the value 4 to SVG_Data.readyState. That's a common bug so it has its own error message - doing an assignment in the conditional expression instead of a equation test is a bug in almost all cases. I assume the assignment fails, thus the bool value is false in every case, and the code inside the if clause is never executed. Regarding the "windows service" issue, sadly i can't help - i don't use eXist on Windows. Greetings, Florian Am 23.06.2024 um 17:39 schrieb Ted Hickox: > I wanted to thank everyone here who has tried to assist me so far with > my eXist database problems. I will ignore the problem of the error > message that displays every time I open the eXist database and I've been > assured that in a future upgrade of the eXist database the file type > mismatch will be corrected as well. But I still have two problems. The > first is that when I shut down and then restarted the eXist database, I > was told that it will no longer run as a windows service. How will this > impact my current project. And then I tried to use this web address to > display my webpage: > > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.html > <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.html> All I saw when I did this is > > image.png > > Furthermore, this is my javascript code: > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > > SVG_Data.open("GET","http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq <http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq>", true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState = 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = > '" + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > } > SVG_Data.send(); > > The error states that there is an assignment in the conditional > expression. I have no idea what that error means. > * > * > * > * > |
From: Ted H. <meg...@gm...> - 2024-06-23 15:39:31
|
I wanted to thank everyone here who has tried to assist me so far with my eXist database problems. I will ignore the problem of the error message that displays every time I open the eXist database and I've been assured that in a future upgrade of the eXist database the file type mismatch will be corrected as well. But I still have two problems. The first is that when I shut down and then restarted the eXist database, I was told that it will no longer run as a windows service. How will this impact my current project. And then I tried to use this web address to display my webpage: http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.html All I saw when I did this is [image: image.png] Furthermore, this is my javascript code: var SVG_Data; var Retrieved_Data; var Attribute_List; var Coordinate_List; var Counter; function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET"," http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState = 4) { Retrieved_Data = SVG_Data.responseText; Retrieved_Data = Retrieved_Data.split("*"); Attribute_List = ""; Coordinate_List = ""; for (Counter = 0; Counter < 8; Counter++) { Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; Counter = Counter + 1; Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} Attribute_List = Attribute_List.split("*"); Coordinate_List = Coordinate_List.split("*"); Coordinate = "<ellipse id = 'My_Ellipse'"; for (Counter = 0; Counter < 4; Counter++) { Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" + Coordinate_List[Counter] + "'";} Coordinate = Coordinate + ">"; document.getElementById("Image_Box").innerHTML = Coordinate; } }; } SVG_Data.send(); The error states that there is an assignment in the conditional expression. I have no idea what that error means. On Sat, Jun 22, 2024 at 1:04 PM Joe Wicentowski <jo...@gm...> wrote: > Hi Ted, > > You can generally ignore that message and dismiss the dialog by selecting > the OK button. The only reason to clear your cache would be - as stated in > the dialog - "if you experience any display issues." > > Joe > > On Sat, Jun 22, 2024 at 5:41 AM Ted Hickox <meg...@gm...> wrote: > >> if I owned a filesystem and a simple webservice, then I would do that. >> But I don't have such things. All I have is a simple computer and I'm just >> someone who experiments with this software at home. I try to tutor people >> on social media. >> >> >> When I try to open eXide, it shows me an error message. It says it seem >> that another version of eXide has been used from this browser before. If >> you experience any display issues, please clear your browser's cache. If I >> clear my browser's cache, I will clear a lot of things I don't want to >> destroy. Is there some workaround for this? >> >> ---------- Forwarded message --------- >> From: Claudius Teodorescu <cla...@gm...> >> Date: Sat, Jun 22, 2024, 3:08 AM >> Subject: Re: [Exist-open] Still trying to validate an XML Schema >> To: Ted Hickox <meg...@gm...> >> >> >> What about testing with those files stored in a filesystem and served by >> a simple webserver? >> >> On Fri, 21 Jun 2024, 23:13 Ted Hickox, <meg...@gm...> wrote: >> >>> Thanks for the information but I don't think it will help in this case. >>> Every time I open the eXide program, I open SVG_Ellipse.js. I look at the >>> file type in the box on the upper right corner of the screen and it insists >>> that the file is an Xquery. When I adjust it to javascript, I get an >>> assignment in conditional expression error. >>> >>> A similar thing happens when I open the SVG_Ellipse.html file. The file >>> type insists that the file is an XML document when in reality it's a HTML >>> document. And I can't seem to change those documents permanently. Why >>> does this keep happening? >>> >>> On Fri, Jun 21, 2024 at 3:00 PM Claudius Teodorescu < >>> cla...@gm...> wrote: >>> >>>> Hi, >>>> >>>> Maybe it would be useful to use fetch() instead of XMLHttpRequest, and >>>> DOMParser to parse the SVG and extract data easily. >>>> >>>> Claudius >>>> >>>> https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch >>>> >>>> https://developer.mozilla.org/en-US/docs/Web/API/DOMParser >>>> >>>> >>>> On Fri, 21 Jun 2024, 22:39 Ted Hickox, <meg...@gm...> wrote: >>>> >>>>> Good afternoon. I finally took a better look at my code and noticed >>>>> that my file had been saved as an Xquery instead of a Javascript file. So >>>>> I copied and pasted my text to a new file. I destroyed the old file and >>>>> renamed the new file. That took care of the previous error. Now I have a >>>>> different error. It's called an assignment in a conditional error. Here >>>>> is the code again if you need to see it. >>>>> >>>>> var SVG_Data; >>>>> var Retrieved_Data; >>>>> var Attribute_List; >>>>> var Coordinate_List; >>>>> var Counter; >>>>> function Setup() { >>>>> SVG_Data = new XMLHttpRequest(); >>>>> SVG_Data.open("GET"," >>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>>> true); >>>>> SVG_Data.onreadystatechange = function () { >>>>> if (SVG_Data.readyState = 4) { >>>>> Retrieved_Data = SVG_Data.responseText; >>>>> Retrieved_Data = Retrieved_Data.split("*"); >>>>> Attribute_List = ""; >>>>> Coordinate_List = ""; >>>>> for (Counter = 0; Counter < 8; Counter++) { >>>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>>> Counter = Counter + 1; >>>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>>> Attribute_List = Attribute_List.split("*"); >>>>> Coordinate_List = Coordinate_List.split("*"); >>>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>>> for (Counter = 0; Counter < 4; Counter++) { >>>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>>> '" + Coordinate_List[Counter] + "'";} >>>>> Coordinate = Coordinate + ">"; >>>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>>> } >>>>> }; >>>>> } >>>>> SVG_Data.send(); >>>>> >>>>> On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> >>>>> wrote: >>>>> >>>>>> I wasn't aware that the eXist database had the arrow on the bottom of >>>>>> the screen. I clicked the arrow and the schema for my HTML page appeared. >>>>>> But I also discovered another error in my code. This involves the >>>>>> javascript document that my HTML document references in my script tag. >>>>>> >>>>>> The error states that I have an unexpected token and it refers to my >>>>>> SVG_Data variable. I have no idea what a token is or why SVG_Data was >>>>>> considered a token. Here is my javascript code: >>>>>> >>>>>> var SVG_Data >>>>>> var Retrieved_Data >>>>>> var Attribute_List >>>>>> var Coordinate_List >>>>>> var Counter >>>>>> function Setup() { >>>>>> SVG_Data = new XMLHttpRequest(); >>>>>> SVG_Data.open("GET"," >>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>>>> true); >>>>>> SVG_Data.onreadystatechange = function () { >>>>>> if (SVG_Data.readyState = 4) { >>>>>> Retrieved_Data = SVG_Data.responseText; >>>>>> Retrieved_Data = Retrieved_Data.split("*"); >>>>>> Attribute_List = ""; >>>>>> Coordinate_List = ""; >>>>>> for (Counter = 0; Counter < 8; Counter++) { >>>>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>>>> Counter = Counter + 1; >>>>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>>>> Attribute_List = Attribute_List.split("*"); >>>>>> Coordinate_List = Coordinate_List.split("*"); >>>>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>>>> for (Counter = 0; Counter < 4; Counter++) { >>>>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " >>>>>> = '" + Coordinate_List[Counter] + "'";} >>>>>> Coordinate = Coordinate + ">" >>>>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>>>> } >>>>>> } >>>>>> SVG_Data.send(); >>>>>> >>>>>> I'm presuming that my SVG_Data becomes an object and that a new >>>>>> XMLHTTPRequest is stored in this object. Or is it that when the variable >>>>>> SVG_Data is equalled to the new XMLHTTPRequest that the variable just >>>>>> becomes an programming object. I don't seem to have a full grasp on the >>>>>> Document Object Model. But I'm trying to grasp this concept as fast as I >>>>>> can. >>>>>> >>>>>> On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < >>>>>> ml-...@fl...> wrote: >>>>>> >>>>>>> Hi Ted, >>>>>>> >>>>>>> i assume "*open in the eXist database*" means to open the file in >>>>>>> *eXide*. If yes, then check the file type in the upper right >>>>>>> corner. If it's HTML, you can't "run" or "eval" it in eXide: >>>>>>> >>>>>>> >>>>>>> Changing the file type to "xquery" should at least enable the "eval" >>>>>>> button. >>>>>>> >>>>>>> For static HTML files (as in your case), you can use the arrow >>>>>>> symbol in the lower left corner of the code area to open the file in a new >>>>>>> browser tab: >>>>>>> >>>>>>> >>>>>>> Greetings, >>>>>>> Florian >>>>>>> >>>>>>> >>>>>>> Am 20.06.24 um 01:40 schrieb Ted Hickox: >>>>>>> >>>>>>> I adjusted my code and my project finally worked. My HTML document >>>>>>> was properly validated by my schema. But I have a new problem. This is my >>>>>>> HTML code: >>>>>>> >>>>>>> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >>>>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>>>>>> http://www.TedTheSpeedlearner.com >>>>>>> SVG_Ellipse_Webpage_XML_Schema.xsd"> >>>>>>> <head> >>>>>>> <title>SVG Ellipse</title> >>>>>>> <link rel="stylesheet" type="text/css" href=" >>>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css >>>>>>> "/> >>>>>>> <script language="javascript" src=" >>>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js >>>>>>> "/> >>>>>>> </head> >>>>>>> <body onload="Setup()"> >>>>>>> <svg id="Image_Box"> >>>>>>> <ellipse id="My_Ellipse"/> >>>>>>> </svg> >>>>>>> </body> >>>>>>> </html> >>>>>>> >>>>>>> When I open this in the eXist database, the run button is grayed >>>>>>> out. Is there something wrong with my code? >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Exist-open mailing list >>>>>>> Exi...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>>>> >>>>>> _______________________________________________ >>>>> Exist-open mailing list >>>>> Exi...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>> >>>> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |
From: Joe W. <jo...@gm...> - 2024-06-22 18:04:32
|
Hi Ted, You can generally ignore that message and dismiss the dialog by selecting the OK button. The only reason to clear your cache would be - as stated in the dialog - "if you experience any display issues." Joe On Sat, Jun 22, 2024 at 5:41 AM Ted Hickox <meg...@gm...> wrote: > if I owned a filesystem and a simple webservice, then I would do that. > But I don't have such things. All I have is a simple computer and I'm just > someone who experiments with this software at home. I try to tutor people > on social media. > > > When I try to open eXide, it shows me an error message. It says it seem > that another version of eXide has been used from this browser before. If > you experience any display issues, please clear your browser's cache. If I > clear my browser's cache, I will clear a lot of things I don't want to > destroy. Is there some workaround for this? > > ---------- Forwarded message --------- > From: Claudius Teodorescu <cla...@gm...> > Date: Sat, Jun 22, 2024, 3:08 AM > Subject: Re: [Exist-open] Still trying to validate an XML Schema > To: Ted Hickox <meg...@gm...> > > > What about testing with those files stored in a filesystem and served by a > simple webserver? > > On Fri, 21 Jun 2024, 23:13 Ted Hickox, <meg...@gm...> wrote: > >> Thanks for the information but I don't think it will help in this case. >> Every time I open the eXide program, I open SVG_Ellipse.js. I look at the >> file type in the box on the upper right corner of the screen and it insists >> that the file is an Xquery. When I adjust it to javascript, I get an >> assignment in conditional expression error. >> >> A similar thing happens when I open the SVG_Ellipse.html file. The file >> type insists that the file is an XML document when in reality it's a HTML >> document. And I can't seem to change those documents permanently. Why >> does this keep happening? >> >> On Fri, Jun 21, 2024 at 3:00 PM Claudius Teodorescu < >> cla...@gm...> wrote: >> >>> Hi, >>> >>> Maybe it would be useful to use fetch() instead of XMLHttpRequest, and >>> DOMParser to parse the SVG and extract data easily. >>> >>> Claudius >>> >>> https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch >>> >>> https://developer.mozilla.org/en-US/docs/Web/API/DOMParser >>> >>> >>> On Fri, 21 Jun 2024, 22:39 Ted Hickox, <meg...@gm...> wrote: >>> >>>> Good afternoon. I finally took a better look at my code and noticed >>>> that my file had been saved as an Xquery instead of a Javascript file. So >>>> I copied and pasted my text to a new file. I destroyed the old file and >>>> renamed the new file. That took care of the previous error. Now I have a >>>> different error. It's called an assignment in a conditional error. Here >>>> is the code again if you need to see it. >>>> >>>> var SVG_Data; >>>> var Retrieved_Data; >>>> var Attribute_List; >>>> var Coordinate_List; >>>> var Counter; >>>> function Setup() { >>>> SVG_Data = new XMLHttpRequest(); >>>> SVG_Data.open("GET"," >>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>> true); >>>> SVG_Data.onreadystatechange = function () { >>>> if (SVG_Data.readyState = 4) { >>>> Retrieved_Data = SVG_Data.responseText; >>>> Retrieved_Data = Retrieved_Data.split("*"); >>>> Attribute_List = ""; >>>> Coordinate_List = ""; >>>> for (Counter = 0; Counter < 8; Counter++) { >>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>> Counter = Counter + 1; >>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>> Attribute_List = Attribute_List.split("*"); >>>> Coordinate_List = Coordinate_List.split("*"); >>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>> for (Counter = 0; Counter < 4; Counter++) { >>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>> '" + Coordinate_List[Counter] + "'";} >>>> Coordinate = Coordinate + ">"; >>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>> } >>>> }; >>>> } >>>> SVG_Data.send(); >>>> >>>> On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> wrote: >>>> >>>>> I wasn't aware that the eXist database had the arrow on the bottom of >>>>> the screen. I clicked the arrow and the schema for my HTML page appeared. >>>>> But I also discovered another error in my code. This involves the >>>>> javascript document that my HTML document references in my script tag. >>>>> >>>>> The error states that I have an unexpected token and it refers to my >>>>> SVG_Data variable. I have no idea what a token is or why SVG_Data was >>>>> considered a token. Here is my javascript code: >>>>> >>>>> var SVG_Data >>>>> var Retrieved_Data >>>>> var Attribute_List >>>>> var Coordinate_List >>>>> var Counter >>>>> function Setup() { >>>>> SVG_Data = new XMLHttpRequest(); >>>>> SVG_Data.open("GET"," >>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>>> true); >>>>> SVG_Data.onreadystatechange = function () { >>>>> if (SVG_Data.readyState = 4) { >>>>> Retrieved_Data = SVG_Data.responseText; >>>>> Retrieved_Data = Retrieved_Data.split("*"); >>>>> Attribute_List = ""; >>>>> Coordinate_List = ""; >>>>> for (Counter = 0; Counter < 8; Counter++) { >>>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>>> Counter = Counter + 1; >>>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>>> Attribute_List = Attribute_List.split("*"); >>>>> Coordinate_List = Coordinate_List.split("*"); >>>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>>> for (Counter = 0; Counter < 4; Counter++) { >>>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>>> '" + Coordinate_List[Counter] + "'";} >>>>> Coordinate = Coordinate + ">" >>>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>>> } >>>>> } >>>>> SVG_Data.send(); >>>>> >>>>> I'm presuming that my SVG_Data becomes an object and that a new >>>>> XMLHTTPRequest is stored in this object. Or is it that when the variable >>>>> SVG_Data is equalled to the new XMLHTTPRequest that the variable just >>>>> becomes an programming object. I don't seem to have a full grasp on the >>>>> Document Object Model. But I'm trying to grasp this concept as fast as I >>>>> can. >>>>> >>>>> On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < >>>>> ml-...@fl...> wrote: >>>>> >>>>>> Hi Ted, >>>>>> >>>>>> i assume "*open in the eXist database*" means to open the file in >>>>>> *eXide*. If yes, then check the file type in the upper right corner. >>>>>> If it's HTML, you can't "run" or "eval" it in eXide: >>>>>> >>>>>> >>>>>> Changing the file type to "xquery" should at least enable the "eval" >>>>>> button. >>>>>> >>>>>> For static HTML files (as in your case), you can use the arrow symbol >>>>>> in the lower left corner of the code area to open the file in a new browser >>>>>> tab: >>>>>> >>>>>> >>>>>> Greetings, >>>>>> Florian >>>>>> >>>>>> >>>>>> Am 20.06.24 um 01:40 schrieb Ted Hickox: >>>>>> >>>>>> I adjusted my code and my project finally worked. My HTML document >>>>>> was properly validated by my schema. But I have a new problem. This is my >>>>>> HTML code: >>>>>> >>>>>> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >>>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>>>>> http://www.TedTheSpeedlearner.com >>>>>> SVG_Ellipse_Webpage_XML_Schema.xsd"> >>>>>> <head> >>>>>> <title>SVG Ellipse</title> >>>>>> <link rel="stylesheet" type="text/css" href=" >>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css >>>>>> "/> >>>>>> <script language="javascript" src=" >>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js >>>>>> "/> >>>>>> </head> >>>>>> <body onload="Setup()"> >>>>>> <svg id="Image_Box"> >>>>>> <ellipse id="My_Ellipse"/> >>>>>> </svg> >>>>>> </body> >>>>>> </html> >>>>>> >>>>>> When I open this in the eXist database, the run button is grayed >>>>>> out. Is there something wrong with my code? >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Exist-open mailing list >>>>>> Exi...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>>> >>>>> _______________________________________________ >>>> Exist-open mailing list >>>> Exi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>> >>> _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Claudius T. <cla...@gm...> - 2024-06-22 12:15:30
|
You can use GitHub Pages for this small project. You can store a static website there, which is your case with those files. On Sat, 22 Jun 2024, 12:41 Ted Hickox, <meg...@gm...> wrote: > if I owned a filesystem and a simple webservice, then I would do that. > But I don't have such things. All I have is a simple computer and I'm just > someone who experiments with this software at home. I try to tutor people > on social media. > > > When I try to open eXide, it shows me an error message. It says it seem > that another version of eXide has been used from this browser before. If > you experience any display issues, please clear your browser's cache. If I > clear my browser's cache, I will clear a lot of things I don't want to > destroy. Is there some workaround for this? > > ---------- Forwarded message --------- > From: Claudius Teodorescu <cla...@gm...> > Date: Sat, Jun 22, 2024, 3:08 AM > Subject: Re: [Exist-open] Still trying to validate an XML Schema > To: Ted Hickox <meg...@gm...> > > > What about testing with those files stored in a filesystem and served by a > simple webserver? > > On Fri, 21 Jun 2024, 23:13 Ted Hickox, <meg...@gm...> wrote: > >> Thanks for the information but I don't think it will help in this case. >> Every time I open the eXide program, I open SVG_Ellipse.js. I look at the >> file type in the box on the upper right corner of the screen and it insists >> that the file is an Xquery. When I adjust it to javascript, I get an >> assignment in conditional expression error. >> >> A similar thing happens when I open the SVG_Ellipse.html file. The file >> type insists that the file is an XML document when in reality it's a HTML >> document. And I can't seem to change those documents permanently. Why >> does this keep happening? >> >> On Fri, Jun 21, 2024 at 3:00 PM Claudius Teodorescu < >> cla...@gm...> wrote: >> >>> Hi, >>> >>> Maybe it would be useful to use fetch() instead of XMLHttpRequest, and >>> DOMParser to parse the SVG and extract data easily. >>> >>> Claudius >>> >>> https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch >>> >>> https://developer.mozilla.org/en-US/docs/Web/API/DOMParser >>> >>> >>> On Fri, 21 Jun 2024, 22:39 Ted Hickox, <meg...@gm...> wrote: >>> >>>> Good afternoon. I finally took a better look at my code and noticed >>>> that my file had been saved as an Xquery instead of a Javascript file. So >>>> I copied and pasted my text to a new file. I destroyed the old file and >>>> renamed the new file. That took care of the previous error. Now I have a >>>> different error. It's called an assignment in a conditional error. Here >>>> is the code again if you need to see it. >>>> >>>> var SVG_Data; >>>> var Retrieved_Data; >>>> var Attribute_List; >>>> var Coordinate_List; >>>> var Counter; >>>> function Setup() { >>>> SVG_Data = new XMLHttpRequest(); >>>> SVG_Data.open("GET"," >>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>> true); >>>> SVG_Data.onreadystatechange = function () { >>>> if (SVG_Data.readyState = 4) { >>>> Retrieved_Data = SVG_Data.responseText; >>>> Retrieved_Data = Retrieved_Data.split("*"); >>>> Attribute_List = ""; >>>> Coordinate_List = ""; >>>> for (Counter = 0; Counter < 8; Counter++) { >>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>> Counter = Counter + 1; >>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>> Attribute_List = Attribute_List.split("*"); >>>> Coordinate_List = Coordinate_List.split("*"); >>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>> for (Counter = 0; Counter < 4; Counter++) { >>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>> '" + Coordinate_List[Counter] + "'";} >>>> Coordinate = Coordinate + ">"; >>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>> } >>>> }; >>>> } >>>> SVG_Data.send(); >>>> >>>> On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> wrote: >>>> >>>>> I wasn't aware that the eXist database had the arrow on the bottom of >>>>> the screen. I clicked the arrow and the schema for my HTML page appeared. >>>>> But I also discovered another error in my code. This involves the >>>>> javascript document that my HTML document references in my script tag. >>>>> >>>>> The error states that I have an unexpected token and it refers to my >>>>> SVG_Data variable. I have no idea what a token is or why SVG_Data was >>>>> considered a token. Here is my javascript code: >>>>> >>>>> var SVG_Data >>>>> var Retrieved_Data >>>>> var Attribute_List >>>>> var Coordinate_List >>>>> var Counter >>>>> function Setup() { >>>>> SVG_Data = new XMLHttpRequest(); >>>>> SVG_Data.open("GET"," >>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>>> true); >>>>> SVG_Data.onreadystatechange = function () { >>>>> if (SVG_Data.readyState = 4) { >>>>> Retrieved_Data = SVG_Data.responseText; >>>>> Retrieved_Data = Retrieved_Data.split("*"); >>>>> Attribute_List = ""; >>>>> Coordinate_List = ""; >>>>> for (Counter = 0; Counter < 8; Counter++) { >>>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>>> Counter = Counter + 1; >>>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>>> Attribute_List = Attribute_List.split("*"); >>>>> Coordinate_List = Coordinate_List.split("*"); >>>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>>> for (Counter = 0; Counter < 4; Counter++) { >>>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>>> '" + Coordinate_List[Counter] + "'";} >>>>> Coordinate = Coordinate + ">" >>>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>>> } >>>>> } >>>>> SVG_Data.send(); >>>>> >>>>> I'm presuming that my SVG_Data becomes an object and that a new >>>>> XMLHTTPRequest is stored in this object. Or is it that when the variable >>>>> SVG_Data is equalled to the new XMLHTTPRequest that the variable just >>>>> becomes an programming object. I don't seem to have a full grasp on the >>>>> Document Object Model. But I'm trying to grasp this concept as fast as I >>>>> can. >>>>> >>>>> On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < >>>>> ml-...@fl...> wrote: >>>>> >>>>>> Hi Ted, >>>>>> >>>>>> i assume "*open in the eXist database*" means to open the file in >>>>>> *eXide*. If yes, then check the file type in the upper right corner. >>>>>> If it's HTML, you can't "run" or "eval" it in eXide: >>>>>> >>>>>> >>>>>> Changing the file type to "xquery" should at least enable the "eval" >>>>>> button. >>>>>> >>>>>> For static HTML files (as in your case), you can use the arrow symbol >>>>>> in the lower left corner of the code area to open the file in a new browser >>>>>> tab: >>>>>> >>>>>> >>>>>> Greetings, >>>>>> Florian >>>>>> >>>>>> >>>>>> Am 20.06.24 um 01:40 schrieb Ted Hickox: >>>>>> >>>>>> I adjusted my code and my project finally worked. My HTML document >>>>>> was properly validated by my schema. But I have a new problem. This is my >>>>>> HTML code: >>>>>> >>>>>> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >>>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>>>>> http://www.TedTheSpeedlearner.com >>>>>> SVG_Ellipse_Webpage_XML_Schema.xsd"> >>>>>> <head> >>>>>> <title>SVG Ellipse</title> >>>>>> <link rel="stylesheet" type="text/css" href=" >>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css >>>>>> "/> >>>>>> <script language="javascript" src=" >>>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js >>>>>> "/> >>>>>> </head> >>>>>> <body onload="Setup()"> >>>>>> <svg id="Image_Box"> >>>>>> <ellipse id="My_Ellipse"/> >>>>>> </svg> >>>>>> </body> >>>>>> </html> >>>>>> >>>>>> When I open this in the eXist database, the run button is grayed >>>>>> out. Is there something wrong with my code? >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Exist-open mailing list >>>>>> Exi...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>>> >>>>> _______________________________________________ >>>> Exist-open mailing list >>>> Exi...@li... >>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>> >>> _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Ted H. <meg...@gm...> - 2024-06-22 09:41:09
|
if I owned a filesystem and a simple webservice, then I would do that. But I don't have such things. All I have is a simple computer and I'm just someone who experiments with this software at home. I try to tutor people on social media. When I try to open eXide, it shows me an error message. It says it seem that another version of eXide has been used from this browser before. If you experience any display issues, please clear your browser's cache. If I clear my browser's cache, I will clear a lot of things I don't want to destroy. Is there some workaround for this? ---------- Forwarded message --------- From: Claudius Teodorescu <cla...@gm...> Date: Sat, Jun 22, 2024, 3:08 AM Subject: Re: [Exist-open] Still trying to validate an XML Schema To: Ted Hickox <meg...@gm...> What about testing with those files stored in a filesystem and served by a simple webserver? On Fri, 21 Jun 2024, 23:13 Ted Hickox, <meg...@gm...> wrote: > Thanks for the information but I don't think it will help in this case. > Every time I open the eXide program, I open SVG_Ellipse.js. I look at the > file type in the box on the upper right corner of the screen and it insists > that the file is an Xquery. When I adjust it to javascript, I get an > assignment in conditional expression error. > > A similar thing happens when I open the SVG_Ellipse.html file. The file > type insists that the file is an XML document when in reality it's a HTML > document. And I can't seem to change those documents permanently. Why > does this keep happening? > > On Fri, Jun 21, 2024 at 3:00 PM Claudius Teodorescu < > cla...@gm...> wrote: > >> Hi, >> >> Maybe it would be useful to use fetch() instead of XMLHttpRequest, and >> DOMParser to parse the SVG and extract data easily. >> >> Claudius >> >> https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch >> >> https://developer.mozilla.org/en-US/docs/Web/API/DOMParser >> >> >> On Fri, 21 Jun 2024, 22:39 Ted Hickox, <meg...@gm...> wrote: >> >>> Good afternoon. I finally took a better look at my code and noticed >>> that my file had been saved as an Xquery instead of a Javascript file. So >>> I copied and pasted my text to a new file. I destroyed the old file and >>> renamed the new file. That took care of the previous error. Now I have a >>> different error. It's called an assignment in a conditional error. Here >>> is the code again if you need to see it. >>> >>> var SVG_Data; >>> var Retrieved_Data; >>> var Attribute_List; >>> var Coordinate_List; >>> var Counter; >>> function Setup() { >>> SVG_Data = new XMLHttpRequest(); >>> SVG_Data.open("GET"," >>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>> true); >>> SVG_Data.onreadystatechange = function () { >>> if (SVG_Data.readyState = 4) { >>> Retrieved_Data = SVG_Data.responseText; >>> Retrieved_Data = Retrieved_Data.split("*"); >>> Attribute_List = ""; >>> Coordinate_List = ""; >>> for (Counter = 0; Counter < 8; Counter++) { >>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>> Counter = Counter + 1; >>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>> Attribute_List = Attribute_List.split("*"); >>> Coordinate_List = Coordinate_List.split("*"); >>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>> for (Counter = 0; Counter < 4; Counter++) { >>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>> '" + Coordinate_List[Counter] + "'";} >>> Coordinate = Coordinate + ">"; >>> document.getElementById("Image_Box").innerHTML = Coordinate; >>> } >>> }; >>> } >>> SVG_Data.send(); >>> >>> On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> wrote: >>> >>>> I wasn't aware that the eXist database had the arrow on the bottom of >>>> the screen. I clicked the arrow and the schema for my HTML page appeared. >>>> But I also discovered another error in my code. This involves the >>>> javascript document that my HTML document references in my script tag. >>>> >>>> The error states that I have an unexpected token and it refers to my >>>> SVG_Data variable. I have no idea what a token is or why SVG_Data was >>>> considered a token. Here is my javascript code: >>>> >>>> var SVG_Data >>>> var Retrieved_Data >>>> var Attribute_List >>>> var Coordinate_List >>>> var Counter >>>> function Setup() { >>>> SVG_Data = new XMLHttpRequest(); >>>> SVG_Data.open("GET"," >>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >>>> true); >>>> SVG_Data.onreadystatechange = function () { >>>> if (SVG_Data.readyState = 4) { >>>> Retrieved_Data = SVG_Data.responseText; >>>> Retrieved_Data = Retrieved_Data.split("*"); >>>> Attribute_List = ""; >>>> Coordinate_List = ""; >>>> for (Counter = 0; Counter < 8; Counter++) { >>>> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >>>> Counter = Counter + 1; >>>> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >>>> Attribute_List = Attribute_List.split("*"); >>>> Coordinate_List = Coordinate_List.split("*"); >>>> Coordinate = "<ellipse id = 'My_Ellipse'"; >>>> for (Counter = 0; Counter < 4; Counter++) { >>>> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = >>>> '" + Coordinate_List[Counter] + "'";} >>>> Coordinate = Coordinate + ">" >>>> document.getElementById("Image_Box").innerHTML = Coordinate; >>>> } >>>> } >>>> SVG_Data.send(); >>>> >>>> I'm presuming that my SVG_Data becomes an object and that a new >>>> XMLHTTPRequest is stored in this object. Or is it that when the variable >>>> SVG_Data is equalled to the new XMLHTTPRequest that the variable just >>>> becomes an programming object. I don't seem to have a full grasp on the >>>> Document Object Model. But I'm trying to grasp this concept as fast as I >>>> can. >>>> >>>> On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < >>>> ml-...@fl...> wrote: >>>> >>>>> Hi Ted, >>>>> >>>>> i assume "*open in the eXist database*" means to open the file in >>>>> *eXide*. If yes, then check the file type in the upper right corner. >>>>> If it's HTML, you can't "run" or "eval" it in eXide: >>>>> >>>>> >>>>> Changing the file type to "xquery" should at least enable the "eval" >>>>> button. >>>>> >>>>> For static HTML files (as in your case), you can use the arrow symbol >>>>> in the lower left corner of the code area to open the file in a new browser >>>>> tab: >>>>> >>>>> >>>>> Greetings, >>>>> Florian >>>>> >>>>> >>>>> Am 20.06.24 um 01:40 schrieb Ted Hickox: >>>>> >>>>> I adjusted my code and my project finally worked. My HTML document >>>>> was properly validated by my schema. But I have a new problem. This is my >>>>> HTML code: >>>>> >>>>> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >>>>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>>>> http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> >>>>> <head> >>>>> <title>SVG Ellipse</title> >>>>> <link rel="stylesheet" type="text/css" href=" >>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css >>>>> "/> >>>>> <script language="javascript" src=" >>>>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js >>>>> "/> >>>>> </head> >>>>> <body onload="Setup()"> >>>>> <svg id="Image_Box"> >>>>> <ellipse id="My_Ellipse"/> >>>>> </svg> >>>>> </body> >>>>> </html> >>>>> >>>>> When I open this in the eXist database, the run button is grayed out. >>>>> Is there something wrong with my code? >>>>> >>>>> >>>>> _______________________________________________ >>>>> Exist-open mailing list >>>>> Exi...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>> >>>> _______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >> |
From: Claudius T. <cla...@gm...> - 2024-06-21 20:01:03
|
Hi, Maybe it would be useful to use fetch() instead of XMLHttpRequest, and DOMParser to parse the SVG and extract data easily. Claudius https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch https://developer.mozilla.org/en-US/docs/Web/API/DOMParser On Fri, 21 Jun 2024, 22:39 Ted Hickox, <meg...@gm...> wrote: > Good afternoon. I finally took a better look at my code and noticed that > my file had been saved as an Xquery instead of a Javascript file. So I > copied and pasted my text to a new file. I destroyed the old file and > renamed the new file. That took care of the previous error. Now I have a > different error. It's called an assignment in a conditional error. Here > is the code again if you need to see it. > > var SVG_Data; > var Retrieved_Data; > var Attribute_List; > var Coordinate_List; > var Counter; > function Setup() { > SVG_Data = new XMLHttpRequest(); > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", > true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState = 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" > + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">"; > document.getElementById("Image_Box").innerHTML = Coordinate; > } > }; > } > SVG_Data.send(); > > On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> wrote: > >> I wasn't aware that the eXist database had the arrow on the bottom of the >> screen. I clicked the arrow and the schema for my HTML page appeared. But >> I also discovered another error in my code. This involves the javascript >> document that my HTML document references in my script tag. >> >> The error states that I have an unexpected token and it refers to my >> SVG_Data variable. I have no idea what a token is or why SVG_Data was >> considered a token. Here is my javascript code: >> >> var SVG_Data >> var Retrieved_Data >> var Attribute_List >> var Coordinate_List >> var Counter >> function Setup() { >> SVG_Data = new XMLHttpRequest(); >> SVG_Data.open("GET"," >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", >> true); >> SVG_Data.onreadystatechange = function () { >> if (SVG_Data.readyState = 4) { >> Retrieved_Data = SVG_Data.responseText; >> Retrieved_Data = Retrieved_Data.split("*"); >> Attribute_List = ""; >> Coordinate_List = ""; >> for (Counter = 0; Counter < 8; Counter++) { >> Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; >> Counter = Counter + 1; >> Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} >> Attribute_List = Attribute_List.split("*"); >> Coordinate_List = Coordinate_List.split("*"); >> Coordinate = "<ellipse id = 'My_Ellipse'"; >> for (Counter = 0; Counter < 4; Counter++) { >> Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" >> + Coordinate_List[Counter] + "'";} >> Coordinate = Coordinate + ">" >> document.getElementById("Image_Box").innerHTML = Coordinate; >> } >> } >> SVG_Data.send(); >> >> I'm presuming that my SVG_Data becomes an object and that a new >> XMLHTTPRequest is stored in this object. Or is it that when the variable >> SVG_Data is equalled to the new XMLHTTPRequest that the variable just >> becomes an programming object. I don't seem to have a full grasp on the >> Document Object Model. But I'm trying to grasp this concept as fast as I >> can. >> >> On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < >> ml-...@fl...> wrote: >> >>> Hi Ted, >>> >>> i assume "*open in the eXist database*" means to open the file in >>> *eXide*. If yes, then check the file type in the upper right corner. If >>> it's HTML, you can't "run" or "eval" it in eXide: >>> >>> >>> Changing the file type to "xquery" should at least enable the "eval" >>> button. >>> >>> For static HTML files (as in your case), you can use the arrow symbol in >>> the lower left corner of the code area to open the file in a new browser >>> tab: >>> >>> >>> Greetings, >>> Florian >>> >>> >>> Am 20.06.24 um 01:40 schrieb Ted Hickox: >>> >>> I adjusted my code and my project finally worked. My HTML document was >>> properly validated by my schema. But I have a new problem. This is my >>> HTML code: >>> >>> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >>> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >>> http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> >>> <head> >>> <title>SVG Ellipse</title> >>> <link rel="stylesheet" type="text/css" href=" >>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> >>> <script language="javascript" src=" >>> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> >>> </head> >>> <body onload="Setup()"> >>> <svg id="Image_Box"> >>> <ellipse id="My_Ellipse"/> >>> </svg> >>> </body> >>> </html> >>> >>> When I open this in the eXist database, the run button is grayed out. >>> Is there something wrong with my code? >>> >>> >>> _______________________________________________ >>> Exist-open mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >> _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Ted H. <meg...@gm...> - 2024-06-21 19:38:29
|
Good afternoon. I finally took a better look at my code and noticed that my file had been saved as an Xquery instead of a Javascript file. So I copied and pasted my text to a new file. I destroyed the old file and renamed the new file. That took care of the previous error. Now I have a different error. It's called an assignment in a conditional error. Here is the code again if you need to see it. var SVG_Data; var Retrieved_Data; var Attribute_List; var Coordinate_List; var Counter; function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET"," http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState = 4) { Retrieved_Data = SVG_Data.responseText; Retrieved_Data = Retrieved_Data.split("*"); Attribute_List = ""; Coordinate_List = ""; for (Counter = 0; Counter < 8; Counter++) { Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; Counter = Counter + 1; Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} Attribute_List = Attribute_List.split("*"); Coordinate_List = Coordinate_List.split("*"); Coordinate = "<ellipse id = 'My_Ellipse'"; for (Counter = 0; Counter < 4; Counter++) { Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" + Coordinate_List[Counter] + "'";} Coordinate = Coordinate + ">"; document.getElementById("Image_Box").innerHTML = Coordinate; } }; } SVG_Data.send(); On Thu, Jun 20, 2024 at 7:52 PM Ted Hickox <meg...@gm...> wrote: > I wasn't aware that the eXist database had the arrow on the bottom of the > screen. I clicked the arrow and the schema for my HTML page appeared. But > I also discovered another error in my code. This involves the javascript > document that my HTML document references in my script tag. > > The error states that I have an unexpected token and it refers to my > SVG_Data variable. I have no idea what a token is or why SVG_Data was > considered a token. Here is my javascript code: > > var SVG_Data > var Retrieved_Data > var Attribute_List > var Coordinate_List > var Counter > function Setup() { > SVG_Data = new XMLHttpRequest(); > SVG_Data.open("GET"," > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", > true); > SVG_Data.onreadystatechange = function () { > if (SVG_Data.readyState = 4) { > Retrieved_Data = SVG_Data.responseText; > Retrieved_Data = Retrieved_Data.split("*"); > Attribute_List = ""; > Coordinate_List = ""; > for (Counter = 0; Counter < 8; Counter++) { > Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; > Counter = Counter + 1; > Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} > Attribute_List = Attribute_List.split("*"); > Coordinate_List = Coordinate_List.split("*"); > Coordinate = "<ellipse id = 'My_Ellipse'"; > for (Counter = 0; Counter < 4; Counter++) { > Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" > + Coordinate_List[Counter] + "'";} > Coordinate = Coordinate + ">" > document.getElementById("Image_Box").innerHTML = Coordinate; > } > } > SVG_Data.send(); > > I'm presuming that my SVG_Data becomes an object and that a new > XMLHTTPRequest is stored in this object. Or is it that when the variable > SVG_Data is equalled to the new XMLHTTPRequest that the variable just > becomes an programming object. I don't seem to have a full grasp on the > Document Object Model. But I'm trying to grasp this concept as fast as I > can. > > On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < > ml-...@fl...> wrote: > >> Hi Ted, >> >> i assume "*open in the eXist database*" means to open the file in *eXide*. >> If yes, then check the file type in the upper right corner. If it's HTML, >> you can't "run" or "eval" it in eXide: >> >> >> Changing the file type to "xquery" should at least enable the "eval" >> button. >> >> For static HTML files (as in your case), you can use the arrow symbol in >> the lower left corner of the code area to open the file in a new browser >> tab: >> >> >> Greetings, >> Florian >> >> >> Am 20.06.24 um 01:40 schrieb Ted Hickox: >> >> I adjusted my code and my project finally worked. My HTML document was >> properly validated by my schema. But I have a new problem. This is my >> HTML code: >> >> <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" >> http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" >> http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> >> <head> >> <title>SVG Ellipse</title> >> <link rel="stylesheet" type="text/css" href=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> >> <script language="javascript" src=" >> http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> >> </head> >> <body onload="Setup()"> >> <svg id="Image_Box"> >> <ellipse id="My_Ellipse"/> >> </svg> >> </body> >> </html> >> >> When I open this in the eXist database, the run button is grayed out. Is >> there something wrong with my code? >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > |
From: Ted H. <meg...@gm...> - 2024-06-21 00:52:27
|
I wasn't aware that the eXist database had the arrow on the bottom of the screen. I clicked the arrow and the schema for my HTML page appeared. But I also discovered another error in my code. This involves the javascript document that my HTML document references in my script tag. The error states that I have an unexpected token and it refers to my SVG_Data variable. I have no idea what a token is or why SVG_Data was considered a token. Here is my javascript code: var SVG_Data var Retrieved_Data var Attribute_List var Coordinate_List var Counter function Setup() { SVG_Data = new XMLHttpRequest(); SVG_Data.open("GET"," http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.xq", true); SVG_Data.onreadystatechange = function () { if (SVG_Data.readyState = 4) { Retrieved_Data = SVG_Data.responseText; Retrieved_Data = Retrieved_Data.split("*"); Attribute_List = ""; Coordinate_List = ""; for (Counter = 0; Counter < 8; Counter++) { Attribute_List = Attribute_List + Retrieved_Data[Counter] + "*"; Counter = Counter + 1; Coordinate_List = Coordinate_List + Retrieved_Data[Counter] + "*";} Attribute_List = Attribute_List.split("*"); Coordinate_List = Coordinate_List.split("*"); Coordinate = "<ellipse id = 'My_Ellipse'"; for (Counter = 0; Counter < 4; Counter++) { Coordinate = Coordinate + " " + Attribute_List[Counter] + " = '" + Coordinate_List[Counter] + "'";} Coordinate = Coordinate + ">" document.getElementById("Image_Box").innerHTML = Coordinate; } } SVG_Data.send(); I'm presuming that my SVG_Data becomes an object and that a new XMLHTTPRequest is stored in this object. Or is it that when the variable SVG_Data is equalled to the new XMLHTTPRequest that the variable just becomes an programming object. I don't seem to have a full grasp on the Document Object Model. But I'm trying to grasp this concept as fast as I can. On Thu, Jun 20, 2024 at 10:57 AM Florian Schmitt < ml-...@fl...> wrote: > Hi Ted, > > i assume "*open in the eXist database*" means to open the file in *eXide*. > If yes, then check the file type in the upper right corner. If it's HTML, > you can't "run" or "eval" it in eXide: > > > Changing the file type to "xquery" should at least enable the "eval" > button. > > For static HTML files (as in your case), you can use the arrow symbol in > the lower left corner of the code area to open the file in a new browser > tab: > > > Greetings, > Florian > > > Am 20.06.24 um 01:40 schrieb Ted Hickox: > > I adjusted my code and my project finally worked. My HTML document was > properly validated by my schema. But I have a new problem. This is my > HTML code: > > <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" href=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> > <script language="javascript" src=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > > When I open this in the eXist database, the run button is grayed out. Is > there something wrong with my code? > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |
From: Florian S. <ml-...@fl...> - 2024-06-20 15:56:41
|
Hi Ted, i assume "/open in the eXist database/" means to open the file in *eXide*. If yes, then check the file type in the upper right corner. If it's HTML, you can't "run" or "eval" it in eXide: Changing the file type to "xquery" should at least enable the "eval" button. For static HTML files (as in your case), you can use the arrow symbol in the lower left corner of the code area to open the file in a new browser tab: Greetings, Florian Am 20.06.24 um 01:40 schrieb Ted Hickox: > I adjusted my code and my project finally worked. My HTML document > was properly validated by my schema. But I have a new problem. > This is my HTML code: > > <html xmlns="http://www.TedTheSpeedlearner.com > <http://www.TedTheSpeedlearner.com>" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.TedTheSpeedlearner.com > <http://www.TedTheSpeedlearner.com> SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" > href="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> > <script language="javascript" > src="http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > > When I open this in the eXist database, the run button is grayed > out. Is there something wrong with my code? |
From: Ted H. <meg...@gm...> - 2024-06-19 23:40:38
|
I adjusted my code and my project finally worked. My HTML document was properly validated by my schema. But I have a new problem. This is my HTML code: <html xmlns="http://www.TedTheSpeedlearner.com" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.TedTheSpeedlearner.com SVG_Ellipse_Webpage_XML_Schema.xsd"> <head> <title>SVG Ellipse</title> <link rel="stylesheet" type="text/css" href=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> <script language="javascript" src=" http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> </head> <body onload="Setup()"> <svg id="Image_Box"> <ellipse id="My_Ellipse"/> </svg> </body> </html> When I open this in the eXist database, the run button is grayed out. Is there something wrong with my code? On Tue, Jun 18, 2024 at 12:50 AM Alexander Henket <ah...@xs...> wrote: > Not sure if it hits what you ask, but there seems to be a syntax issue in > the parentheses after return. And validate:jaxv will give me what I think > you are after: > > *xquery version* "3.0"; > *import module* *namespace* *validation*=" > http://exist-db.org/xquery/validation"; > > *let* *$schema* := *xs:anyURI*('/db/apps/tmp/....xsd') > *let* *$instance* := *xs:anyURI*('/db/apps/tmp/....xml') > > *return* ( > *validation:clear-grammar-cache*(), > *validation:jaxv-report*(*$instance*, *$schema*) > ) > > > Yields: > > 0 <report><status>valid</status><duration unit="msec">4333 > </duration></report> > > Note that the leading zero is from clear-grammar-cache(), and the xml bit > is from jaxv-report. Depending on eXist-db or up, you might want to use > xquery 3.1 instead of 3.0 too, but the above works in eXist-db 6. > > Hope this helps > > Regards > > Alexander Henket > > Op 18 jun 2024, om 02:40 heeft Ted Hickox <meg...@gm...> het > volgende geschreven: > > Perhaps I didn't make myself clear in my last post. It appears the Jaxp > function that I added to my xq code worked well enough to detect an error. > The problem is I don't know what error I created. > > Here is my xquery: > > xquery version "3.0"; > > import module namespace validation="http://exist-db.org/xquery/validation > "; > > let $schema := > xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML_Schema.xsd') > > let $instance := > xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML.xml') > > return > > (validation:clear-grammar-cache()) > > (validation:jaxp-report($instance, $schema)) > > > Here is my instance: > > > <html xmlns="http://www.TedTheSpeedlearner.com > <http://www.tedthespeedlearner.com/>" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://www.TedTheSpeedlearner.com <http://www.tedthespeedlearner.com/> > SVG_Ellipse_Webpage_XML_Schema.xsd"> > <head> > <title>SVG Ellipse</title> > <link rel="stylesheet" type="text/css" href=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.css"/> > <script language="javascript" src=" > http://localhost:8080/exist/rest/db/apps/HTML_Student/SVG_Ellipse.js"/> > </head> > <body onload="Setup()"> > <svg id="Image_Box"> > <ellipse id="My_Ellipse"/> > </svg> > </body> > </html> > > > > And here is my schema: > > > <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:target=" > http://www.TedTheSpeedlearner.com <http://www.tedthespeedlearner.com/>" > targetNamespace="http://www.TedTheSpeedlearner.com > <http://www.tedthespeedlearner.com/>" elementFormDefault="qualified"> > <complexType name="HeadType"> > <sequence> > <element name="head" type="target:TitleType"/> > <element name="body" type="target:BodyType"/> > </sequence> > </complexType> > <complexType name="TitleType"> > <sequence> > <element name="title" type="string"/> > <element name="link" type="target:LinkType"/> > <element name="script" type="target:ScriptType"/> > </sequence> > </complexType> > <complexType name="LinkType"> > <attribute name="rel" type="string"/> > <attribute name="type" type="string"/> > <attribute name="href" type="string"/> > </complexType> > <complexType name="ScriptType"> > <attribute name="language" type="string"/> > <attribute name="src" type="string"/> > </complexType> > <complexType name="BodyType"> > <sequence> > <element name="svg" type="target:SvgType"/> > </sequence> > <attribute name="onload" type="string"/> > </complexType> > <complexType name="SvgType"> > <sequence> > <element name="ellipse" type="target:EllipseType"/> > </sequence> > <attribute name="id" type="string"/> > </complexType> > <complexType name="EllipseType"> > <attribute name="id" type="string"/> > </complexType> > <element name="html" type="target:HeadType"/> > </schema> > > > And what was the error? eXist stated that it expected a function, but it > got an xs:integer in line 6 column 2. I can't determine what I did wrong. > Can you assist me? > > On Tue, Jun 11, 2024 at 11:19 AM Florian Schmitt < > ml-...@fl...> wrote: > >> Hi Ted, >> >> i'm not sure if it works with validation:jaxp-report, too, but i got a >> simple example running with validation:jaxv-report. Schema and XML >> instance are copied from the W3 Schools example: >> >> https://www.w3schools.com/xml/schema_intro.asp >> >> ------------------------------ >> schema.xsd: >> ------------------------------ >> <?xml version="1.0"?> >> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> >> >> <xs:element name="note"> >> <xs:complexType> >> <xs:sequence> >> <xs:element name="to" type="xs:string"/> >> <xs:element name="from" type="xs:string"/> >> <xs:element name="heading" type="xs:string"/> >> <xs:element name="body" type="xs:string"/> >> </xs:sequence> >> </xs:complexType> >> </xs:element> >> >> </xs:schema> >> >> ------------------------------ >> note.xml: >> ------------------------------ >> <note> >> <to>Tove</to> >> <from>Jani</from> >> <heading>Reminder</heading> >> <body>Don't forget me this weekend!</body> >> </note> >> >> ------------------------------ >> schema-test.xq: >> ------------------------------ >> xquery version "3.0"; >> import module namespace >> validation="http://exist-db.org/xquery/validation"; >> let $schema := xs:anyURI('/db/xmldata/schema.xsd') >> let $instance := xs:anyURI('/db/xmldata/note.xml') >> return >> (validation:clear-grammar-cache(), validation:jaxv-report($instance, >> $schema)) >> >> ------------------------------ >> Output (with eXist-db 5.2.0 - sorry, currently no 6.xx available: >> ------------------------------ >> 0 >> <report> >> <status>valid</status> >> <duration unit="msec">13</duration> >> </report> >> >> HTH >> Florian >> >> >> Am 09.06.24 um 21:41 schrieb Ted Hickox: >> > I have a small update. I made a couple of changes to my code: >> > >> > xquery version "3.0"; >> > import module namespace >> > validation="http://exist-db.org/xquery/validation >> > <http://exist-db.org/xquery/validation>"; >> > let $schema := >> > xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML_Schema.xsd') >> > let $instance := >> > xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML.xml') >> > return >> > (validation:clear-grammar-cache()) >> > (validation:jaxp-report($instance, $schema)) >> > >> > This fixed a bunch of problems. But when I ran the code, I got this >> > information: >> > >> > image.png >> > >> > I still don't know what error I made. >> > eption> >> > >> <path>/db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq</path> >> > <message>err:XPTY0004 Type error: expected function, got xs:integer >> > [at line 6, column 2, source: >> > /db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq]</message> >> > </exception> >> > >> > exception>exception> >> > >> <path>/db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq</path> >> > <message>err:XPTY0004 Type error: expected function, got xs:integer >> > [at line 6, column 2, source: >> > /db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq]</message> >> > </exception> >> > >> <path>/db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq</path> >> > <message>err:XPTY0004 Type error: expected function, got xs:integer >> > [at line 6, column 2, source: >> > /db/apps/HTML_Student/SVG_Ellipse_Webpage_XQuery_Validator.xq]</message> >> > </exception> >> > >> > On Sun, Jun 9, 2024 at 1:58 PM Ted Hickox <meg...@gm... >> > <mailto:meg...@gm...>> wrote: >> > >> > A few months ago I was informed that the function >> > validation:validate-report had been depreciated and is no longer >> > available in the eXist database. So someone suggested I use the >> > validate:jaxp-report function. Shortly after I received this >> > suggestion, I tried to use it. But it failed. Unfortunately my >> > life became very busy and I had to abandon my project. Now that >> > my life is a little calmer, I tried to play with this computer >> > code again. And still something is not functioning correctly. >> > I'm still not sure what I'm doing wrong. >> > >> > xquery version "3.0"; >> > import module namespace >> > validation="http://exist-db.org/xquery/validation >> > <http://exist-db.org/xquery/validation>"; >> > let $schema := >> > >> xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML_Schema.xsd') >> > let $instance := >> > xs:anyURI('/db/apps/HTML_Student/SVG_Ellipse_Webpage_XML.xml') >> > return >> > (validation:clear-grammar-cache(); >> > validation:jaxp-report($instance as item(), $enable-grammar-cache >> > as xs:boolean, $catalogs as item()*) as node()) >> > >> > >> > >> > _______________________________________________ >> > Exist-open mailing list >> > Exi...@li... >> > https://lists.sourceforge.net/lists/listinfo/exist-open >> >> >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > > > |
From: Florian S. <ml-...@fl...> - 2024-06-18 05:53:53
|
Hi Ted, using validation:jaxp-report() will work, too. But in fact there are two problems with your xquery: 1.) It seems you're trying to construct a sequence as return value, but the syntax isn't correct (comma missing, superfluous round brackets). 2.) In current eXist-db versions, there's no function with signature validation:jaxp-report($instance, $schema). It should work after changing the last three lines of your xquery to: return (validation:clear-grammar-cache(), validation:jaxp-report($instance, xs:boolean("false"), $schema)) Since you don't want to use grammar caching, you may even drop the first part of the return clause and use: return validation:jaxp-report($instance, xs:boolean("false"), $schema) Both version should work. HTH FLorian |