Sandor,

Sablotron itself doesn't implement the XML parser. It uses the Expat 
parser. Unfortunatelly Expat is not a validating parser, so it's not 
possible to meet your requirement in some easy way.

May be in the future we might support more different parsers; some of 
them could be validating. No plans for it right now.

Thank you for the bugreport, we'll check it.

Pavel

Sandor Fazekas wrote:

> Hi,
> 
> As far as I could experience, there isn't xml validation in sablotron. It
> would be a nice feature to have a command line switch which turns on
> validation for the input xml file.
> 
> I don't know if this list is also a bug report list or not, but I would
> like to report a bug in sablot which apeared in version 0.52, and which
> makes sabcmd crash. ( I tested only under win2k). If I am processing an
> xml file with content:
> 
> <a b="1"/>
> 
> with an xsl template:
> 
> <xsl:template match="/a">
>       <xsl:value-of select="string(number(@b))"/>
> </xsl:template>
> 
> than sabcmd-0.52 crashes, but sabcmd-0.51 and any previous versions are
> working fine and output:
> 
> 1
> 
> Best regards,
> Sandor
> 



-- 
Pavel Hlavnicka
Ginger Alliance
www.gingerall.com

Reply via email to