diff --git a/tests/docs/bug-131.xml b/tests/docs/bug-131.xml
new file mode 100644
index 0000000000000000000000000000000000000000..84d14a83c691fdcfcde8c7fe052df49c5f45319d_dGVzdHMvZG9jcy9idWctMTMxLnhtbA==
--- /dev/null
+++ b/tests/docs/bug-131.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<title>My title</title>
+
diff --git a/tests/general/bug-131-imp.imp b/tests/general/bug-131-imp.imp
new file mode 100644
index 0000000000000000000000000000000000000000..84d14a83c691fdcfcde8c7fe052df49c5f45319d_dGVzdHMvZ2VuZXJhbC9idWctMTMxLWltcC5pbXA=
--- /dev/null
+++ b/tests/general/bug-131-imp.imp
@@ -0,0 +1,19 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                version="1.0">
+<xsl:attribute-set name="title.properties">
+  <xsl:attribute name="font-size">14pt</xsl:attribute>
+  <xsl:attribute name="font-weight">bold</xsl:attribute>
+  <xsl:attribute name="hyphenate">false</xsl:attribute>
+  <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
+</xsl:attribute-set>
+
+<xsl:template match="/title">
+    <fo:block xsl:use-attribute-sets="title.properties">
+        <xsl:apply-templates/>
+    </fo:block>
+</xsl:template>
+
+</xsl:stylesheet>
+
+
diff --git a/tests/general/bug-131.out b/tests/general/bug-131.out
new file mode 100644
index 0000000000000000000000000000000000000000..84d14a83c691fdcfcde8c7fe052df49c5f45319d_dGVzdHMvZ2VuZXJhbC9idWctMTMxLm91dA==
--- /dev/null
+++ b/tests/general/bug-131.out
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="8pt" font-weight="bold" hyphenate="false" keep-with-next.within-column="always">My title</fo:block>
diff --git a/tests/general/bug-131.xsl b/tests/general/bug-131.xsl
new file mode 100644
index 0000000000000000000000000000000000000000..84d14a83c691fdcfcde8c7fe052df49c5f45319d_dGVzdHMvZ2VuZXJhbC9idWctMTMxLnhzbA==
--- /dev/null
+++ b/tests/general/bug-131.xsl
@@ -0,0 +1,13 @@
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:fo="http://www.w3.org/1999/XSL/Format"
+                version="1.0">
+
+<xsl:import href="bug-131-imp.imp"/>
+
+<xsl:attribute-set name="title.properties">
+    <xsl:attribute name="font-size">8pt</xsl:attribute>
+</xsl:attribute-set>
+
+</xsl:stylesheet>
+
+