On Wed, Sep 12 2007 19:23:29 +0100, alexmoraes@gmail.com wrote:
> I tryed this:
>
> <xsl:variable name="absoluteURI" select="resolve-uri(@src,
> base-uri(.))" as="xs:anyURI"/>
> But it didn´t work.
> Two errors:
> Error in expression resolve-uri(@src, base-uri(.)): Unknown system
> function: resolve-uri;
> and
> Attribute as is not allowed on this element.
>
> Is there another way to solve this? The file that i need to check is an url.
What XSLT processor are you using?
resolve-uri() is an XPath 2.0 function, and it appears that you are
using an XSLT 1.0 processor since it doesn't recognise the "as"
attribute.
To use Michael Kay's example in his XSL-List post, you would need a
Java-based XSLT 2.0 processor (such as Michael Kay's 'Saxon').
Regards,
Tony Graham.
======================================================================
Tony.Graham@MenteithConsulting.com
http://www.menteithconsulting.comMenteith Consulting Ltd Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
----------------------------------------------------------------------
Menteith Consulting -- Understanding how markup works
======================================================================