<div dir="auto">Okay, I found parameter entities.   Interesting!</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 1, 2021 at 7:53 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="auto">All this well and good, but it does not handle the case where xsl:text and xsl:value-of nodes are reordered.   If an entity could be defined as XSL, that might be superior.</div><div dir="auto"><br></div><div dir="auto">gettext() with parameters in Python still seems superior.   Hmm.</div><div dir="auto"><br></div><div dir="auto">Help!</div><div dir="auto"><br></div><div dir="auto">John</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 1, 2021 at 7:19 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">So I’ve been considering how to make a single Xslt file which will produce X3DJSAIL, X3DPSAIL, autoclass files for foreign type interfaces, schemas, fieldTypes.js, mapToMethod.js, c,c++,c#, etc.   what I’ve figured out so far is we can put entities inside the stylesheet for portability and for different orderings, we can put entities inside entity definitions.   The first step is to translate the text in one of the stylesheets to entities, then put the entities and the text into a DTD file.   Then we can translate the entity strings in the DTD file to a different language in another DTD file, possibly using other entities for different orderings in entity definitions.<div dir="auto"><br></div><div dir="auto">After that, we can tackle the X3dToFoo.xslt code pile similarly.</div><div dir="auto"><br></div><div dir="auto">We can also generate target stylesheets with an entity resolver.</div><div dir="auto"><br></div><div dir="auto">In my serializers, I may be able to use something like gettext() to achieve different target languages.</div>
</blockquote></div></div>
</blockquote></div></div>