Re: [xslt] Errors that provide no location information



On Sun, Oct 07, 2007 at 11:17:18AM -0700, Ron Burk wrote:
> It's inconvenient (in direct proportion to the size of
> the input XSLT) when an error provides no information
> about where the error happened. For example:
> 
> =================================================
> <?xml version="1.0"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.1"
>  >
> 
> <xsl:template match="DescriptionList">
>      <xsl:if test="">
>      </xsl:if>
> </xsl:template>
> 
> </xsl:stylesheet>
> =================================================
> 
> [C:\rlb\computer\software\utilities\wuild\docs]xsltproc foo.xsl
> XPath error Invalid expression
> 
> ^
> 
> 
> Is there any easy fix that would improve the error
> reporting here?

  Upgrading to recent versions I guess:

paphio:~ -> xsltproc tst.xsl
XPath error : Invalid expression
compilation error: file tst.xsl line 8 element if
xsl:if : could not compile test expression ''
paphio:~ -> 

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]