diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-03 12:05:49 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-03 12:05:49 +0000 |
commit | bc7583143625a86bdfd159058fa5b2762f2b64c2 (patch) | |
tree | 2f415bd49ee44056fa3b87575e93b22c5e899bd8 /src/java/org/apache/fop/fo/FOPropertyMapping.java | |
parent | 8e49549a9f59b5ee87a1c060fa9801916adf153d (diff) | |
download | xmlgraphics-fop-bc7583143625a86bdfd159058fa5b2762f2b64c2.tar.gz xmlgraphics-fop-bc7583143625a86bdfd159058fa5b2762f2b64c2.zip |
Added very basic parsing for the xml:lang shorthand.
No validation of the specified value, but the language and country
properties now do take the shorthand into account to determine their
value.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@617976 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/FOPropertyMapping.java')
-rw-r--r-- | src/java/org/apache/fop/fo/FOPropertyMapping.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index 695eddc07..434d4acaf 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -66,6 +66,7 @@ import org.apache.fop.fo.properties.TextDecorationProperty; import org.apache.fop.fo.properties.ToBeImplementedProperty; import org.apache.fop.fo.properties.VerticalAlignShorthandParser; import org.apache.fop.fo.properties.WhiteSpaceShorthandParser; +import org.apache.fop.fo.properties.XMLLangShorthandParser; /** * This class creates and returns an array of Property.Maker instances @@ -1060,12 +1061,14 @@ public final class FOPropertyMapping implements Constants { m = new StringProperty.Maker(PR_COUNTRY); m.setInherited(true); m.setDefault("none"); + m.addShorthand(s_generics[PR_XML_LANG]); addPropertyMaker("country", m); // language m = new StringProperty.Maker(PR_LANGUAGE); m.setInherited(true); m.setDefault("none"); + m.addShorthand(s_generics[PR_XML_LANG]); addPropertyMaker("language", m); // script @@ -2722,9 +2725,10 @@ public final class FOPropertyMapping implements Constants { addPropertyMaker("white-space", m); // xml:lang - m = new ToBeImplementedProperty.Maker(PR_XML_LANG); + m = new StringProperty.Maker(PR_XML_LANG); m.setInherited(true); m.setDefault(""); + m.setDatatypeParser(new XMLLangShorthandParser()); addPropertyMaker("xml:lang", m); } |