[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Curtis L. Olson -- Friday 04 March 2005 05:33: When configuring a 2d instrument, there is a concept of property aliases. The README.xmlpanel example uses absolute property paths, but the real world instruments I've seen use relative paths with a lot of ../../../../../params/etc. You

[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Melchior FRANZ -- Friday 04 March 2005 09:40: * Curtis L. Olson -- Friday 04 March 2005 05:33: params A123/A B trace-read=true456/B That should be just an y instead of true: B trace-read=y456/B and this is how you get a report

Re: [Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Curtis L. Olson
Melchior FRANZ wrote: * Curtis L. Olson -- Friday 04 March 2005 05:33: When configuring a 2d instrument, there is a concept of property aliases. The README.xmlpanel example uses absolute property paths, but the real world instruments I've seen use relative paths with a lot of

[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Curtis L. Olson -- Friday 04 March 2005 15:15: At that point I was 8 or 9 levels deep and it's pretty difficult to count back though complex xml to figure out how many levels you actually need. With proper indentation you just count the tabs in the alias line. Seven tabs in front ==

Re: [Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Curtis L. Olson
Melchior FRANZ wrote: * Curtis L. Olson -- Friday 04 March 2005 15:15: At that point I was 8 or 9 levels deep and it's pretty difficult to count back though complex xml to figure out how many levels you actually need. With proper indentation you just count the tabs in the alias line.

Re: [Flightgear-devel] Re: instrument xml question

2005-03-04 Thread James Turner
On 4 Mar 2005, at 15:08, Curtis L. Olson wrote: It's maybe analogous to writting assembly language without any sort of jump labels ... anytime you insert a statement, you have to go back and recompute all your jump addresses (or in this case any time you add anything you need to go back and

[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Curtis L. Olson -- Friday 04 March 2005 16:08: Melchior FRANZ wrote: With proper indentation you just count the tabs in the alias line. Seven tabs in front == seven times ../ :-) It's maybe analogous to writting assembly language without any sort of jump labels ... anytime you insert a

Re: [Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Curtis L. Olson
Melchior FRANZ wrote: * Curtis L. Olson -- Friday 04 March 2005 16:08: Melchior FRANZ wrote: With proper indentation you just count the tabs in the alias line. Seven tabs in front == seven times ../ :-) It's maybe analogous to writting assembly language without any sort of jump

[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Melchior FRANZ -- Friday 04 March 2005 17:18: $ perl -p -i -e 's,^(\t*)(.*alias=)(\.\./)+,$1$2 . (../ x length($1)),e' foo.xml Sorry, this should of course be: $ perl -p -i -e 's,^(\t*)(.*alias=)(\.\./)*,$1$2 . (../ x length($1)),e' foo.xml

[Flightgear-devel] Re: instrument xml question

2005-03-04 Thread Melchior FRANZ
* Curtis L. Olson -- Friday 04 March 2005 17:23: Melchior FRANZ wrote: $ perl -p -i -e 's,^(\t*)(.*alias=)(\.\./)+,$1$2 . (../ x length($1)),e' foo.xml I think most FG xml is indented with spaces ... generally one space per level, but sometimes more, sometimes less. True. I thought