"Ambiguous rule match" warning in the terminal
Hi @wendell, you've fixed that other terminal warning I'd pinged you about in mattermost, but there's another one. It often doesn't show up in short documents like frontmatter and so forth, but it does appear on lots of larger chapter files.
The issue comes from lines 602 and 611 of the docx-html-extract.xsl
sheet - something to do with the bolding extraction. Could you check this out and make sure it's not causing issues?
Here's an example from Gilbert:
converting: b13_ch09
Warning
XTDE0540: Ambiguous rule match for /w:styles/w:style[3]/w:rPr[1]/w:b[1]
Matches both
"element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)[not((data(attribute::attribute(Q{}val))) = ("0", "none"))]" on line 611 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl
and "element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)" on line 602 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl
Warning
XTDE0540: Ambiguous rule match for /w:styles/w:style[3]/w:rPr[1]/w:b[1]
Matches both
"element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)[not((data(attribute::attribute(Q{}val))) = ("0", "none"))]" on line 611 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl
and "element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)" on line 602 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl
Warning
XTDE0540: Ambiguous rule match for /w:styles/w:style[3]/w:rPr[1]/w:b[1]
Matches both
"element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)[not((data(attribute::attribute(Q{}val))) = ("0", "none"))]" on line 611 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl
and "element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style)//element(Q{http://schemas.openxmlformats.org/wordprocessingml/2006/main}b)" on line 602 of file:/Users/atheg/Desktop/crawler/header_promotion_strategies/XSweet-staging-85088850446b93f01a458b5995f36b3041096384/scripts/../applications/docx-extract/docx-html-extract.xsl