Recoverable error while running XSL

Posted by Kate on Stack Overflow See other posts from Stack Overflow or by Kate
Published on 2012-11-17T10:50:56Z Indexed on 2012/11/17 11:02 UTC
Read the original article Hit count: 212

Filed under:

XSL:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ve="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" exclude-result-prefixes="wp wne w10 w ve o r m v"  version="2.0">

<xsl:output method="text"/>
<xsl:param name="styleName"/>
<xsl:template match="w:p">
  <xsl:apply-templates/><xsl:text>&#10;</xsl:text>
</xsl:template>

<xsl:template match="w:r[not  
             ((parent::w:hyperlink[@w:anchor[matches(.,concat('^(',$styleName,')')),'i']]))]"> 
  <xsl:value-of select="replace(., '.', '&#xFF00;')"/>
</xsl:template>
</xsl:stylesheet>

While processing the above XSL, I am getting the below error,

Recoverable Error:

Recoverable error on line 11 
  FORG0006: An error occurred matching pattern {w:r[not               
  ((parent::w:hyperlink[@w:anchor[matches(.,concat('^(',$styleName,')')),'i']]))]}:
  Effective boolean value is not defined for a sequence of two or more items starting with a boolean

Please Help. I am not able to figure out this.

© Stack Overflow or respective owner

Related posts about xslt-2.0