xsl-list
[Top] [All Lists]

Re: [xsl] Typing variables

2012-09-18 06:12:43
On 18/09/2012 11:14, Ihe Onwuka wrote:
On Tue, Sep 18, 2012 at 11:06 AM, Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
"category":["_IOS"," _WEB"," _CTV"] which is what I get if I don't
type it, what should the type be to get the answer I want.

Not sure I follow... the general good practice rule is: always use the
as attribute.


Assign a type to

<xsl:variable name="val">"<xsl:sequence
select="replace(.,',',concat($quot,',',$quot))"/>"</xsl:variable>

why using that form (which tends to cause problems) rather than



<xsl:variable name="val" select="replace(.,',',concat($quot,',',$quot))"/>

which is simpler and returns a string string automatically?

David


--
google plus: https:/profiles.google.com/d.p.carlisle

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>