<div>Yes, that should do it.<br></div><div><br></div><div>Thanks</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 14 March 2012 10:24, Tom Reijnders <span dir="ltr"><<a href="mailto:reijnders@tor.nl">reijnders@tor.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'll have a look. The check seems simple enough:<br>
<br>
If processing connectorMenu.xwd/connectorMenu.rlm, make sure the node is called connectorMenu<br>
<br>
Correct?<br>
<br>
Tom<br>
<br>
Citeren Kemp Johnathan <<a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello Tom,<br>
<br>
Your process for building the template.xwd file worked well and the error<br>
flagging helped to identify a number of minor issues in a few of the xwd<br>
files that would have affected their performance.<br>
<br>
There is one possible issue that I found that the error trapping did not<br>
detect, and it caused me a lot of frustration and lost time, followed by a<br>
brief period of pain when I kicked myself once I had discovered the cause<br>
of the problem :-)<br>
<br>
I built the template.xwd file and then tested my new connector pages in<br>
XOT. All seven pages worked in Xerte, but now four of the pages failed to<br>
display anything other than the page title in XOT. I took the files back to<br>
a pageTemplates project and the same four failed to display there as well.<br>
They would not even output debug messages.<br>
<br>
The cause of the problem?<br>
<br>
In Xerte the link between the xwd file and the rlm file is made based on<br>
the file name, the link between the data created by the xwd form and the<br>
page model loaded by the rlm file is made by the node name in the xml data.<br>
So in Xerte the following will work<br>
<br>
connectorMenu.xwd with a node cMenu<br>
connectorMenu.rlm referencing pageIcon.templateData.cMenu[0]<br>
<br>
however this will fail in pageTemplates and XOT as all the xwd files are<br>
gathered together in one template.xwd file, so the link to the relevant<br>
model file is made with the node name. The entry in template.xwd for the<br>
connectorMenu uses cMenu as the node name so XOT goes looking for cMenu.rlm<br>
and since it does not exist the page fails to work.<br>
<br>
This may be obvious to someone used to the XOT way of doing things, but it<br>
is far less obvious if you develop in Xerte. For anyone making the mistake<br>
I made it can be difficult to identify the problem. So if there is any<br>
possibility of building a check for this into your checking routines it<br>
might be worth doing.<br>
<br>
Kind regards<br>
<br>
Johnathan<br>
<br>
On 13 March 2012 11:18, Kemp Johnathan <<a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a>> wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Thanks Tom,<br>
<br>
I have got that working.<br>
<br>
Kind regards<br>
<br>
Johnathan<br>
<br>
On 12 March 2012 19:52, Tom Reijnders <<a href="mailto:reijnders@tor.nl" target="_blank">reijnders@tor.nl</a>> wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Jonathan,<br>
<br>
I'll have a look at the non-scrolling window.<br>
<br>
In the meantime:<br>
<br>
1. Depending on your OS, start a cmd as administrator (Vista +) or a<br>
normal cmd<br>
2. go to the Xerte folder<br>
3. You can use the following command (this is what xerte calls):<br>
php\php.exe scripts\rebuildtemplate.php "path to xwd folder" ><br>
convert.log<br>
<br>
Replace "path to xwd folder"with the folder name where your xwds reside.<br>
<br>
The convert.log file will contain the feedback, and you can check that<br>
file with a text editor.<br>
<br>
Regards,<br>
<br>
Tom<br>
<br>
Op 12-3-2012 11:48, Kemp Johnathan schreef:<br>
<br>
I guess this is a question for Tom, unless anyone else has taken over the<br>
work on this.<br>
<br>
When I last tested the php file that builds the template.xwd file it<br>
generated an output report based on all the xwd files in the folder it was<br>
processing. This report was output into a non-scrollable window and the<br>
text output exceeded the display space available. As a result any details<br>
of errors that took place once the text had gone beyond the display area of<br>
the window was unavailable.<br>
<br>
I will have a new set of xwds ready by the end of this week. Is there<br>
any possibility of the php file being modified so that I can process all of<br>
the files in one batch to verify that they will generate a valid<br>
template.xwd file?<br>
<br>
Kind regards<br>
<br>
Johnathan<br>
<br>
This message and any attachment are intended solely for the addressee<br>
and may contain confidential information. If you have received this message<br>
in error, please send it back to me, and immediately delete it. Please do<br>
not use, copy or disclose the information contained in this message or in<br>
any attachment. Any views or opinions expressed by the author of this email<br>
do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an<br>
attachment may still contain software viruses which could damage your<br>
computer system: you are advised to perform your own checks. Email<br>
communications with the University of Nottingham may be monitored as<br>
permitted by UK legislation.<br>
<br>
<br>
_______________________________________________<br></div></div>
Xerte-dev mailing listXerte-dev@lists.nottingham.ac.ukhttp://<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><div><div class="h5"><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
<br>
--<br>
--<br>
<br>
Tom Reijnders<br>
TOR Informatica<br>
Chopinlaan 27<br>
5242HM Rosmalen<br>
Tel: 073 5226191<br>
Fax: 073 5226196<br>
<br>
<br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
This message and any attachment are intended solely for the addressee and<br>
may contain confidential information. If you have received this message in<br>
error, please send it back to me, and immediately delete it. Please do<br>
not use, copy or disclose the information contained in this message or in<br>
any attachment. Any views or opinions expressed by the author of this<br>
email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an<br>
attachment<br>
may still contain software viruses which could damage your computer<br>
system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br>
<br>
</div></div></blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
<br>
----------------------------------------------------------------<br>
This message was sent using IMP, the Internet Messaging Program.<div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
</div></div></blockquote></div><br>