Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Empty String param

From: "G. Ken Holman" <gkholman@-------------------->
To:
Date: 4/2/2008 3:56:00 PM
At 2008-04-02 15:21 +0100, Kerry, Richard wrote:
<xsl:template name="insert">
<xsl:param name="default" />
<!-- various stuff using $default-->
</xsl:template>

And eventually I do
<xsl:call-template name="insert">
<xsl:with-param name="default" select="$named-nodes[1]/@default" />
</xsl:call-template>
...
I have tried adding as="xs:string" to the xsl:with-param and also to the
xsl:param as I'd have thought that even though it may be the case that
the processor would reject an empty node-set or sequence if I was
passing one it should surely expect a string to be allowed to be empty.

Have you tried:   select="string($named-nodes[1]/@default)"



That will guarantee that what you send is a string.



I hope this helps.



. . . . . . . . . . Ken



--
Upcoming:  UBL Apr.22,24; genericode code lists Apr.23; Rome,Italy
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent