> -----Original Message-----
> From: Jochen Kuhnle [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 31. Mai 2005 14:07
> To: [email protected]
> Subject: RE: [RFE] Some enhancements to XSP

> > Any preferrences which character to use?
> 
> Out of purely unrational affection, I prefer "#{" and "}". 
> The fact that I have implemented the prototype using this syntax really has 
> nothing to do with this ;). "}" is quoted by "#}", "#" by "##" and "#x" 
> results in an error if x != '}' and x != '#'.

Putting the special character before the opening brace leads to more
possibilies for collisions in existing logicsheets.

For example, with "name" and "text" being XSLT variables:

   <a href="page.html#{$name}"><xsl:value-of select="$text"/></a>

By putting the special character, which cannot be at the start of an XSLT
expression, after the opening brace avoids these problems altogether.

Cheers, Alfred.

Reply via email to