Subject: RE: need help outputing summary of head elements
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 20 Sep 2005 11:52:43 +0100
|
> > or simpler,
> >
> > <xsl:function name="num:roman" as="xs:string">
> > <xsl:param name="value" as="xs:integer"/>
> > <xsl:number value="$value" format="I."/>
> > </xsl:function>
> >
> > <xsl:variable name="strRoman" as="xs:string*"
> > select="for $i in (1 to 19) return
> > num:roman($i)"/>
>
> i used the former instead of the later, i'm having an
> error on the for statement in select (not a valid
> XPATH 2.0 expression).
Did you declare the "num" namespace prefix? If you did, then this is a valid
XPath 2.0 expression.
Michael Kay
http://www.saxonica.com/
| Current Thread |
|
UlyLee - 20 Sep 2005 11:36:48 -0000
|
|