xsl-list
[Top] [All Lists]

Re: [xsl] Type error with variable as=xs:string using xsl:choose

2006-09-07 03:16:00

me> makes a sequence of length 2, a text node and a string,

For the record, Mike's answer was more acurate (you get a sequence of 2
text nodes, not a node and a string. xsl:value-of and xsl:text both make
nodes rather than strings). Rest of my answer was OK though.

In this case you could probably avoid the whole problem as

<xsl:variable name="normsrc" as="xs:string"
  select="replace($xsrc,'^.*/images/','images/')"/>

David

--~------------------------------------------------------------------
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>
--~--