[x3d-public] The next step. Code generating serializers.

John Carlson yottzumm at gmail.com
Mon Apr 20 02:52:42 PDT 2020


See:

https://stackoverflow.com/questions/13473268/xslt-to-generate-another-xslt-script


Note the primary thing recommended is not in Don's XSLT.
coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$ grep '<xsl:element name="xsl:text">' *xslt

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$ grep '"xsl:text"' *xslt

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$ grep "'xsl:text'" *xslt

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$
=================
Note that no other XSL elements are generated in Don's XSLT:

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$ grep "'xsl:" *xslt
X3dTidy.xslt:            <xsl:variable name="xsl-vendor"
select="system-property('xsl:vendor')"/>
X3dToVrml97.xslt:  <xsl:value-of select="system-property('xsl:vendor')"/>
X3dToXhtml.xslt:                <meta name="generator" content="XSLT
processor {system-property('xsl:vendor')}"/>

coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/
www.web3d.org/x3d/stylesheets
$ grep '"xsl:' *xslt

Anyone care to help on this endeavor? Or can point me in the right
direction?

Should I read this book?

https://www.oreilly.com/library/view/xslt-cookbook/0596003722/ch10s09.html


Thank,

John



On Mon, Apr 20, 2020 at 4:09 AM John Carlson <yottzumm at gmail.com> wrote:

> I think this might take a PhD.  Here why:
>
> 1.  I generate from JSON and XML
> 2.  I generated many languages
> 3.  I have a style of including SF/MF in serializers or not
> 4.  I have a style of flat code and hierarchical code
> 5.  I've customized each serial.
>
> So I'm thinking this might take a generic class with several type
> parameters?
>
> Any PhD's care to help me design this generator of generators?
>
> Thanks,
>
> John
>
> On Mon, Apr 20, 2020 at 3:37 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> I've got all these serialzers. I'm going to try to take the next step,
>> and code generate the serializers!
>>
>> Is anyone code generating XSLT?
>>
>> Thanks,
>>
>> John
>>
>> $ find pythonSAI/ x* X* /c/x3d-code/www.web3d.org/ -type f -name
>> '*Serializer*'|less|grep -v html |grep -v .log|grep -v backup|grep -v
>> cplusplus
>> pythonSAI/PythonSerializer.js
>> x3droundtrip/DOMSerializer.js
>> x3dserve/DOM2JSONSerializer.js
>> X3DJSONLD/src/main/node/AframeSerializer.js
>> X3DJSONLD/src/main/node/DOM2JSONSerializer.js
>> X3DJSONLD/src/main/node/DOMSerializer.js
>> X3DJSONLD/src/main/node/JavaScriptSerializer.js
>> X3DJSONLD/src/main/node/JavaSerializer.js
>> X3DJSONLD/src/main/node/JSONSerializer.js
>> X3DJSONLD/src/main/node/NodeSerializer.js
>> X3DJSONLD/src/main/node/PythonSerializer.js
>> X3DJSONLD/src/main/node/StripNumberSerializer.js
>> X3DJSONLD/src/main/node/Three2Serializer.js
>> X3DJSONLD/src/main/node/ThreeSerializer.js
>> X3DJSONLD/src/main/node/VRMLScriptSerializer.js
>> X3DJSONLD/src/main/node/X_ITESerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/nashorn/node/JavaScriptSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pyjnius/PythonPipeliningSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pyjnius/PythonSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pythonapi/PythonAssignSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pythonapi/PythonKwargsSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pythonapi/PythonPipeliningSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/src/python/pythonapi/PythonSerializer.js
>> /c/x3d-code/www.web3d.org/x3d/stylesheets/node/JavaScriptSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/node/JavaScriptSerializer.js.new
>> /c/x3d-code/www.web3d.org/x3d/stylesheets/node/JavaScriptSerializer.old
>> /c/x3d-code/www.web3d.org/x3d/stylesheets/node/NodeSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/stylesheets/vrmlscript/VRMLScriptSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/externals/stylesheets/java/nashorn/node/JavaScriptSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/externals/stylesheets/java/src/python/pyjnius/PythonPipeliningSerializer.js
>> /c/x3d-code/
>> www.web3d.org/x3d/tools/X3dEdit3.3/X3D/src/org/web3d/x3d/externals/stylesheets/java/src/python/pyjnius/PythonSerializer.js
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200420/fd1428ae/attachment-0001.html>


More information about the x3d-public mailing list