Figured out point 1, at least:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE circuit>
<!-- CONTROLLER CIRCUIT.XML -->
<!-- some other random comment -->
<circuit access="public" xmlns:cf="cf/" xmlns:cs="coldspring/" >

</circuit>

Try and XMLParse() the above, and it fails.  BUT if you remove the second 
comment block ( <!-- some other random comment --> ) it works fine.

Not sure about the case statements yet....


On Sunday, May 6, 2012 2:54:50 PM UTC+1, Fiddlesticks wrote:
>
> Hi,
>
> Apologies if this has been raised before (couldn't find anything), but I 
> can't get Fusebox5 working on openBD 2,0,2
>
> The problem appears to be down to a couple of isses with the way XMLParse 
> handles the circuit files.  I dumped the code out into a cfsavecontent 
> block within test.cfm (away from Fusebox) to try it out.
>
> 1.  It interprets the doctype as an incorrect comment,and errors:
> *eg.*
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd";>
> ...
>
> xmlParse gives:
> *Comment must start with "<!--". Line: 3 Column: 4*
>
>
> 2.  xmlParse does not seem to be able to handle switch cases within the 
> XML eg.
>
> ...
> <cf:switch expression="test">
>     <cf:case value="contentOnly">
>         <do action="layout-v.layTemplateContentOnly" />
>     </cf:case>
>     <cf:defaultcase>
>         <do action="layout-v.layTemplateAccessible" />
>     </cf:defaultcase>
> </cf:switch>
> ...
>
> xmlParse() gives:
> *The tag </cf:case> had no corresponding opening tag*
>
> Can anyone comment on / verify this behaviour?
>
> thanks
>
> Michael
>
>
>
On Sunday, May 6, 2012 2:54:50 PM UTC+1, Fiddlesticks wrote:
>
> Hi,
>
> Apologies if this has been raised before (couldn't find anything), but I 
> can't get Fusebox5 working on openBD 2,0,2
>
> The problem appears to be down to a couple of isses with the way XMLParse 
> handles the circuit files.  I dumped the code out into a cfsavecontent 
> block within test.cfm (away from Fusebox) to try it out.
>
> 1.  It interprets the doctype as an incorrect comment,and errors:
> *eg.*
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd";>
> ...
>
> xmlParse gives:
> *Comment must start with "<!--". Line: 3 Column: 4*
>
>
> 2.  xmlParse does not seem to be able to handle switch cases within the 
> XML eg.
>
> ...
> <cf:switch expression="test">
>     <cf:case value="contentOnly">
>         <do action="layout-v.layTemplateContentOnly" />
>     </cf:case>
>     <cf:defaultcase>
>         <do action="layout-v.layTemplateAccessible" />
>     </cf:defaultcase>
> </cf:switch>
> ...
>
> xmlParse() gives:
> *The tag </cf:case> had no corresponding opening tag*
>
> Can anyone comment on / verify this behaviour?
>
> thanks
>
> Michael
>
>
>
On Sunday, May 6, 2012 2:54:50 PM UTC+1, Fiddlesticks wrote:
>
> Hi,
>
> Apologies if this has been raised before (couldn't find anything), but I 
> can't get Fusebox5 working on openBD 2,0,2
>
> The problem appears to be down to a couple of isses with the way XMLParse 
> handles the circuit files.  I dumped the code out into a cfsavecontent 
> block within test.cfm (away from Fusebox) to try it out.
>
> 1.  It interprets the doctype as an incorrect comment,and errors:
> *eg.*
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd";>
> ...
>
> xmlParse gives:
> *Comment must start with "<!--". Line: 3 Column: 4*
>
>
> 2.  xmlParse does not seem to be able to handle switch cases within the 
> XML eg.
>
> ...
> <cf:switch expression="test">
>     <cf:case value="contentOnly">
>         <do action="layout-v.layTemplateContentOnly" />
>     </cf:case>
>     <cf:defaultcase>
>         <do action="layout-v.layTemplateAccessible" />
>     </cf:defaultcase>
> </cf:switch>
> ...
>
> xmlParse() gives:
> *The tag </cf:case> had no corresponding opening tag*
>
> Can anyone comment on / verify this behaviour?
>
> thanks
>
> Michael
>
>
>
On Sunday, May 6, 2012 2:54:50 PM UTC+1, Fiddlesticks wrote:
>
> Hi,
>
> Apologies if this has been raised before (couldn't find anything), but I 
> can't get Fusebox5 working on openBD 2,0,2
>
> The problem appears to be down to a couple of isses with the way XMLParse 
> handles the circuit files.  I dumped the code out into a cfsavecontent 
> block within test.cfm (away from Fusebox) to try it out.
>
> 1.  It interprets the doctype as an incorrect comment,and errors:
> *eg.*
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd";>
> ...
>
> xmlParse gives:
> *Comment must start with "<!--". Line: 3 Column: 4*
>
>
> 2.  xmlParse does not seem to be able to handle switch cases within the 
> XML eg.
>
> ...
> <cf:switch expression="test">
>     <cf:case value="contentOnly">
>         <do action="layout-v.layTemplateContentOnly" />
>     </cf:case>
>     <cf:defaultcase>
>         <do action="layout-v.layTemplateAccessible" />
>     </cf:defaultcase>
> </cf:switch>
> ...
>
> xmlParse() gives:
> *The tag </cf:case> had no corresponding opening tag*
>
> Can anyone comment on / verify this behaviour?
>
> thanks
>
> Michael
>
>
>
On Sunday, May 6, 2012 2:54:50 PM UTC+1, Fiddlesticks wrote:
>
> Hi,
>
> Apologies if this has been raised before (couldn't find anything), but I 
> can't get Fusebox5 working on openBD 2,0,2
>
> The problem appears to be down to a couple of isses with the way XMLParse 
> handles the circuit files.  I dumped the code out into a cfsavecontent 
> block within test.cfm (away from Fusebox) to try it out.
>
> 1.  It interprets the doctype as an incorrect comment,and errors:
> *eg.*
> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "
> http://www.springframework.org/dtd/spring-beans.dtd";>
> ...
>
> xmlParse gives:
> *Comment must start with "<!--". Line: 3 Column: 4*
>
>
> 2.  xmlParse does not seem to be able to handle switch cases within the 
> XML eg.
>
> ...
> <cf:switch expression="test">
>     <cf:case value="contentOnly">
>         <do action="layout-v.layTemplateContentOnly" />
>     </cf:case>
>     <cf:defaultcase>
>         <do action="layout-v.layTemplateAccessible" />
>     </cf:defaultcase>
> </cf:switch>
> ...
>
> xmlParse() gives:
> *The tag </cf:case> had no corresponding opening tag*
>
> Can anyone comment on / verify this behaviour?
>
> thanks
>
> Michael
>
>
>

-- 
online documentation: http://openbd.org/manual/
   google+ hints/tips: https://plus.google.com/115990347459711259462
     http://groups.google.com/group/openbd?hl=en

Reply via email to