Hi guys,
I think I’m slowly becoming an XSLT expert ;-) Jokes aside, I managed to write .xsl files that transform an XML description of a packet into C++ source and header files! Attached are the files: Have.xml, PacketHeader.xsl, PacketSource.xsl from which Have.h and Have.cpp are generated.
I’m using the Saxon engine to do the transformations with the commands:
Transform.exe -o Have.h Have.xml PacketHeader.xsl
Transform.exe -o Have.cpp Have.xml PacketSource.xsl
Portable Java and .NET builds of Saxon are available for download from the project’s SourceForge download page.
Let me know what you think!
Regards,
Peter
