Validation and prefigure

11 views
Skip to first unread message

Clark Wells

unread,
Apr 17, 2026, 12:01:56 PM (2 days ago) Apr 17
to PreTeXt support
Including prefigure diagrams causes jing to return "error: element 'prefigure' not allowed anywhere". For works in progress, this makes it hard to find other validation errors.

Are there plans to incorporate prefigure into the RELAX-NG schema for PreTeXt?


main.ptx

Rob Beezer

unread,
Apr 17, 2026, 5:41:09 PM (2 days ago) Apr 17
to pretext...@googlegroups.com
Dear Clark,

You are in luck, it was added just a few days ago.

To be precise, April 7, commit 90a33c733aa46dae9f127e995f3ec2f5eba8fc58.

I know Oscar did a release the day before, and will likely do one this weekend,
or so. Thus it should be in the CLI, and related tools, pretty soon now. So
make sure you have the latest, and upgrade when you see announcements.

Note that the PreTeXt schema just says "PreFigure can have anything inside the
pf:prefigure element". So you should never see an error about your PreFigure
code, which cuts both ways. Does PreFigure have its own schema? If so, I think
we can accomodate it inside the PreTeXt schema, or maybe figure out how to
validate the PF pieces by themselves.

Rob
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/7f5e34c3-2df9-45a7-91de-bfd13d66c60dn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/7f5e34c3-2df9-45a7-91de-
> bfd13d66c60dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

David Austin

unread,
Apr 17, 2026, 5:59:28 PM (2 days ago) Apr 17
to pretext...@googlegroups.com

Does PreFigure have its own schema?



On 4/17/26 09:01, 'Clark Wells' via PreTeXt support wrote:
> Including prefigure diagrams causes jing to return "error: element 'prefigure'
> not allowed anywhere". For works in progress, this makes it hard to find other
> validation errors.
>
> Are there plans to incorporate prefigure into the RELAX-NG schema for PreTeXt?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-suppo...@googlegroups.com <mailto:pretext-
> support+u...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/7f5e34c3-2df9-45a7-91de-bfd13d66c60dn%40googlegroups.com <https://
> groups.google.com/d/msgid/pretext-support/7f5e34c3-2df9-45a7-91de-
> bfd13d66c60dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "PreTeXt support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDAyMi5iZWV6ZXI.1776462065%40pnsh.

Rob Beezer

unread,
Apr 18, 2026, 1:10:08 PM (17 hours ago) Apr 18
to pretext...@googlegroups.com
Très bien!

Looks like there is a pretty clean way to incorporte the PF schema.

element pf:prefigure {

externalRef "prefigure.rnc"
}


But there are some details to sort out:

* Just where would a public copy of "prefigure.rnc" live? And how would it be
kept updated? (GitHub, pretextbook.org, PreTeXt repository?)

* PreTeXt puts #prefigure into the pf: namespace, while the PF schema begins at
the Diagram pattern for the #diagram element. I think some sort of shim can
sort this out.

David - feel free to remind me about this in a few weeks time when I can take a
closer look and we can coordinate, or maybe when we are together in the hotel
lobby in a couple months time?

Rob



On 4/17/26 14:59, David Austin wrote:
>
> Does PreFigure have its own schema?
>
>
> Mais oui:
>
> https://github.com/davidaustinm/prefigure/tree/main/prefig/resources/schema
> <https://github.com/davidaustinm/prefigure/tree/main/prefig/resources/schema>
>
>
>
> On 4/17/26 09:01, 'Clark Wells' via PreTeXt support wrote:
> > Including prefigure diagrams causes jing to return "error: element
> 'prefigure'
> > not allowed anywhere". For works in progress, this makes it hard to find
> other
> > validation errors.
> >
> > Are there plans to incorporate prefigure into the RELAX-NG schema for
> PreTeXt?
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "PreTeXt support" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> email
> > to pretext-suppo...@googlegroups.com <mailto:pretext-
> support%2Bunsu...@googlegroups.com> <mailto:pretext- <mailto:pretext->
> > support+u...@googlegroups.com
> <mailto:support%2Bunsu...@googlegroups.com>>.
> > To view this discussion visit https://groups.google.com/d/msgid/pretext-
> <https://groups.google.com/d/msgid/pretext->
> > support/7f5e34c3-2df9-45a7-91de-bfd13d66c60dn%40googlegroups.com
> <http://40googlegroups.com> <https://
> > groups.google.com/d/msgid/pretext-support/7f5e34c3-2df9-45a7-91de-
> <http://groups.google.com/d/msgid/pretext-support/7f5e34c3-2df9-45a7-91de->
> > bfd13d66c60dn%40googlegroups.com?utm_medium=email&utm_source=footer
> <http://40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pretext-suppo...@googlegroups.com <mailto:pretext-
> support%2Bunsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-
> support/MTAwMDAyMi5iZWV6ZXI.1776462065%40pnsh <https://groups.google.com/d/
> msgid/pretext-support/MTAwMDAyMi5iZWV6ZXI.1776462065%40pnsh>.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> CANXmVMCmPvvtZst7QE037Ot1ZxH3vae-q2g3YKGVaPL4aG%2B_5Q%40mail.gmail.com <https://
> groups.google.com/d/msgid/pretext-support/CANXmVMCmPvvtZst7QE037Ot1ZxH3vae-
> q2g3YKGVaPL4aG%2B_5Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.

David Austin

unread,
Apr 18, 2026, 3:45:28 PM (15 hours ago) Apr 18
to pretext...@googlegroups.com

David - feel free to remind me about this in a few weeks time when I can take a
closer look and we can coordinate, or maybe when we are together in the hotel
lobby in a couple months time?

That works best for me too.  I'll set a reminder!

David
 
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-suppo...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-support/MTAwMDA0NC5iZWV6ZXI.1776532206%40pnsh.
Reply all
Reply to author
Forward
0 new messages