Re: An experiment with xsl

From: Date: Fri, 10 Sep 2004 05:05:24 +0000
Subject: Re: An experiment with xsl
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-14481@lists.php.net to get a copy of this message
Manuel Lemos wrote:
On 09/08/2004 06:44 PM, J llarens wrote:
Since almost 1 year Im reading about the use of xml in design and coding phases. But my only source of info is internet because here the good books regarding IT are very expensive. 3W could give me a lot of info, but, in conjunction, fragmented and sometimes contradictory. Few months ago I discover the xslt plugins inside Dia, and voila! the plugins/xslt directory have a working and traceable set of examples of xml and xslt for code generation. Messing and mixing with the examples I can produce this xsl's (attached in this mail): dia-uml to PEAR DB_DataObject .ini files and .php table object (not including relationships) dia-uml to HTML form for record editing dia-uml to MySQL database definition To get the results whitout using dia I use this at commandline: xsltproc /usr/share/dia/plugins/xslt/dia-uml.xsl osdata.dia > osdata.xml to get the pear clases and .ini file: xsltproc /usr/share/dia/plugins/xslt/dia-dbo.xsl osdata.xml to get the html form: xsltproc /usr/share/dia/plugins/xslt/dia-html-edit.xsl osdata.xml to get the MySQL data definition: xsltproc /usr/share/dia/plugins/xslt/dia-sql.xsl osdata.xml ROCKS! But still there are some things that Im unable to achieve: I cant see how to include relationships (foreign key -> primary key), I dont see the data about the relationships in the created osdata.xml, the dia-uml.xsl simply dont take it in account. I dont know how to implement some 'extra stuff' like labels to use instead of fieldnames in HTML forms. I think that operations tab in properties of a class is the right place to put things like labels and sizes etc but Im not sure and I suppose there is a standard procedure to follow, but I did not found it. My ultimate (and long-term, sigh) goal is to build a PHP application (well... most part of the application at less) simply translating an UML model. Someone have that missing info or can guide to a related resource?
This has really not to do with PEAR, but since it has all to do with what you are talking about, you may be interested.
Manuel, how long each day you spend trawling the PHP websites, IRC channels and mailing lists looking for places to spam PHPClasses under the guise of offering help? Personally, I'm sick of it, and I know others are too. I'm not going to say more because I don't wish others to be subjected to what is essentially a personal matter. Please stop. - Davey

« previous php.pear.general (#14481) next »