D - DML?
- Pavel Minayev (19/19) Jan 18 2002 Some more ideas/questions concerning DML (D XML =)):
- OddesE (31/50) Jan 19 2002 Do you mean that you would expect the resulting .d code
- Pavel Minayev (5/7) Jan 19 2002 I expect it to look like I've written it there - else-if
- OddesE (10/17) Jan 20 2002 It should definitely be possible to tweak this kind of
- J. Daniel Smith (10/17) Jan 21 2002 It would be entirely up to the XSLT stylesheet to determine how to rende...
- OddesE (16/36) Jan 21 2002 in
- Juan Carlos Arevalo Baeza (6/16) Jan 21 2002 does
- OddesE (43/62) Jan 22 2002 Juan,
- Juan Carlos Arevalo Baeza (7/38) Jan 22 2002 have
- J. Daniel Smith (10/51) Jan 22 2002 You need the new(er) XML objects which support the 1999 XSLT specificati...
- Walter (5/32) Jan 23 2002 No, it reads that a decl_def is an import or a class_decl_def or a ...
- Karl Bochert (6/15) Jan 24 2002 I use the Opera 5.0 browser which, I beleive is very standards-compliant
- J. Daniel Smith (7/22) Jan 24 2002 You'll need a browser like IE which supports viewing XML files directly ...
- J. Daniel Smith (8/34) Jan 25 2002 Also, if your browser can't load the MSXML2 objects to do the XSLT
- Karl Bochert (5/11) Jan 27 2002 Tried that page, and nothing seemed to make any sense. Most links
- OddesE (13/28) Jan 24 2002 The edit field should contain the address of the xml file to transform,
- Sean L. Palmer (4/29) Jan 25 2002 Hint: put some instructions on the page itself. ;)
Some more ideas/questions concerning DML (D XML =)): What's with blocks? We had a discussion here conserning them earlier, but the problem is even wider. How does the XML-to-D converter differentiate between else-if and other cases? I'd expect it to give different outputs: if (a == 1) foo(); else if (b == 2) bar(); --- but --- if (a == 1) foo(); else while (b == 2) bar(); I believe most programmers put if on the same line with else in such cases... so the converter must be able to detect this case and process it properly. Is XSLT capable of doing such things?
Jan 18 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a2aglg$3fk$1 digitaldaemon.com...Some more ideas/questions concerning DML (D XML =)): What's with blocks? We had a discussion here conserning them earlier, but the problem is even wider. How does the XML-to-D converter differentiate between else-if and other cases? I'd expect it to give different outputs: if (a == 1) foo(); else if (b == 2) bar(); --- but --- if (a == 1) foo(); else while (b == 2) bar(); I believe most programmers put if on the same line with else in such cases... so the converter must be able to detect this case and process it properly. Is XSLT capable of doing such things?Do you mean that you would expect the resulting .d code to look like this? if (a == 1) foo(); else while (b == 2) bar(); If this is what you mean, then yes, the XSLT stylesheet could definitely do such things. It all depends on the way you structure the XML data how far you can go in tweaking the layout of the code though, so thinking up a good standard is important. And actually, I don't put the while on the same line than the else in such a case. I would lay it out like this: if (a == 1) foo(); else { while (b == 2) bar(); } Or at most leave out the curly braces. But the same XML code should be able to produce both of these results in combination with the right XSLT stylesheet. :) -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net __________________________________________ Remove _XYZ from my address when replying by mail
Jan 19 2002
"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2cs4l$1o01$1 digitaldaemon.com...Do you mean that you would expect the resulting .d code to look like this?I expect it to look like I've written it there - else-if should be on one line, and else-while (or whatever else) - on two different.
Jan 19 2002
"Pavel Minayev" <evilone omen.ru> wrote in message news:a2dnlf$29h0$1 digitaldaemon.com..."OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2cs4l$1o01$1 digitaldaemon.com...It should definitely be possible to tweak this kind of settings if the DML spec was designed right. -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net __________________________________________ Remove _XYZ from my address when replying by mailDo you mean that you would expect the resulting .d code to look like this?I expect it to look like I've written it there - else-if should be on one line, and else-while (or whatever else) - on two different.
Jan 20 2002
It would be entirely up to the XSLT stylesheet to determine how to render in HTML (turning DML into D really only needs to be done by the compiler). XSLT is pretty powerful, so I'm sure it can be done. I've done a tiny little bit of playing with some of this just to have something concrete to work with; it's not pretty or polished, but it does give you a flavor of what's possible. Take a look at http://jdanielsmith.org/DML Dan "Pavel Minayev" <evilone omen.ru> wrote in message news:a2dnlf$29h0$1 digitaldaemon.com..."OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2cs4l$1o01$1 digitaldaemon.com...Do you mean that you would expect the resulting .d code to look like this?I expect it to look like I've written it there - else-if should be on one line, and else-while (or whatever else) - on two different.
Jan 21 2002
"J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2hud6$202q$1 digitaldaemon.com...It would be entirely up to the XSLT stylesheet to determine how to renderinHTML (turning DML into D really only needs to be done by the compiler). XSLT is pretty powerful, so I'm sure it can be done. I've done a tiny little bit of playing with some of this just to have something concrete to work with; it's not pretty or polished, but it does give you a flavor of what's possible. Take a look at http://jdanielsmith.org/DML Dan "Pavel Minayev" <evilone omen.ru> wrote in message news:a2dnlf$29h0$1 digitaldaemon.com...WOW! This is exactly the kind of stuff I was thinking about. Check this out people, it shows some of the power of DML real well. Dan, do you have a lot of experience wit XML? I know what it *can* do but not really *how* to do it. Way cool this! :) -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net __________________________________________ Remove _XYZ from my address when replying by mail"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2cs4l$1o01$1 digitaldaemon.com...Do you mean that you would expect the resulting .d code to look like this?I expect it to look like I've written it there - else-if should be on one line, and else-while (or whatever else) - on two different.
Jan 21 2002
"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2i4qg$246k$1 digitaldaemon.com..."J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2hud6$202q$1 digitaldaemon.com...doesI've done a tiny little bit of playing with some of this just to have something concrete to work with; it's not pretty or polished, but itSo... how do you use that viewer link? Salutaciones, JCABgive you a flavor of what's possible. Take a look at http://jdanielsmith.org/DMLWOW! This is exactly the kind of stuff I was thinking about. Check this out people, it shows some of the power of DML real well.
Jan 21 2002
"Juan Carlos Arevalo Baeza" <jcab roningames.com> wrote in message news:a2i7mi$2601$1 digitaldaemon.com..."OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2i4qg$246k$1 digitaldaemon.com...Juan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine. Walter, how should I read the syntax specifications for D on your site: Syntax Grammar? For instance, should I read decl_def: import class_decl_def struct_decl_def union_decl_def enum_decl_def As: "A decl_def consists of any of these elements in any order"? I think a good DML specification should mimic your syntax grammar as close as possible. A DML version of the above could be: <decl_def> <import> </import> <class_decl_def> </class_decl_def> <struct_decl_def> </struct_decl_def> <union_decl_def> </union_decl_def> <enum_decl_def> </enum_decl_def> </decl_def> Could you point me to a good resource where I could learn to read the grammar rules on your page? Thanks. -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net __________________________________________ Remove _XYZ from my address when replying by mail"J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2hud6$202q$1 digitaldaemon.com...doesI've done a tiny little bit of playing with some of this just to have something concrete to work with; it's not pretty or polished, but itSo... how do you use that viewer link? Salutaciones, JCABgive you a flavor of what's possible. Take a look at http://jdanielsmith.org/DMLWOW! This is exactly the kind of stuff I was thinking about. Check this out people, it shows some of the power of DML real well.
Jan 22 2002
"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2k6hl$dql$1 digitaldaemon.com..."Juan Carlos Arevalo Baeza" <jcab roningames.com> wrote in message news:a2i7mi$2601$1 digitaldaemon.com...have"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2i4qg$246k$1 digitaldaemon.com..."J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2hud6$202q$1 digitaldaemon.com...I've done a tiny little bit of playing with some of this just toOk. So I had tried it right. But I just get "Error on Page" in the status line of IE. :-P Salutaciones, JCABJuan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.doessomething concrete to work with; it's not pretty or polished, but itSo... how do you use that viewer link? Salutaciones, JCABgive you a flavor of what's possible. Take a look at http://jdanielsmith.org/DMLWOW! This is exactly the kind of stuff I was thinking about. Check this out people, it shows some of the power of DML real well.
Jan 22 2002
You need the new(er) XML objects which support the 1999 XSLT specification; the ones that are part of IE 5.0 support the old (and now poorly documented) XD XSL transform. Also, you can just type "elseif.xml" into the text field - the full URL isn't needed. Dan "Juan Carlos Arevalo Baeza" <jcab roningames.com> wrote in message news:a2ke01$ijm$1 digitaldaemon.com..."OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2k6hl$dql$1 digitaldaemon.com...it"Juan Carlos Arevalo Baeza" <jcab roningames.com> wrote in message news:a2i7mi$2601$1 digitaldaemon.com...have"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2i4qg$246k$1 digitaldaemon.com..."J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2hud6$202q$1 digitaldaemon.com...I've done a tiny little bit of playing with some of this just tosomething concrete to work with; it's not pretty or polished, butstatusOk. So I had tried it right. But I just get "Error on Page" in thedoesJuan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.So... how do you use that viewer link? Salutaciones, JCABgive you a flavor of what's possible. Take a look at http://jdanielsmith.org/DMLWOW! This is exactly the kind of stuff I was thinking about. Check this out people, it shows some of the power of DML real well.line of IE. :-P Salutaciones, JCAB
Jan 22 2002
"OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2k6hl$dql$1 digitaldaemon.com...how should I read the syntax specifications for D on your site: Syntax Grammar? For instance, should I read decl_def: import class_decl_def struct_decl_def union_decl_def enum_decl_def As: "A decl_def consists of any of these elements in any order"?No, it reads that a decl_def is an import or a class_decl_def or a ...I think a good DML specification should mimic your syntax grammar as close as possible. A DML version of the above could be: <decl_def> <import> </import> <class_decl_def> </class_decl_def> <struct_decl_def> </struct_decl_def> <union_decl_def> </union_decl_def> <enum_decl_def> </enum_decl_def> </decl_def> Could you point me to a good resource where I could learn to read the grammar rules on your page?I sort of made it up <g>, but it is like how most people do it in language specs. I don't have any handy references.
Jan 23 2002
Juan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.I use the Opera 5.0 browser which, I beleive is very standards-compliant and quite recent. d.xsl and xhtml.xsl produce identical pages -- "if (){}else{}()" elsif.xml produces a blank page. viewer.htm produces a selection box which doesn't seem to do anything. What is this address that goes in the edit field?
Jan 24 2002
You'll need a browser like IE which supports viewing XML files directly to see the XSL files (they are really just another type of XML file). In any case, I've tweaked things so that you no longer need to use the "viewer.htm" page: http://jdanielsmith.org/DML Dan "Karl Bochert" <kbochert ix.netcom.com> wrote in message news:1103_1011892765 bose...Juan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.I use the Opera 5.0 browser which, I beleive is very standards-compliant and quite recent. d.xsl and xhtml.xsl produce identical pages -- "if (){}else{}()" elsif.xml produces a blank page. viewer.htm produces a selection box which doesn't seem to do anything. What is this address that goes in the edit field?
Jan 24 2002
Also, if your browser can't load the MSXML2 objects to do the XSLT transform, I redirect to a page on the server to do the transform. This should make the samples much more viewable (you'll still need JavaScript though). Dan "J. Daniel Smith" <j_daniel_smith deja.com> wrote in message news:a2qepg$c5d$1 digitaldaemon.com...You'll need a browser like IE which supports viewing XML files directly to see the XSL files (they are really just another type of XML file). In any case, I've tweaked things so that you no longer need to use the"viewer.htm"page: http://jdanielsmith.org/DML Dan "Karl Bochert" <kbochert ix.netcom.com> wrote in message news:1103_1011892765 bose...Juan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.I use the Opera 5.0 browser which, I beleive is very standards-compliant and quite recent. d.xsl and xhtml.xsl produce identical pages -- "if (){}else{}()" elsif.xml produces a blank page. viewer.htm produces a selection box which doesn't seem to do anything. What is this address that goes in the edit field?
Jan 25 2002
On Thu, 24 Jan 2002 21:11:01 -0500, "J. Daniel Smith" <j_daniel_smith deja.com> wrote:You'll need a browser like IE which supports viewing XML files directly to see the XSL files (they are really just another type of XML file). In any case, I've tweaked things so that you no longer need to use the "viewer.htm" page: http://jdanielsmith.org/DML DanTried that page, and nothing seemed to make any sense. Most links produced: "The value of the 'method' attribute may not be 'html'." or: "The value of the 'method' attribute may not be 'text'." I'll just have to wait unil I switch to IE (a long time).
Jan 27 2002
"Karl Bochert" <kbochert ix.netcom.com> wrote in message news:1103_1011892765 bose...The edit field should contain the address of the xml file to transform, elseif.xml in this case. In the selection box you should choose wheter to transform to D (using d.xsl) or to HTML (using xhtml.xsl). When you press the button you should see the resulting file in your browser. -- Stijn OddesE_XYZ hotmail.com http://OddesE.cjb.net __________________________________________ Remove _XYZ from my address when replying by mailJuan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.I use the Opera 5.0 browser which, I beleive is very standards-compliant and quite recent. d.xsl and xhtml.xsl produce identical pages -- "if (){}else{}()" elsif.xml produces a blank page. viewer.htm produces a selection box which doesn't seem to do anything. What is this address that goes in the edit field?
Jan 24 2002
Hint: put some instructions on the page itself. ;) Sean "OddesE" <OddesE_XYZ hotmail.com> wrote in message news:a2s3t1$5r7$1 digitaldaemon.com..."Karl Bochert" <kbochert ix.netcom.com> wrote in message news:1103_1011892765 bose...The edit field should contain the address of the xml file to transform, elseif.xml in this case. In the selection box you should choose wheter to transform to D (using d.xsl) or to HTML (using xhtml.xsl). When you press the button you should see the resulting file in your browser. -- StijnJuan, Click on elsif.xml and when the page opens, copy the address to the clipboard. Go back and click on viewer.htm, then paste the address into the edit field. Select HTML or D and click View to view the results. Ofcourse, the D code looks messed up in the browser, but the HTML code looks fine.I use the Opera 5.0 browser which, I beleive is very standards-compliant and quite recent. d.xsl and xhtml.xsl produce identical pages -- "if (){}else{}()" elsif.xml produces a blank page. viewer.htm produces a selection box which doesn't seem to do anything. What is this address that goes in the edit field?
Jan 25 2002