
I agree that XSL and XML are grate tools, and personaly I believe that the evolotion of SMI should be into an XML format. Of course when MIBs will be written in XML there will no loner be a need for the libsmi ;-)
However, right now I'm so glad that I can get an XML out of an SMI, and work on the XML with all the variety of tools that exists in the XML world, that I fail to see any real reason for anybody to go the other way around. Do I miss anything, something that I'm not aware of?
The only "real world" XSL tranformation that I can think of right now is converting the output of smidump to XHTML in order to display it in a browser with syntax coloring, links for imports and probably more. The first step for accomplishing this IMHO is to define a scheme or dtd for the XML generated by smidump. I don't remember seeing any in the libsmi files,. I'm attaching an XML schema file generated by automatic tool from the RMON2 XML, It probably needs refinement but it might serve as a starting point for a complete schema.
Mark.
----- Original Message ----- From: "Frank Strauss" strauss@ibr.cs.tu-bs.de To: "Mark Kaplun" markk5@bezeqint.net Cc: awkkock@yahoo.com; libsmi@ibr.cs.tu-bs.de Sent: Wednesday, May 22, 2002 12:06 PM Subject: Re: [libsmi] re-engineering xml file to smi doc. with xsl
Hi!
Mark> If I remeber currectly, you can use xsl to transform one XML Mark> into another XML. Since SMI is not in an XML like format, I Mark> don't think it is possible.
XSL can transform to XML, but also to plain text and further optional formats. (<xsl:output method="text|xml|html|..."/>)
Mark> Anyway, what reason is there to retransform an XML to SMI?
I did not try to do such conversations, since we already have smidump. Maybe, XSLT 1.0 is missing some programatic features. I don't know.
However, I agree with awk that it would be `cool' to do this with XSLT. Some people might bring forward the argument that programming and adapting XSL snippets is easier and more flexible than traditional program code. I'm not sure whether I share this argument *completely*, but however I think it's cool to use XSL for prototyping conversions.
-frank
!! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or
adjust
!! your settings, send a mail message to libsmi-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/libsmi.