Re: Problem with Fore's undefined attributes in eXide

Jean-Paul Rehr <[email protected]> Wed, 24 Sep 2025 12:30:43 +0200
Newsgroups gmane.text.xml.exist
Message-ID <CALcdGbyDrTkq9bf-hpbrGFAOrE3F+ko-M+t+VDeKCZWtkoSNOA@mail.gmail.com>
--===============8254011670631551979==
Content-Type: multipart/alternative; boundary="0000000000007503d5063f898cb4"

--0000000000007503d5063f898cb4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dear Henrik,

eXist can handle HTML documents in one of two ways:
1. if we want the HTML parsed as nodes and query-able or usable as
templates, it must be XML compliant in format (important: this has nothing
to do with XHTML namespace)
2. otherwise HTML file must be stored as a binary document...in which case
it is no longer nodes and no longer query-able ad it would have to be
streamed to the browser as such

Option 1 means you would have <fx-fore create-nodes=3D""></fx-fore> in your
document. You can then output it using the following declarations in your
query prolog (i.e. serialization):

declare namespace output =3D "http://www.w3.org/2010/xslt-xquery-serializat=
ion
";

declare option output:method "html5";
declare option output:media-type "text/html";

Your html will appear in the browser as <fx-fore create-nodes>.


HTH,
JPR

On Tue, Sep 23, 2025 at 5:23=E2=80=AFPM Henrik Nielsen <[email protected]=
om>
wrote:

> I have just started using Fore with exist.db and have run into the proble=
m
> that eXide will not accept undefined attributes in Fore's custom elements=
.
> So "<fx-fore create-nodes>" (without quotation marks in my page) is not
> treated as a valid opening tag since the attribute "create-nodes" is
> expected to be given a value. Does exist.db parse HTML as XML, disregardi=
ng
> both the .html extension and the valid doctype declaration ("<!DOCTYPE
> html>")? Or have I made some stupid mistake?
>
> The list archive was offline and I didn't find anything relevant at Stack
> Overflow.
>
> Henrik Thiil Nielsen
> _______________________________________________
> Exist-open mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>

--0000000000007503d5063f898cb4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Dear Henrik,</div><div><br></div><div>eXist can handl=
e HTML documents=C2=A0in one of two ways:</div><div>1. if we want the HTML =
parsed as nodes and query-able or usable as templates, it must be XML compl=
iant in format (important: this has nothing to do with XHTML namespace)</di=
v><div>2. otherwise HTML file must be stored as a binary document...in whic=
h case it is no longer nodes and no longer query-able ad it would have to b=
e streamed to the browser as such</div><div><br></div><div>Option 1 means y=
ou would have=C2=A0<span style=3D"font-family:monospace">&lt;fx-fore create=
-nodes=3D&quot;&quot;&gt;&lt;/fx-fore&gt;</span> in your document. You can =
then output it using the following declarations in your query prolog (i.e. =
serialization):</div><div><br></div><div><span style=3D"font-family:monospa=
ce">declare namespace output =3D &quot;<a href=3D"http://www.w3.org/2010/xs=
lt-xquery-serialization">http://www.w3.org/2010/xslt-xquery-serialization</=
a>&quot;;</span></div><div><span style=3D"font-family:monospace"><br></span=
></div><div><span style=3D"font-family:monospace">declare option output:met=
hod &quot;html5&quot;;<br>declare option output:media-type &quot;text/html&=
quot;;</span></div><div><br></div><div>Your html will appear in the browser=
 as=C2=A0&lt;fx-fore create-nodes&gt;.</div><div><br></div><div><br></div><=
div>HTH,</div><div>JPR</div></div><br><div class=3D"gmail_quote gmail_quote=
_container"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Sep 23, 2025 at 5=
:23=E2=80=AFPM Henrik Nielsen &lt;<a href=3D"mailto:[email protected]">=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D=
"font-size:large">I have just started using Fore with exist.db and have run=
 into the problem that eXide will not accept undefined attributes in Fore&#=
39;s custom elements. So &quot;&lt;fx-fore create-nodes&gt;&quot; (without =
quotation marks in my page) is not treated as a valid opening tag since the=
 attribute &quot;create-nodes&quot; is expected to be given a value. Does e=
xist.db parse HTML as XML, disregarding both the .html extension and the va=
lid doctype declaration (&quot;&lt;!DOCTYPE html&gt;&quot;)? Or have I made=
 some stupid mistake?=C2=A0</div><div class=3D"gmail_default" style=3D"font=
-size:large"><br></div><div class=3D"gmail_default" style=3D"font-size:larg=
e">The list archive was offline and I didn&#39;t find anything relevant at =
Stack Overflow.</div><div class=3D"gmail_default" style=3D"font-size:large"=
><br></div><div class=3D"gmail_default" style=3D"font-size:large">Henrik Th=
iil Nielsen</div></div>
_______________________________________________<br>
Exist-open mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">Exist=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/exist-open" rel=3D"=
noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listinfo/=
exist-open</a><br>
</blockquote></div>

--0000000000007503d5063f898cb4--


--===============8254011670631551979==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============8254011670631551979==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open

--===============8254011670631551979==--