Re: XML Experts? (was: Code generator for packet classes!)

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

Attached Files:

Have.h 1K

Would you like to post a relpy?


This post is a reply to:
XML Experts? (was: Code generator for packet classes!)
Hello everybody, This is a call for XML experts to shed some light on the powers of XML in the context of packet generation. I myself don't have a very detailed (more...)

Follow-ups:
Re: XML Experts? (was: Code generator for packet classes!)
Dear all, If you look at my branch you'll see that packet generation is already integrated with the build process! I'm currently generating only the implementation of the Have BitTorrent packet (more...)