File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -789,7 +789,7 @@ http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs
789
789
<xsl : function name =" idml2xml:text-lang" as =" xs:string?" >
790
790
<xsl : param name =" text" as =" element(idml2xml:genPara)" />
791
791
<xsl : variable name =" style-name" select =" idml2xml:StyleNameEscape($text/@aid:pstyle)" as =" xs:string" />
792
- <xsl : variable name =" lang-by-style" select =" $text/ancestor::dbk:hub/dbk:info/css:rules/css:rule[@name eq $style-name]/@xml:lang[last()]" as =" attribute(xml:lang)?" />
792
+ <xsl : variable name =" lang-by-style" select =" $text/ancestor::dbk:hub/dbk:info/css:rules/css:rule[@name eq $style-name][@layout-type = 'para'] /@xml:lang[last()]" as =" attribute(xml:lang)?" />
793
793
<xsl : variable name =" lang-override" select =" $text/@xml:lang" as =" attribute(xml:lang)?" />
794
794
<xsl : sequence select =" ($lang-override, $lang-by-style)[1]" />
795
795
</xsl : function >
You can’t perform that action at this time.
0 commit comments