Re: Variables/Parameters and Scoping

/ Alessandro Vernet <avernet@orbeon.com> was heard to say:
| On 5/19/06, Norman Walsh <Norman.Walsh@sun.com> wrote:
|> In this case, each individual expression is easy to understand and
|> implement and there's nothing that prevents a user from building
|> compound expressions if they need them:
|>
|>   <p:variable name="a1" document="input-1" select="expr1"/>
|>   <p:variable name="a2" document="input-2" select="expr2"/>
|>   <p:with-param name="a" select="expression using $a1 and $a2"/>
|
| Good point. I agree.
|
| Now talking about the syntax (it's nice to know that there will be
| always something people can disagree about!), what about staying with

:-)

| "ref" instead of "document"? It's not that I particularly like "ref",
| but I dislike "document" 

Sure, we could use ref here. I think you're right that we should be
consistent.

| as we could be pointing to a sequence of documents.

Hmm. Could we? I'm not sure that evaluating an XPath expression over
a sequence of documents is well defined.  But I take your point.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Saturday, 20 May 2006 21:16:42 UTC