Subject: Re: [xsl] String conversion problem when string is large From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 21 Mar 2012 14:06:58 -0400 |
In other words, if
<xsl:param name="string" as="xs:string">string</xsl:param>
is long for
<xsl:param name="string" select="'string'"/>Well, there are other benefits in declaring the type. These two constructs aren't equivalent, because in the first case the processor knows that the value will always be a string, whereas in the second it's only a string in the case where it's defaulted.
we should see similarly thatYes, that's true.
<xsl:param name="string">string</xsl:param>
is another way of saying
<xsl:param name="string" as="document-node()"> <xsl:document>string</xsl:document> </xsl:param>
Is this correct?
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] String conversion problem, Michael Kay | Thread | RE: [xsl] String conversion problem, Bulgrien, Kevin |
Re: [xsl] String conversion problem, Michael Kay | Date | RE: [xsl] String conversion problem, Bulgrien, Kevin |
Month |