Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
Yes to much idea to make them all! R On Mon, Mar 21, 2011 at 9:09 PM, villas wrote: > Hi Richard, > > In my case I was making the XML fit a specification given to me by > someone else. It isn't very flexible to change it, but I doubt that > the specification will be changing much either. > > I

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
That's a brillant idea... I check about it tomorrow. Thanks Richard On Mon, Mar 21, 2011 at 5:05 PM, mart wrote: > Hi Richard, > > Yeah, I hate transforms too :( I haven't really worked with wordml, > but... it all looks the same to me... I would definitely take the > dictionary approach, sho

[web2py] Re: XML manipulation

2011-03-21 Thread villas
Hi Richard, In my case I was making the XML fit a specification given to me by someone else. It isn't very flexible to change it, but I doubt that the specification will be changing much either. It is a pity there isn't a Zen of XML saying there should ideally be just one obvious way of doing so

[web2py] Re: XML manipulation

2011-03-21 Thread mart
Hi Richard, Yeah, I hate transforms too :( I haven't really worked with wordml, but... it all looks the same to me... I would definitely take the dictionary approach, should be fairly simple. If you like i can grap a web2py table, convert it to xml (that is how you are getting you xml?), then writ

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
It is not bad for start... But what happen when you change your query in term of number of columns or rows? Do you have to make an other template each time... Personnaly I don't like xml that much, so I don't want to have to get back at editing my template all the time. Richard On Mon, Mar 21, 20

[web2py] Re: XML manipulation

2011-03-21 Thread villas
Hi Richard As a novice, the easiest solution I found was something like this: * create wordml.xml template in views/default/ folder * prepare the xml, place variables for the data * create a wordml function in controller * manipulate your data into the variables in the controller ready to place i

Re: [web2py] Re: XML manipulation

2011-03-21 Thread Richard Vézina
Hello Mart, I need to generate WordML out of web2py... Is there a "easier" or more integrated way then use xslt transformation that is the easiest way that comes to my mind? Thanks Richard On Sun, Mar 20, 2011 at 8:20 PM, mart wrote: > I use lots of XML to drive automation, file system struct

[web2py] Re: XML manipulation

2011-03-20 Thread mart
Agreed, often best to wait, take a step back and eventually we trip and fall on our own answers ;) On Mar 20, 8:57 pm, villas wrote: > Thanks Mart, that's really kind!  To cut a long story short, I > eventually figured out that I don't need to manipulate any XML itself > at this stage, I can mani

[web2py] Re: XML manipulation

2011-03-20 Thread villas
Thanks Mart, that's really kind! To cut a long story short, I eventually figured out that I don't need to manipulate any XML itself at this stage, I can manipulate everything first and just render it at the end. I've wasted so much time messing around, so if it gets complicated for me again, I'l

[web2py] Re: XML manipulation

2011-03-20 Thread mart
I use lots of XML to drive automation, file system structure, validation, user initial input, etc, so pretty much everywhere I make use of xml. much of the data (that may be user or project specific) is submitted as XML, then use that to populate tables (which BTW - I found lately to be a great way

[web2py] Re: XML manipulation

2011-03-20 Thread villas
OK I found a way (it was of course easier than I thought!). However, if anyone has any interesting XML resources/tips, I would still be interested to learn more. Thanks!