[SOLVED] cloning an existing app to use as a template - xforms-bookcast

classic Classic list List threaded Threaded
2 messages Options
DL
Reply | Threaded
Open this post in threaded view
|

[SOLVED] cloning an existing app to use as a template - xforms-bookcast

DL
This post was updated on .
I have a very basic error which I can't pin down.  
I'm trying to "clone" an existing application - xforms-bookcast - and to use this as a template for editing files for another app.

After cloning this app and renaming to  .. "mynewapp" .. in /WEB-INF/resources/apps/mynewapp
I then went through the following files .. finding and replacing names ..

find: "xforms-bookcast" ... replace with "mynewapp"

atom.xpl
page-flow.xml
view.xhtml

Next I tried to launch mynewapp ..

http://localhost:8080/orbeon/mynewapp/

I can see the sandbox layout (orbeon left navigation and top banner) but the xforms app view window is totally blank when it should show an instance of a book from sample-data.xml.

The original app xforms-bookcast works fine ..

http://localhost:8080/orbeon/xforms-bookcast/

...

I right click on the blank view to "view source" and at the <body> tag is this .. but not displayed as error in browser ..

[code]
after CSS ..
<body>

Orbeon Forms Error

Typeclass org.orbeon.saxon.trans.XPathException
MessageIllegal HTML character: decimal 128
Locationoxf:/config/theme-examples.xsl
Line174
Column-1
Stack Trace<pre>; SystemID: oxf:/config/theme-examples.xsl; Line#: 174; Column#: -1
org.orbeon.saxon.trans.XPathException: Illegal HTML character: decimal 128
        at org.orbeon.saxon.event.HTMLEmitter.writeEscape(HTMLEmitter.java:344)

>>>>>>> and more
[/code]

Can you spot anything obvious I've missed in cloning and editing this existing app?

I have had this process working on another cloned app but there must be some basic editing step I'm overlooking.

=======================================================

[Later Edit]

I reversed my editing steps and started the find/replace strings .. one at a time .. through view.xhtml.

It seems that the cloned app is working now .. I made sure that I pressed Ctrl + F5 to refresh browser view after each edit.  I'm not sure what went wrong in my first attempt.

=======================================================

Reply | Threaded
Open this post in threaded view
|

Re: cloning an existing app to use as a template - xforms-bookcast

Erik Bruchez
Administrator
DL,

I did a basic query-replace of "xforms-bookcast" to "mynewapp", and
things works as expected under:

http://localhost:8080/orbeon/mynewapp/

The error you are pointing at seems to indicate that maybe, when you
did the replacement, you used an editor which saved files with a
different character encoding. Make sure that your editor is able to
load and save XML files using the UTF-8 encoding.

-Erik

On Mon, Apr 23, 2012 at 1:03 PM, DL <[hidden email]> wrote:

> I have a very basic error which I can't pin down.
> I'm trying to "clone" an existing application - xforms-bookcast - and to use
> this as a template for editing files for another app.
>
> After cloning this app and renaming to  .. "mynewapp" .. in
> /WEB-INF/resources/apps/mynewapp
> I then went through the following files .. finding and replacing names ..
>
> find: "xforms-bookcast" ... replace with "mynewapp"
>
> atom.xpl
> page-flow.xml
> view.xhtml
>
> Next I tried to launch mynewapp ..
>
> http://localhost:8080/orbeon/mynewapp/
>
> I can see the sandbox layout (orbeon left navigation and top banner) but the
> xforms app view window is totally blank when it should show an instance of a
> book from sample-data.xml.
>
> The original app xforms-bookcast works fine ..
>
> http://localhost:8080/orbeon/xforms-bookcast/
>
> ...
>
> I right click on the blank view to "view source" and at the <body> tag is
> this .. but not displayed as error in browser ..
>
> [code]
> after CSS ..
> <body>
> Orbeon Forms Error
> <table class="gridtable"><tr><th>Type</th><td>class
> org.orbeon.saxon.trans.XPathException</td></tr><tr><th>Message</th><td>Illegal
> HTML character: decimal
> 128</td></tr><tr><th>Location</th><td>oxf:/config/theme-examples.xsl</td></tr><tr><th>Line</th><td>174</td></tr><tr><th>Column</th><td>-1</td></tr><tr><th
> valign="top">Stack Trace</th><td><pre>; SystemID:
> oxf:/config/theme-examples.xsl; Line#: 174; Column#: -1
> org.orbeon.saxon.trans.XPathException: Illegal HTML character: decimal 128
>        at org.orbeon.saxon.event.HTMLEmitter.writeEscape(HTMLEmitter.java:344)
>
>>>>>>>> and more
> [/code]
>
> Can you spot anything obvious I've missed in cloning and editing this
> existing app?
>
> I have had this process working on another cloned app but there must be some
> basic editing step I'm overlooking.
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/cloning-an-existing-app-to-use-as-a-template-xforms-bookcast-tp4581556p4581556.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws