[Xerte-dev] Re: Process of building the template.xwd file from the individual page xwd files.
Tom Reijnders
reijnders at tor.nl
Wed Mar 14 21:18:10 GMT 2012
Jonathan,
See attached (should be in <xerte install folder>/scripts)
Interestingly, it complains about xerte.xwd, and xerte.xwd works..... So
I looked in the Engine code to try to figure out why... xerteModel is an
exception. It is handled seperately in the engine. It load the model
given as a parameter....
So, now it gives an error, and it will NOT be added to the template. My
proposal would be to rename it to xerteModel.xwd/xerteModel.rlm. That is
a safer change than changing the xml node name (as that will break
existing rlo's).
I have NOT done that. The xwdBuilder.php is also committed to svn.
Regards,
Tom
Op 14-3-2012 11:32, Kemp Johnathan schreef:
> Yes, that should do it.
>
> Thanks
>
> Johnathan
>
> On 14 March 2012 10:24, Tom Reijnders <reijnders at tor.nl
> <mailto:reijnders at tor.nl>> wrote:
>
> I'll have a look. The check seems simple enough:
>
> If processing connectorMenu.xwd/connectorMenu.rlm, make sure the
> node is called connectorMenu
>
> Correct?
>
> Tom
>
> Citeren Kemp Johnathan <johnathan.kemp at ntlworld.com
> <mailto:johnathan.kemp at ntlworld.com>>:
>
> Hello Tom,
>
> Your process for building the template.xwd file worked well
> and the error
> flagging helped to identify a number of minor issues in a few
> of the xwd
> files that would have affected their performance.
>
> There is one possible issue that I found that the error
> trapping did not
> detect, and it caused me a lot of frustration and lost time,
> followed by a
> brief period of pain when I kicked myself once I had
> discovered the cause
> of the problem :-)
>
> I built the template.xwd file and then tested my new connector
> pages in
> XOT. All seven pages worked in Xerte, but now four of the
> pages failed to
> display anything other than the page title in XOT. I took the
> files back to
> a pageTemplates project and the same four failed to display
> there as well.
> They would not even output debug messages.
>
> The cause of the problem?
>
> In Xerte the link between the xwd file and the rlm file is
> made based on
> the file name, the link between the data created by the xwd
> form and the
> page model loaded by the rlm file is made by the node name in
> the xml data.
> So in Xerte the following will work
>
> connectorMenu.xwd with a node cMenu
> connectorMenu.rlm referencing pageIcon.templateData.cMenu[0]
>
> however this will fail in pageTemplates and XOT as all the xwd
> files are
> gathered together in one template.xwd file, so the link to the
> relevant
> model file is made with the node name. The entry in
> template.xwd for the
> connectorMenu uses cMenu as the node name so XOT goes looking
> for cMenu.rlm
> and since it does not exist the page fails to work.
>
> This may be obvious to someone used to the XOT way of doing
> things, but it
> is far less obvious if you develop in Xerte. For anyone making
> the mistake
> I made it can be difficult to identify the problem. So if
> there is any
> possibility of building a check for this into your checking
> routines it
> might be worth doing.
>
> Kind regards
>
> Johnathan
>
> On 13 March 2012 11:18, Kemp Johnathan
> <johnathan.kemp at ntlworld.com
> <mailto:johnathan.kemp at ntlworld.com>> wrote:
>
> Thanks Tom,
>
> I have got that working.
>
> Kind regards
>
> Johnathan
>
> On 12 March 2012 19:52, Tom Reijnders <reijnders at tor.nl
> <mailto:reijnders at tor.nl>> wrote:
>
> Jonathan,
>
> I'll have a look at the non-scrolling window.
>
> In the meantime:
>
> 1. Depending on your OS, start a cmd as administrator
> (Vista +) or a
> normal cmd
> 2. go to the Xerte folder
> 3. You can use the following command (this is what
> xerte calls):
> php\php.exe scripts\rebuildtemplate.php "path to xwd
> folder" >
> convert.log
>
> Replace "path to xwd folder"with the folder name where
> your xwds reside.
>
> The convert.log file will contain the feedback, and
> you can check that
> file with a text editor.
>
> Regards,
>
> Tom
>
> Op 12-3-2012 11:48, Kemp Johnathan schreef:
>
> I guess this is a question for Tom, unless anyone else
> has taken over the
> work on this.
>
> When I last tested the php file that builds the
> template.xwd file it
> generated an output report based on all the xwd files
> in the folder it was
> processing. This report was output into a
> non-scrollable window and the
> text output exceeded the display space available. As a
> result any details
> of errors that took place once the text had gone
> beyond the display area of
> the window was unavailable.
>
> I will have a new set of xwds ready by the end of
> this week. Is there
> any possibility of the php file being modified so that
> I can process all of
> the files in one batch to verify that they will
> generate a valid
> template.xwd file?
>
> Kind regards
>
> Johnathan
>
> 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.
>
> This message has been checked for viruses but the
> contents of an
> attachment may still contain software viruses which
> could damage your
> computer system: you are advised to perform your own
> checks. Email
> communications with the University of Nottingham may
> be monitored as
> permitted by UK legislation.
>
>
> _______________________________________________
> Xerte-dev mailing
> listXerte-dev at lists.nottingham.ac.ukhttp://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
> <http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev>
>
>
>
> 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.
>
> This message has been checked for viruses but the
> contents of an attachment
> may still contain software viruses which could damage
> your computer system:
> you are advised to perform your own checks. Email
> communications with the
> University of Nottingham may be monitored as permitted
> by UK legislation.
>
>
>
> --
> --
>
> Tom Reijnders
> TOR Informatica
> Chopinlaan 27
> 5242HM Rosmalen
> Tel: 073 5226191
> Fax: 073 5226196
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> <mailto:Xerte-dev at lists.nottingham.ac.uk>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> 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.
>
> This message has been checked for viruses but the
> contents of an
> attachment
> may still contain software viruses which could damage
> your computer
> system:
> you are advised to perform your own checks. Email
> communications with the
> University of Nottingham may be monitored as permitted
> by UK legislation.
>
>
>
>
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> <mailto:Xerte-dev at lists.nottingham.ac.uk>
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
>
>
>
> _______________________________________________
> Xerte-dev mailing list
> Xerte-dev at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
>
> 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.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
--
--
Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120314/605e29d8/attachment-0002.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20120314/605e29d8/attachment-0003.html>
More information about the Xerte-dev
mailing list