Subject: Re: [xsl] Need to remove unusual character in source From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 27 Sep 2006 01:16:44 +0200 |
I've come across a character in the source that I need to remove.
I'm using Saxon 8, XSLT 2
the character is and its a control character
0x18 CAN
<xsl:function name="try-loading-file"> <xsl:param name="filename" /> <xsl:value-of select="document($filename)" /> </xsl:function>
|<xsl:template match="/"> <root> <xsl:copy-of select="saxon:try(yourns:try-loading-file('your filename here'), saxon:function('yourns:catch-loading-error',1))"/> </root> </xsl:template>|
||| <xsl:param name="error-info"/> <xsl:sequence select="$error-info"/> <!-- DO SOMETHING WITH THE ERROR, LIKE CALLING YOUR OWN EXTENSION FUNCTION which may take the document, filter it and let the application do a retry --> ||</xsl:function>|
|Cheers, Abel Braaksma http://abelleba.metacarpus.com |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Need to remove unusual ch, Abel Braaksma | Thread | Re: [xsl] Need to remove unusual ch, Florent Georges |
Re: [xsl] Need to remove unusual ch, Abel Braaksma | Date | Re: [xsl] Need to remove unusual ch, Mario Madunic |
Month |