commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: [scxml] src and parser invocation
Date Thu, 03 Jun 2010 00:18:31 GMT
On Wed, Jun 2, 2010 at 8:08 PM, Fabrizio Morbini <fmorbini@gmail.com> wrote:
> Hi, if we have the following case:
>  2 scxml files: a.scxml and b.scxml
>  in a.scxml, 2 different nodes use the src attribute to source the
> content from other 2 different nodes defined in b.scxml (using the
> syntax src="b.scxml#node_i").
>
> is the file b.scxml completely parsed for every instance of src
> attribute found while parsing a.scxml? Or is b.scxml parsed only once
> and the result reused?
>
<snip/>

It will be parsed twice, completely (any time the src attribute is
used, the entire document at the mentioned URL is parsed). Therefore,
where possible, its better to separate content that gets sourced in,
into smaller independent files.

-Rahul


> thanks,
> fabrizio.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message