<?xml version="1.0" encoding="UTF-8"?>
<!-- This document is released into the public domain -->
<!-- Selector, css, pseudoclass, val, indent, post-indent, styleatt do not represent properties, descriptors, rules, or values; 'page' was renamed to 'pagerule' in order to distinguish them during parsing (the other rules (e.g,. import) do not conflict); as with the original CSS 'font-family', 'font-size', 'font-stretch', 'font-style', 'font-variant', 'font-weight' is ambiguous as to whether it is a property or descriptor: the stylesheet thus relies here (as in some other places perhaps) on the user including the allowable property or descriptor values in the right place; 'styleatt' is used on a selector element(with any value and without other attributes) to add the style attribute within XHTML elements; just place this selector-encapsulated style content at the beginning of the element to which you wish there to be a style attribute added (if one already exists, it will be overwritten); changed link to linkprop to distinguish from localized XHTML's link element; changed 'pre' to 'preformatted', 'sub' to 'subscript', 'table' to 'atable' -->
<!-- Using XSLT 2.0, perhaps it would be possible to allow localized XML Declaration and DTD, in the original document as well as get browsers to recognize localized versions of xml-stylesheets so that even the xml-stylesheet attaching this XSL transformation can be localized -->
<!-- Should there always be an option for an 'otherwise' (e.g., to allow English), even if there were only a set number of options (in XHTML stylesheet too)? -->
<!-- Could do 100-900 for bold but may lead people to think other numbers were translated... -->

<!-- Note that shorthand attributes (here elements) such as "background" will only work with English text unless someone can add sophisticated parsing here; one could allow the attributes within (e.g., to join the results together and avoid separate lines for each, but this wouldn't add any features, and would also require more work upfront) - - though one could allow single line adds -->
<!--Fix: on src, better reconcile url(), format() and local()?; allow line-height in 'font'-->


<!DOCTYPE xsl:stylesheet [

<!ENTITY styleatt "格式属性">

<!ENTITY deg "aaa">
<!ENTITY ms "aaa">
<!ENTITY s "aaa">
<!ENTITY em "aaa">
<!ENTITY ex "aaa">
<!ENTITY px "aaa">
<!ENTITY in "寸">
<!ENTITY cm "aaa">
<!ENTITY mm "aaa">
<!ENTITY pt "aaa">
<!ENTITY pc "aaa">
<!ENTITY Hz "aaa">
<!ENTITY kHz "aaa">




<!ENTITY above "上"> 
<!ENTITY absolute "独立的">
<!ENTITY active "运行">
<!ENTITY after "以后">
<!ENTITY all "所有">
<!ENTITY always "总是">
<!ENTITY armenian "亚美尼亚文">
<!ENTITY ascent "向上">
<!ENTITY attr "属性">
<!ENTITY aural "声音"> 
<!ENTITY auto "自动">
<!ENTITY avoid "避免">
<!ENTITY azimuth "方位角">
<!ENTITY background "背景">
<!ENTITY background-attachment "背景附件">
<!ENTITY background-color "背景颜色">
<!ENTITY background-image "背景图象">
<!ENTITY background-position "背景位置">
<!ENTITY background-repeat "背景重复">
<!ENTITY baseline "基础线">
<!ENTITY bbox "最大字符编辑区">
<!ENTITY before "之前">
<!ENTITY behind "后">
<!ENTITY below "下">
<!ENTITY bidi-override "双向强制">
<!ENTITY bitmap "位图"> 
<!ENTITY blink "闪烁">
<!ENTITY block "文字区">
<!ENTITY bold "粗体">
<!ENTITY bolder "加粗体">
<!ENTITY border "边框">
<!ENTITY border-width "边框宽度">
<!ENTITY border-style "边框样式">
<!ENTITY border-collapse "边界倒塌">
<!ENTITY border-color  "边框颜色">
<!ENTITY border-spacing "边界间距">
<!ENTITY border-top "上边框">
<!ENTITY border-right "右边框">
<!ENTITY border-bottom "下边框">
<!ENTITY border-left "左边框">
<!ENTITY border-top-color "边界顶端颜色">
<!ENTITY border-right-color "边界右颜色">
<!ENTITY border-bottom-color "边界底颜色">
<!ENTITY border-left-color "边界左颜色">
<!ENTITY border-top-style "边界顶端格式">
<!ENTITY border-right-style "边界右格式">
<!ENTITY border-bottom-style "边界底格式">
<!ENTITY border-left-style  "边界左格式">
<!ENTITY border-top-width "上边框宽度">
<!ENTITY border-right-width "右边框宽度">
<!ENTITY border-bottom-width "下边框宽度">
<!ENTITY border-left-width "左边框宽度">
<!ENTITY both "两者">
<!ENTITY bottom "底">
<!ENTITY braille "盲文"> 
<!ENTITY cap-height "大写高度">
<!ENTITY capitalize "大写">
<!ENTITY caption "表格名称">
<!ENTITY caption-side "表格名称位置">
<!ENTITY center "居中">
<!ENTITY center-left "左居中">
<!ENTITY center-right "左居右">
<!ENTITY centerline "中心线">
<!ENTITY charset "字符集">
<!ENTITY child "孩子">
<!ENTITY circle "空心圆">
<!ENTITY cjk-ideographic "中日韓統一表意文字">
<!ENTITY clear "清除">
<!ENTITY clip "修剪">
<!ENTITY close-quote "下引号">
<!ENTITY code "程序">
<!ENTITY collapse "倒塌">
<!ENTITY color "颜色">
<!ENTITY compact "紧凑的">
<!ENTITY condensed "凝聚">
<!ENTITY content "内容">
<!ENTITY continuous "连续">
<!ENTITY counter "计算器">
<!ENTITY counter-increment "增加计算">
<!ENTITY counter-reset "重设计算">
<!ENTITY counters "多个计算器">
<!ENTITY crop "修剪标注">
<!ENTITY cross "交叉">
<!ENTITY crosshair "十字准线">
<!ENTITY cue "aaa">
<!ENTITY cue-after "aaa">
<!ENTITY cue-before "aaa">
<!ENTITY cursive "aaa">
<!ENTITY cursor "aaa">
<!ENTITY dashed "aaa">
<!ENTITY decimal "阿拉伯数字">
<!ENTITY decimal-leading-zero "aaa">
<!ENTITY default "默认">
<!ENTITY definition-src "aaa">
<!ENTITY descent "aaa">
<!ENTITY digits "aaa">
<!ENTITY direction "aaa">
<!ENTITY disc "实心圆">
<!ENTITY display "显示">
<!ENTITY dotted "aaa">
<!ENTITY double "aaa">
<!ENTITY e-resize "aaa">
<!ENTITY elevation "aaa">
<!ENTITY embed "aaa">
<!ENTITY embossed "aaa"> 
<!ENTITY empty-cells "aaa">
<!ENTITY expanded "分散">
<!ENTITY extra-condensed "很凝聚">
<!ENTITY extra-expanded "很分散">
<!ENTITY fantasy "aaa">
<!ENTITY far-left "aaa">
<!ENTITY far-right "aaa">
<!ENTITY fast "aaa">
<!ENTITY faster "aaa">
<!ENTITY female "女">
<!ENTITY first "第一个">
<!ENTITY first-child "aaa">
<!ENTITY first-letter "aaa">
<!ENTITY first-line "aaa">
<!ENTITY fixed "aaa">
<!ENTITY float "漂浮">
<!ENTITY focus "aaa">
<!ENTITY font "字体">
<!ENTITY font-face "aaa">
<!ENTITY font-family "字体族科">
<!ENTITY font-size "字体大小">
<!ENTITY font-size-adjust "aaa">
<!ENTITY font-stretch "aaa">
<!ENTITY font-style "字体风格">
<!ENTITY font-variant "字体变形">
<!ENTITY font-weight "字体加粗">
<!ENTITY format "aaa">
<!ENTITY georgian "传统的乔治数字">
<!ENTITY grid "aaa"> 
<!ENTITY groove "aaa">
<!ENTITY handheld "手机"> 
<!ENTITY hebrew "传统的希伯莱数字">
<!ENTITY height "高度">
<!ENTITY help "帮助">
<!ENTITY hidden "隐藏">
<!ENTITY hide "藏">
<!ENTITY high "高">
<!ENTITY higher "更高">
<!ENTITY hiragana "日文平假名字符">
<!ENTITY hiragana-iroha "日文平假名序号">
<!ENTITY hover "aaa">
<!ENTITY icon "aaa">
<!ENTITY import "aaa">
<!ENTITY important "重要">
<!ENTITY inherit "inherit">
<!ENTITY inline "aaa">
<!ENTITY inline-table "aaa">
<!ENTITY inset "aaa">
<!ENTITY inside "aaa">
<!ENTITY interactive "aaa">
<!ENTITY invert "aaa">
<!ENTITY italic "斜体字">
<!ENTITY justify "两端对齐">
<!ENTITY katakana "日文片假名字符">
<!ENTITY katakana-iroha "日文片假名序号">
<!ENTITY landscape "aaa">
<!ENTITY lang "语言">
<!ENTITY large "aaa">
<!ENTITY larger "aaa">
<!ENTITY left "左">
<!ENTITY left-side "aaa">
<!ENTITY leftwards "aaa">
<!ENTITY letter-spacing "字母间隔">
<!ENTITY level "aaa">
<!ENTITY lighter "aaa">
<!ENTITY line-height "行高">
<!ENTITY line-through "删除线">
<!ENTITY linkprop "aaa">
<!ENTITY list-item "aaa">
<!ENTITY list-style "目录样式">
<!ENTITY list-style-image "目录样式图象">
<!ENTITY list-style-position "目录样式位置">
<!ENTITY list-style-type "目录样式类型">
<!ENTITY local "aaa">
<!ENTITY loud "aaa">
<!ENTITY low "aaa">
<!ENTITY lower "aaa">
<!ENTITY lower-alpha "小写英文字母">
<!ENTITY lower-greek "基本的希腊小写字母">
<!ENTITY lower-latin "小写拉丁字母">
<!ENTITY lower-roman "小写罗马数字">
<!ENTITY lowercase "aaa">
<!ENTITY ltr "从左到右">
<!ENTITY male "男">
<!ENTITY margin "边界">
<!ENTITY margin-top "上边界">
<!ENTITY margin-right "右边界">
<!ENTITY margin-bottom "下边界">
<!ENTITY margin-left "左边界">
<!ENTITY marker "aaa">
<!ENTITY marker-offset "aaa">
<!ENTITY marks "aaa">
<!ENTITY mathline "aaa">
<!ENTITY max-height  "aaa">
<!ENTITY max-width "aaa">
<!ENTITY media "多媒体">
<!ENTITY medium "aaa">
<!ENTITY menu "菜单">
<!ENTITY message-box "aaa">
<!ENTITY middle "中间">
<!ENTITY min-height "aaa">
<!ENTITY min-width "aaa">
<!ENTITY mix "aaa">
<!ENTITY monospace "aaa">
<!ENTITY move "aaa">
<!ENTITY n-resize "aaa">
<!ENTITY narrower "aaa">
<!ENTITY ne-resize "aaa">
<!ENTITY no-open-quote "aaa">
<!ENTITY no-close-quote "aaa">
<!ENTITY no-repeat "aaa">
<!ENTITY none "没有">
<!ENTITY normal "普通">
<!ENTITY nowrap "无换行">
<!ENTITY nw-resize "aaa">
<!ENTITY oblique "倾斜">
<!ENTITY once "aaa">
<!ENTITY open-quote "上引号">
<!ENTITY orphans "aaa">
<!ENTITY outline "aaa">
<!ENTITY outline-color "aaa">
<!ENTITY outline-style "aaa">
<!ENTITY outline-width "aaa">
<!ENTITY outset "aaa">
<!ENTITY outside "aaa">
<!ENTITY overflow "aaa">
<!ENTITY overline "上划线">
<!ENTITY padding "补白">
<!ENTITY padding-top "上补白">
<!ENTITY padding-right "右补白">
<!ENTITY padding-bottom "下补白">
<!ENTITY padding-left "左补白">
<!ENTITY page "aaa">
<!ENTITY pagerule "aaa">
<!ENTITY paged "aaa"> 
<!ENTITY page-break-after "aaa">
<!ENTITY page-break-before  "aaa">
<!ENTITY page-break-inside "aaa">
<!ENTITY panose-1 "aaa">
<!ENTITY pause "aaa">
<!ENTITY pause-after "aaa">
<!ENTITY pause-before "aaa">
<!ENTITY pitch "aaa">
<!ENTITY pitch-range  "aaa">
<!ENTITY play-during "aaa">
<!ENTITY pointer "aaa">
<!ENTITY portrait "aaa">
<!ENTITY position "aaa">
<!ENTITY preformatted "aaa">
<!ENTITY print "打印"> 
<!ENTITY projection "投影"> 
<!ENTITY quotes "aaa">
<!ENTITY rect "四边形">
<!ENTITY relative "相对的">
<!ENTITY repeat "aaa">
<!ENTITY repeat-x "aaa">
<!ENTITY repeat-y "aaa">
<!ENTITY rgb "红绿蓝">
<!ENTITY richness "aaa">
<!ENTITY ridge "aaa">
<!ENTITY right "右">
<!ENTITY right-side "aaa">
<!ENTITY rightwards "aaa">
<!ENTITY rtl "从右到左">
<!ENTITY run-in "aaa">
<!ENTITY s-resize "aaa">
<!ENTITY sans-serif "aaa">
<!ENTITY screen "屏幕"> 
<!ENTITY scroll "aaa">
<!ENTITY se-resize "aaa">
<!ENTITY semi-condensed "稍微凝聚">
<!ENTITY semi-expanded "稍微分散">
<!ENTITY separate "分开">
<!ENTITY serif "aaa">
<!ENTITY show "显示">
<!ENTITY silent "aaa">
<!ENTITY size "大小">
<!ENTITY slope "aaa">
<!ENTITY slow "aaa">
<!ENTITY slower "aaa">
<!ENTITY small "小">
<!ENTITY small-caps "小型大写字母">
<!ENTITY small-caption "aaa">
<!ENTITY smaller "aaa">
<!ENTITY soft "aaa">
<!ENTITY solid "aaa">
<!ENTITY spell-out "aaa">
<!ENTITY speak "aaa">
<!ENTITY speak-header  "aaa">
<!ENTITY speak-numeral "aaa">
<!ENTITY speak-punctuation "aaa">
<!ENTITY speech-rate "aaa">
<!ENTITY square "实心方块">
<!ENTITY src "资源">
<!ENTITY static "aaa">
<!ENTITY status-bar "aaa">
<!ENTITY stemh "aaa">
<!ENTITY stemv "aaa">
<!ENTITY stress "aaa">
<!ENTITY subscript "aaa">
<!ENTITY super "aaa">
<!ENTITY sw-resize "aaa">
<!ENTITY atable "aaa">
<!ENTITY table-caption "aaa">
<!ENTITY table-cell "aaa">
<!ENTITY table-column "aaa">
<!ENTITY table-column-group "aaa">
<!ENTITY table-footer-group "aaa">
<!ENTITY table-header-group "aaa">
<!ENTITY table-layout "aaa">
<!ENTITY table-row "aaa">
<!ENTITY table-row-group "aaa">
<!ENTITY tactile "aaa"> 
<!ENTITY text "文本">
<!ENTITY text-align "文本排列">
<!ENTITY text-bottom "顶端底">
<!ENTITY text-decoration "文本修饰">
<!ENTITY text-indent "文本缩进">
<!ENTITY text-shadow  "aaa">
<!ENTITY text-top "文本顶端">
<!ENTITY text-transform "文本转换">
<!ENTITY thick "aaa">
<!ENTITY thin "aaa">
<!ENTITY top "顶端">
<!ENTITY topline "aaa">
<!ENTITY transparent "aaa">
<!ENTITY tty "电传打字机">
<!ENTITY tv "电视"> 
<!ENTITY ultra-condensed "aaa">
<!ENTITY ultra-expanded "aaa">
<!ENTITY underline "aaa">
<!ENTITY unicode-bidi "aaa">
<!ENTITY unicode-range "aaa">
<!ENTITY units-per-em "aaa">
<!ENTITY upper-alpha "大写英文字母">
<!ENTITY upper-latin "大写拉丁字母">
<!ENTITY upper-roman "大写罗马数字">
<!ENTITY uppercase "aaa">
<!ENTITY url "aaa">
<!ENTITY vertical-align "纵向排列">
<!ENTITY visibility "aaa">
<!ENTITY visible "aaa">
<!ENTITY visited "aaa">
<!ENTITY visual "aaa"> 
<!ENTITY voice-family "aaa">
<!ENTITY volume "aaa">
<!ENTITY w-resize "aaa">
<!ENTITY wait "aaa">
<!ENTITY white-space "空白">
<!ENTITY wider "aaa">
<!ENTITY widows "aaa">
<!ENTITY width "宽度">
<!ENTITY widths "aaa">
<!ENTITY word-spacing "文字间隔">
<!ENTITY x-fast "aaa">
<!ENTITY x-height "aaa">
<!ENTITY x-high "aaa">
<!ENTITY x-large "aaa">
<!ENTITY x-loud "aaa">
<!ENTITY x-low "aaa">
<!ENTITY x-slow "aaa">
<!ENTITY x-small "aaa">
<!ENTITY x-soft "aaa">
<!ENTITY xx-large "aaa">
<!ENTITY xx-small "aaa">
<!ENTITY z-index "aaa">

<!ENTITY post-indent " ">
<!ENTITY indent "   ">
<!ENTITY css "css2">
<!ENTITY val "价值">
<!ENTITY selector "选择器">
<!ENTITY pseudoclass "冒充种类">
<!ENTITY extravals "extravals2">

<!ENTITY aqua "水色">
<!ENTITY black "黑">
<!ENTITY blue "蓝">
<!ENTITY fuchsia "紫红色">
<!ENTITY gray "灰">
<!ENTITY green "绿">
<!ENTITY lime "青柠色">
<!ENTITY maroon "褐紫色">
<!ENTITY navy "藏青色">
<!ENTITY olive "橄榄色">
<!ENTITY orange "橙色">
<!ENTITY purple "紫">
<!ENTITY red "红">
<!ENTITY silver "银色">
<!ENTITY teal "蓝绿色">
<!ENTITY white "白">
<!ENTITY yellow "黄">






















<!ENTITY procinst "编码指令">
<!ENTITY a "点">
<!ENTITY abbr "缩写">
<!ENTITY above "上">
<!ENTITY accept "接受">
<!ENTITY accept-charset "接受字符集">
<!ENTITY accesskey "快捷键">
<!ENTITY acronym "首字母缩略词">
<!ENTITY action "动作">
<!ENTITY address "地址">
<!ENTITY align "排列">
<!ENTITY alink "点击鼠标时颜色">
<!ENTITY all "所有">
<!ENTITY alt "其他选择">
<!ENTITY alternate "其他方式">
<!ENTITY appendix "附录">
<!ENTITY applet "小苹果">
<!ENTITY aqua "水色">
<!ENTITY area "区域">
<!ENTITY archive "档案">
<!ENTITY aural "声音">
<!ENTITY auto "自动">
<!ENTITY axis "地轴">
<!ENTITY b "加粗">
<!ENTITY background "背景">
<!ENTITY base "基本">
<!ENTITY basefont "默认格式">
<!ENTITY baseline "基础线">
<!ENTITY bdo "换方向">
<!ENTITY below "下">
<!ENTITY bgcolor "背景颜色">
<!ENTITY big "大">
<!ENTITY black "黑">
<!ENTITY blockquote "分段引入">
<!ENTITY blue "蓝">
<!ENTITY body "身体">
<!ENTITY bookmark "书签">
<!ENTITY border "边界">
<!ENTITY bottom "底">
<!ENTITY box "盒子">
<!ENTITY br "换行">
<!ENTITY braille "盲文">
<!ENTITY button "输入区">
<!ENTITY caption "表格名称">
<!ENTITY cellpadding "填充单元格">
<!ENTITY cellspacing "单元格间距">
<!ENTITY center "居中">
<!ENTITY charset "字符集">
<!ENTITY chapter "章">
<!ENTITY char "字">
<!ENTITY charset "字符集">
<!ENTITY charoff "字符偏移量">
<!ENTITY checkbox "检验栏">
<!ENTITY checked "已检验">
<!ENTITY circle "圆">
<!ENTITY cite "援引">
<!ENTITY class "类">
<!ENTITY classid "编码位置">
<!ENTITY clear "清除">
<!ENTITY code "程序">
<!ENTITY codebase "编码基本位置">
<!ENTITY codetype "编码类型">
<!ENTITY col "列">
<!ENTITY colgroup "列组">
<!ENTITY color "颜色">
<!ENTITY cols "多列">
<!ENTITY colspan "列间跨度">
<!ENTITY compact "紧凑的">
<!ENTITY content "内容">
<!ENTITY contents "目录">
<!ENTITY coords "座标">
<!ENTITY copyright "版权">
<!ENTITY data "数据">
<!ENTITY datetime "时间日期">
<!ENTITY dd "定义描述">
<!ENTITY declare "声明">
<!ENTITY default "默认">
<!ENTITY defer "等待">
<!ENTITY del "删除">
<!ENTITY dfn "定义">
<!ENTITY dir "方向">
<!ENTITY dl "定义目录">
<!ENTITY dt "定义词">
<!ENTITY dir "方向">
<!ENTITY disabled "失效">
<!ENTITY div "部分">
<!ENTITY em "强调">
<!ENTITY enctype "编码类型">
<!ENTITY face "脸">
<!ENTITY fieldset "特征群组">
<!ENTITY file "文件">
<!ENTITY fontelement "格式元素">
<!ENTITY for "为了">
<!ENTITY form "表">
<!ENTITY frame "框">
<!ENTITY frameborder "边框">
<!ENTITY frameset "框组">
<!ENTITY fuchsia "紫红色">
<!ENTITY get "得到">
<!ENTITY glossary "术语表">
<!ENTITY gray "灰">
<!ENTITY green "绿">
<!ENTITY groups "群">
<!ENTITY h "标题">
<!ENTITY handheld "手机">
<!ENTITY head "头">
<!ENTITY headers "多个列名">
<!ENTITY height "高">
<!ENTITY help "帮助">
<!ENTITY hidden "隐藏">
<!ENTITY hr "新页">
<!ENTITY href "超文本">
<!ENTITY hreflang "超文本语言">
<!ENTITY hsides "水平边">
<!ENTITY hspace "水平距离">
<!ENTITY html "页">
<!ENTITY http-equiv "http相当于">
<!ENTITY i "斜体">
<!ENTITY id "身份">
<!ENTITY iframe "段落内框">
<!ENTITY image "图">
<!ENTITY img "图片">
<!ENTITY index "索引">
<!ENTITY input "输入">
<!ENTITY inputmode "输入方式">
<!ENTITY ins "插入">
<!ENTITY isindex "复原">
<!ENTITY ismap "是地图">
<!ENTITY justify "居中">
<!ENTITY kbd "键盘">
<!ENTITY label "标签">
<!ENTITY language "语言">
<!ENTITY left "左">
<!ENTITY legend "群组标签">
<!ENTITY lhs "左边">
<!ENTITY li "项目">
<!ENTITY lime "青柠色">
<!ENTITY link "链接">
<!ENTITY longdesc "精确描述">
<!ENTITY ltr "从左到右">
<!ENTITY map "地图">
<!ENTITY marginheight "上下边距">
<!ENTITY marginwidth "左右边距">
<!ENTITY maroon "褐紫色">
<!ENTITY maxlength "最长">
<!ENTITY media "多媒体">
<!ENTITY menu "菜单">
<!ENTITY meta "说明">
<!ENTITY method "方式">
<!ENTITY middle "中间">
<!ENTITY multiple "多项">
<!ENTITY name "名字">
<!ENTITY navy "藏青色">
<!ENTITY next "下一个">
<!ENTITY no "不">
<!ENTITY noframes "无框">
<!ENTITY nohref "无超文本">
<!ENTITY none "没有">
<!ENTITY noresize "无法设定">
<!ENTITY noscript "无编码">
<!ENTITY noshade "无阴影">
<!ENTITY nowrap "无换行">
<!ENTITY number1 "一">
<!ENTITY number2 "二">
<!ENTITY number3 "三">
<!ENTITY number4 "四">
<!ENTITY number5 "五">
<!ENTITY number6 "六">
<!ENTITY object "物体">
<!ENTITY ol "顺序列表">
<!ENTITY olive "橄榄色">
<!ENTITY onblur "模糊时">
<!ENTITY onchange "改变时">
<!ENTITY onclick "单击时">
<!ENTITY ondblclick "双击时">
<!ENTITY onfocus "清晰时">
<!ENTITY onkeydown "持续单击某键时">
<!ENTITY onkeypress "单击某键时">
<!ENTITY onkeyup "结束单击某键时">
<!ENTITY onload "下载时">
<!ENTITY onmousedown "持续敲击鼠标时">
<!ENTITY onmousemove "鼠标移动时">
<!ENTITY onmouseout "鼠标远离时">
<!ENTITY onmouseover "鼠标悬停时">
<!ENTITY onmouseup "结束敲击鼠标时">
<!ENTITY onreset "重新设置时">
<!ENTITY onselect "选择时">
<!ENTITY onsubmit "提交时">
<!ENTITY onunload "离开下载页面时">
<!ENTITY optgroup "选择部分">
<!ENTITY option "选项">
<!ENTITY orange "橙色">
<!ENTITY p "段落">
<!ENTITY param "参量">
<!ENTITY password "密码">
<!ENTITY poly "多边形">
<!ENTITY post "发送">
<!ENTITY preserve "保留">
<!ENTITY pre "已格式化">
<!ENTITY prev "上一个">
<!ENTITY print "打印">
<!ENTITY profile "援引">
<!ENTITY projection "投影">
<!ENTITY prompt "询问">
<!ENTITY purple "紫">
<!ENTITY q "引用">
<!ENTITY radio "收音机">
<!ENTITY readonly "只读">
<!ENTITY rect "四边形">
<!ENTITY red "红">
<!ENTITY ref "参考">
<!ENTITY rel "关系">
<!ENTITY reset "重设">
<!ENTITY rev "颠倒">
<!ENTITY rhs "右边">
<!ENTITY right "右">
<!ENTITY row "行">
<!ENTITY rowgroup "行组">
<!ENTITY rows "多行">
<!ENTITY rowspan "行间跨度">
<!ENTITY rtl "从右到左">
<!ENTITY rules "规则">
<!ENTITY s "划掉">
<!ENTITY samp "样品">
<!ENTITY scheme "方案">
<!ENTITY scope "范围">
<!ENTITY screen "屏幕">
<!ENTITY script "编码">
<!ENTITY scrolling "滚动">
<!ENTITY section "片断">
<!ENTITY select "选择">
<!ENTITY selected "已选择">
<!ENTITY shape "形状">
<!ENTITY silver "银色">
<!ENTITY size "大小">
<!ENTITY little "小的">
<!ENTITY span "跨度">
<!ENTITY src "资源">
<!ENTITY standby "等候">
<!ENTITY start "开始">
<!ENTITY strike "中划线">
<!ENTITY strong "突出">
<!ENTITY style "格式">
<!ENTITY stylesheet "格式页面">
<!ENTITY sub "下标">
<!ENTITY submit "接受">
<!ENTITY subsection "次片断">
<!ENTITY summary "概要">
<!ENTITY sup "上标">
<!ENTITY tabindex "下一格次序">
<!ENTITY table "表格">
<!ENTITY target "目标">
<!ENTITY tbody "表格体">
<!ENTITY td "单元格">
<!ENTITY teal "蓝绿色">
<!ENTITY text "文本">
<!ENTITY textarea "输入区">
<!ENTITY text_css "文本css">
<!ENTITY text_xsl "文本xsl">
<!ENTITY tfoot "表格尾">
<!ENTITY th "列名">
<!ENTITY thead "表格头">
<!ENTITY title "标题">
<!ENTITY top "顶端">
<!ENTITY tr "表格行">
<!ENTITY tt "电传字">
<!ENTITY tty "电传打字机">
<!ENTITY tv "电视">
<!ENTITY type "类别">
<!ENTITY u "下划线">
<!ENTITY ul "无序列表">
<!ENTITY usemap "用图">
<!ENTITY valign "垂直排列">
<!ENTITY value "值">
<!ENTITY valuetype "值类型">
<!ENTITY var "多样">
<!ENTITY version "援引">
<!ENTITY vlink "访问后颜色">
<!ENTITY void "消除">
<!ENTITY vsides "垂直边">
<!ENTITY vspace "垂直距离">
<!ENTITY white "白">
<!ENTITY width "宽">
<!ENTITY xmlns "援引">
<!ENTITY xml_lang "xml语言">
<!ENTITY xml_space "xml空格">
<!ENTITY xml-stylesheet "xml格式页面">
<!ENTITY yellow "黄">
<!ENTITY yes "是">

]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="text" media-type="text/css"/> <!-- media-type="text/html" encoding="GB2312" indent="yes" -->

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="&css;">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="&selector;">
<xsl:choose>
	<!-- This maybe should be moved into its own separate group for greater speed (though this is a little more portable in shifting between external/head and the style attribute)? -->
	<xsl:when test="@&styleatt;">
		<xsl:attribute name="style">
			<xsl:apply-templates/>
		</xsl:attribute>
	</xsl:when>	
	<xsl:otherwise>
		<xsl:call-template name="vals"/>
		<xsl:if test="@&extravals;">
			<xsl:value-of select="@&extravals;"/>
		</xsl:if>
		<xsl:if test="@&pseudoclass;">
			<xsl:call-template name="pseudoclasses"/>
		</xsl:if>
		<xsl:text> {</xsl:text>
		<xsl:apply-templates/>
		<xsl:text>}</xsl:text>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template name="vals">
<xsl:choose>
	<xsl:when test="@&val; = '&body;'">
		<xsl:text>body</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&title;'">
		<xsl:text>title</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&abbr;'">
		<xsl:text>abbr</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&acronym;'">
		<xsl:text>acronym</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&address;'">
		<xsl:text>address</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&blockquote;'">
		<xsl:text>blockquote</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&br;'">
		<xsl:text>br</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&cite;'">
		<xsl:text>cite</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&code;'">
		<xsl:text>code</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&dfn;'">
		<xsl:text>dfn</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&div;'">
		<xsl:text>div</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&em;'">
		<xsl:text>em</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number1;'">
		<xsl:text>h1</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number2;'">
		<xsl:text>h2</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number3;'">
		<xsl:text>h3</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number4;'">
		<xsl:text>h4</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number5;'">
		<xsl:text>h5</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&h;&number6;'">
		<xsl:text>h6</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&kbd;'">
		<xsl:text>kbd</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&p;'">
		<xsl:text>p</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&pre;'">
		<xsl:text>pre</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&q;'">
		<xsl:text>q</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&samp;'">
		<xsl:text>samp</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&span;'">
		<xsl:text>span</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&strong;'">
		<xsl:text>strong</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&var;'">
		<xsl:text>var</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&a;'">
		<xsl:text>a</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&dl;'">
		<xsl:text>dl</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&dt;'">
		<xsl:text>dt</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&dd;'">
		<xsl:text>dd</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&ol;'">
		<xsl:text>ol</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&ul;'">
		<xsl:text>ul</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&li;'">
		<xsl:text>li</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&applet;'">
		<xsl:text>applet</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&param;'">
		<xsl:text>param</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&b;'">
		<xsl:text>b</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&big;'">
		<xsl:text>big</xsl:text>
	</xsl:when>

	<xsl:when test="@&val; = '&hr;'">
		<xsl:text>hr</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&i;'">
		<xsl:text>i</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&little;'">
		<xsl:text>small</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&sub;'">
		<xsl:text>sub</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&sup;'">
		<xsl:text>sup</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&tt;'">
		<xsl:text>tt</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&del;'">
		<xsl:text>del</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&ins;'">
		<xsl:text>ins</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&bdo;'">
		<xsl:text>bdo</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&form;'">
		<xsl:text>form</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&fieldset;'">
		<xsl:text>fieldset</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&input;'">
		<xsl:text>input</xsl:text>
	</xsl:when>
	
	
	
	<xsl:when test="@&val; = '&select;'">
		<xsl:text>select</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&textarea;'">
		<xsl:text>textarea</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&label;'">
		<xsl:text>label</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&button;'">
		<xsl:text>button</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&option;'">
		<xsl:text>option</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&legend;'">
		<xsl:text>legend</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&optgroup;'">
		<xsl:text>optgroup</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&caption;'">
		<xsl:text>caption</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&table;'">
		<xsl:text>table</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&td;'">
		<xsl:text>td</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&th;'">
		<xsl:text>th</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&tr;'">
		<xsl:text>tr</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&col;'">
		<xsl:text>col</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&colgroup;'">
		<xsl:text>colgroup</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&tbody;'">
		<xsl:text>tbody</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&thead;'">
		<xsl:text>thead</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&tfoot;'">
		<xsl:text>tfoot</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&img;'">
		<xsl:text>img</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&area;'">
		<xsl:text>area</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&map;'">
		<xsl:text>map</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&object;'">
		<xsl:text>object</xsl:text>
	</xsl:when>
		<xsl:when test="@&val; = '&frameset;'">
		<xsl:text>frameset</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&frame;'">
		<xsl:text>frame</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&noframes;'">
		<xsl:text>noframes</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&iframe;'">
		<xsl:text>iframe</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&basefont;'">
		<xsl:text>basefont</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&center;'">
		<xsl:text>center</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&dir;'">
		<xsl:text>dir</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&font;'">
		<xsl:text>font</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&isindex;'">
		<xsl:text>isindex</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&menu;'">
		<xsl:text>menu</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&s;'">
		<xsl:text>s</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&strike;'">
		<xsl:text>strike</xsl:text>
	</xsl:when>
	<xsl:when test="@&val; = '&u;'">
		<xsl:text>u</xsl:text>
	</xsl:when>	
	<xsl:when test="@&val; = '&noscript;'">
		<xsl:text>noscript</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="@&val;"/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="&font-face;">
<xsl:text>@font-face {</xsl:text>
<xsl:apply-templates/>
<xsl:text>}</xsl:text>
</xsl:template>

<xsl:template match="&media;">
<xsl:text>@media {</xsl:text>
<xsl:apply-templates/>
<xsl:text>}</xsl:text>
</xsl:template>

<xsl:template match="&pagerule;">
<xsl:text>@page {</xsl:text>
<xsl:apply-templates/>
<xsl:text>}</xsl:text>
</xsl:template>

<xsl:template match="&important;">
<xsl:text> !important</xsl:text>
</xsl:template>

<xsl:template match="comment()">
<xsl:text>/*</xsl:text>
<xsl:value-of select="."/>
<xsl:text>*/</xsl:text>
</xsl:template>

<xsl:template name="ending">
<xsl:apply-templates select="&important;"/>
<xsl:text>;</xsl:text>
</xsl:template>

<xsl:template name="pseudoclasses">
	<xsl:choose>
		<xsl:when test="@&pseudoclass; = '&active;'">
			<xsl:text>:active</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&after;'">
			<xsl:text>:after</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&before;'">
			<xsl:text>:before</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&first;'">
			<xsl:text>:first</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&first-child;'">
			<xsl:text>:first-child</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&first-letter;'">
			<xsl:text>:first-letter</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&first-line;'">
			<xsl:text>:first-line</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&focus;'">
			<xsl:text>:focus</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&hover;'">
			<xsl:text>:hover</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&lang;'">
			<xsl:text>:lang</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&left;'">
			<xsl:text>:left</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&link;'">
			<xsl:text>:link</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&right;'">
			<xsl:text>:right</xsl:text>
		</xsl:when>
		<xsl:when test="@&pseudoclass; = '&visited;'">
			<xsl:text>:visited</xsl:text>
		</xsl:when>
		<xsl:otherwise>
			<xsl:text>:</xsl:text>
			<xsl:value-of select="@&pseudoclass;"/>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template match="&import;">
<xsl:text>@import </xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&charset;">
<xsl:text>@charset </xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>




<xsl:template name="colors">
	<xsl:param name="inherit" select="true()"/>
	<xsl:param name="transparent" select="false()"/>
	<xsl:param name="invert" select="false()"/>
	<xsl:param name="none" select="false()"/>
	<xsl:if test=".">
		<xsl:choose>
			<xsl:when test="&rgb;">
				<xsl:text>rgb(</xsl:text>
					<xsl:value-of select="&rgb;"/>
				<xsl:text>)</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&black;'">
				<xsl:text>black</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&green;'">
				<xsl:text>green</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&silver;'">
				<xsl:text>silver</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&lime;'">
				<xsl:text>lime</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&gray;'">
				<xsl:text>gray</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&olive;'">
				<xsl:text>olive</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&white;'">
				<xsl:text>white</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&yellow;'">
				<xsl:text>yellow</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&maroon;'">
				<xsl:text>maroon</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&navy;'">
				<xsl:text>navy</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&red;'">
				<xsl:text>red</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&blue;'">
				<xsl:text>blue</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&purple;'">
				<xsl:text>purple</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&teal;'">
				<xsl:text>teal</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&fuchsia;'">
				<xsl:text>fuchsia</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&aqua;'">
				<xsl:text>aqua</xsl:text>
			</xsl:when>
			<xsl:when test=". = '&orange;'">
				<xsl:text>orange</xsl:text>
			</xsl:when>
			<xsl:when test="($inherit = true()) and (. = '&inherit;')">
				<xsl:text>inherit</xsl:text>
			</xsl:when>
			<xsl:when test="($transparent = true()) and (. = '&transparent;')">
				<xsl:text>transparent</xsl:text>
			</xsl:when>
			<xsl:when test="($invert = true()) and (. = '&invert;')">
				<xsl:text>invert</xsl:text>
			</xsl:when>
			<xsl:when test="($none = true()) and ($none = '&invert;')">
				<xsl:text>none</xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="."/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:if>
</xsl:template>



<xsl:template match="&azimuth;">
<xsl:text>&indent;azimuth:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&left-side;'">
		<xsl:text>left-side</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&far-left;'">
		<xsl:text>far-left</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&center-left;'">
		<xsl:text>center-left</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&center-right;'">
		<xsl:text>center-right</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&far-right;'">
		<xsl:text>far-right</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&right-side;'">
		<xsl:text>right-side</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&behind;'">
		<xsl:text>behind</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&leftwards;'">
		<xsl:text>leftwards</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&rightwards;'">
		<xsl:text>rightwards</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftcenterright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&background;">
<xsl:text>&indent;background:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose><xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&background-attachment;">
<xsl:text>&indent;background-attachment:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&scroll;'">
		<xsl:text>scroll</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&fixed;'">
		<xsl:text>fixed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&background-color;">
<xsl:text>&indent;background-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors">
		<xsl:with-param name="transparent" select="true()"/>
	</xsl:call-template>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template name="uri">
<xsl:choose>
	<xsl:when test="&url;">
		<xsl:text>url(</xsl:text>
		<xsl:value-of select="&url;"/>
		<xsl:text>)</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template match="&background-image;">
<xsl:text>&indent;background-image:&post-indent;</xsl:text>
<xsl:call-template name="uri"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&background-position;">
<xsl:text>&indent;background-position:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&top;'">
		<xsl:text>top</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&bottom;'">
		<xsl:text>bottom</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftcenterright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&background-repeat;">
<xsl:text>&indent;background-repeat:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&repeat;'">
		<xsl:text>repeat</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&repeat-x;'">
		<xsl:text>repeat-x</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&repeat-y;'">
		<xsl:text>repeat-y</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&no-repeat;'">
		<xsl:text>no-repeat</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
</xsl:choose>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border;">
<xsl:text>&indent;border:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-collapse;">
<xsl:text>&indent;border-collapse:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&collapse;'">
		<xsl:text>collapse</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&separate;'">
		<xsl:text>separate</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-color;">
<xsl:text>&indent;border-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors">
		<xsl:with-param name="transparent" select="true()"/>
	</xsl:call-template>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-spacing;">
<xsl:text>&indent;border-spacing:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&border-style;">
<xsl:text>&indent;border-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/></xsl:template>

<xsl:template match="&border-bottom-style;">
<xsl:text>&indent;border-bottom-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/></xsl:template>

<xsl:template match="&border-left-style;">
<xsl:text>&indent;border-left-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/></xsl:template>

<xsl:template match="&border-right-style;">
<xsl:text>&indent;border-right-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/></xsl:template>

<xsl:template match="&border-top-style;">
<xsl:text>&indent;border-top-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/></xsl:template>

<xsl:template name="borderstyle">
<xsl:choose>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&hidden;'">
		<xsl:text>hidden</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&dotted;'">
		<xsl:text>dotted</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&dashed;'">
		<xsl:text>dashed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&solid;'">
		<xsl:text>solid</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&double;'">
		<xsl:text>double</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&groove;'">
		<xsl:text>groove</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&ridge;'">
		<xsl:text>ridge</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inset;'">
		<xsl:text>inset</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&outset;'">
		<xsl:text>outset</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&border-top;">
<xsl:text>&indent;border-top:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&border-right;">
<xsl:text>&indent;border-right:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&border-bottom;">
<xsl:text>&indent;border-bottom:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&border-left;">
<xsl:text>&indent;border-left:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&border-top-color;">
<xsl:text>&indent;border-top-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-right-color;">
<xsl:text>&indent;border-right-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-bottom-color;">
<xsl:text>&indent;border-bottom-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-left-color;">
<xsl:text>&indent;border-left-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-width;">
<xsl:text>&indent;border-width:&post-indent;</xsl:text>
	<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-top-width;">
<xsl:text>&indent;border-top-width:&post-indent;</xsl:text>
	<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-right-width;">
<xsl:text>&indent;border-right-width:&post-indent;</xsl:text>
	<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-bottom-width;">
<xsl:text>&indent;border-bottom-width:&post-indent;</xsl:text>
	<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&border-left-width;">
<xsl:text>&indent;border-left-width:&post-indent;</xsl:text>
	<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template name="borderwidth">
<xsl:choose>
	<xsl:when test=". = '&thin;'">
		<xsl:text>thin</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&medium;'">
		<xsl:text>medium</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&thick;'">
		<xsl:text>thick</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&bottom;">
<xsl:text>&indent;bottom:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&caption-side;">
<xsl:text>&indent;caption-side:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&top;'">
		<xsl:text>top</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&bottom;'">
		<xsl:text>bottom</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&clear;">
<xsl:text>&indent;clear:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&both;'">
		<xsl:text>both</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&clip;">
<xsl:text>&indent;clip:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test="&rect;">
		<xsl:text>rect(</xsl:text>
			<xsl:value-of select="&rect;"/>
		<xsl:text>)</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="autoinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&color;">
<xsl:text>&indent;color:&post-indent;</xsl:text>
	<xsl:call-template name="colors"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&url;">
	<xsl:text>url(</xsl:text>
		<xsl:value-of select="&url;"/>
	<xsl:text>) </xsl:text>
</xsl:template>
<xsl:template match="&attr;">
	<xsl:text>attr(</xsl:text>
		<xsl:value-of select="&attr;"/>
	<xsl:text>) </xsl:text>
</xsl:template>
<xsl:template match="&counter;">
	<xsl:text>counter(</xsl:text>
		<xsl:value-of select="normalize-space(./text())"/>
		<xsl:text>, </xsl:text>
		<!-- See list-style-type for the expected applied template -->
		<xsl:call-template name="liststyletype">
			<xsl:with-param name="liststyletype" select="&list-style-type;"/>
		</xsl:call-template>
	<xsl:text>) </xsl:text>
</xsl:template>

<xsl:template match="&content;">
<xsl:text>&indent;content:&post-indent;</xsl:text>
<!-- See counter, url for the expected applied templates -->
<xsl:apply-templates/>
<xsl:choose>
	<xsl:when test=". = '&open-quote;'">
		<xsl:text>open-quote</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&close-quote;'">
		<xsl:text>close-quote</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&no-open-quote;'">
		<xsl:text>no-open-quote</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&no-close-quote;'">
		<xsl:text>no-close-quote</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&counter-increment;">
<xsl:text>&indent;counter-increment:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
</xsl:template>

<xsl:template match="&counter-reset;">
<xsl:text>&indent;counter-reset:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
</xsl:template>

<xsl:template match="&cue;">
<xsl:text>&indent;cue:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&cue-before;'">
		<xsl:text>cue-before</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&cue-after;'">
		<xsl:text>cue-after</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>


<xsl:template match="&cue-after;">
<xsl:text>&indent;cue-after:&post-indent;</xsl:text>
<xsl:call-template name="uri"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&cue-before;">
<xsl:text>&indent;cue-before:&post-indent;</xsl:text>
<xsl:call-template name="uri"/>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&cursor;">
<xsl:text>&indent;cursor:&post-indent;</xsl:text>
<xsl:apply-templates select="&url;"/>
<xsl:choose>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&crosshair;'">
		<xsl:text>crosshair</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&default;'">
		<xsl:text>default</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&pointer;'">
		<xsl:text>pointer</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&move;'">
		<xsl:text>move</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&e-resize;'">
		<xsl:text>e-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&ne-resize;'">
		<xsl:text>ne-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&nw-resize;'">
		<xsl:text>nw-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&n-resize;'">
		<xsl:text>n-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&se-resize;'">
		<xsl:text>se-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&sw-resize;'">
		<xsl:text>sw-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&s-resize;'">
		<xsl:text>s-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&w-resize;'">
		<xsl:text>w-resize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&text;'">
		<xsl:text>text</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&wait;'">
		<xsl:text>wait</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&help;'">
		<xsl:text>help</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&direction;">
<xsl:text>&indent;direction:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&ltr;'">
		<xsl:text>ltr</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&rtl;'">
		<xsl:text>rtl</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&display;">
<xsl:text>&indent;display:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inline;'">
		<xsl:text>inline</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&block;'">
		<xsl:text>block</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&list-item;'">
		<xsl:text>list-item</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&run-in;'">
		<xsl:text>run-in</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&compact;'">
		<xsl:text>compact</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&marker;'">
		<xsl:text>marker</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&atable;'">
		<xsl:text>table</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inline-table;'">
		<xsl:text>inline-table</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-row-group;'">
		<xsl:text>table-row-group</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-header-group;'">
		<xsl:text>table-header-group</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-footer-group;'">
		<xsl:text>table-footer-group</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-row;'">
		<xsl:text>table-row</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-column-group;'">
		<xsl:text>table-column-group</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-column;'">
		<xsl:text>table-column</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-cell;'">
		<xsl:text>table-cell</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&table-caption;'">
		<xsl:text>table-caption</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&elevation;">
<xsl:text>&indent;elevation:&post-indent;</xsl:text>
<xsl:choose>
<xsl:when test=". = '&below;'">
		<xsl:text>below</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&level;'">
		<xsl:text>level</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&above;'">
		<xsl:text>above</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&higher;'">
		<xsl:text>higher</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&lower;'">
		<xsl:text>lower</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&empty-cells;">
<xsl:text>&indent;empty-cells:&post-indent;</xsl:text>
<xsl:choose>
<xsl:when test=". = '&show;'">
		<xsl:text>show</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&hide;'">
		<xsl:text>hide</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&float;">
<xsl:text>&indent;float:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template name="autoinherit">
<xsl:choose>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="normalinherit">
<xsl:choose>
	<xsl:when test=". = '&normal;'">
		<xsl:text>normal</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="inhere">
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="&height;">
<xsl:text>&indent;height:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&left;">
<xsl:text>&indent;left:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&marker-offset;">
<xsl:text>&indent;marker-offset:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&right;">
<xsl:text>&indent;right:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&top;">
<xsl:text>&indent;top:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&width;">
<xsl:text>&indent;width:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&letter-spacing;">
<xsl:text>&indent;letter-spacing:&post-indent;</xsl:text>
<xsl:call-template name="normalinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&line-height;">
<xsl:text>&indent;line-height:&post-indent;</xsl:text>
<xsl:call-template name="normalinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&word-spacing;">
<xsl:text>&indent;word-spacing:&post-indent;</xsl:text>
<xsl:call-template name="normalinherit"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&list-style;">
<xsl:text>&indent;list-style:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&list-style-type;">
<xsl:text>&indent;list-style-type:&post-indent;</xsl:text>
<xsl:call-template name="liststyletype"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template name="liststyletype">
<xsl:param name="liststyletype" select="."/>
<xsl:choose>
	<xsl:when test="$liststyletype = '&disc;'">
		<xsl:text>disc</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&circle;'">
		<xsl:text>circle</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&square;'">
		<xsl:text>square</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&decimal;'">
		<xsl:text>decimal</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&decimal-leading-zero;'">
		<xsl:text>decimal-leading-zero</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&lower-roman;'">
		<xsl:text>lower-roman</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&upper-roman;'">
		<xsl:text>upper-roman</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&lower-greek;'">
		<xsl:text>lower-greek</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&lower-alpha;'">
		<xsl:text>lower-alpha</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&lower-latin;'">
		<xsl:text>lower-latin</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&upper-alpha;'">
		<xsl:text>upper-alpha</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&upper-latin;'">
		<xsl:text>upper-latin</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&hebrew;'">
		<xsl:text>hebrew</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&armenian;'">
		<xsl:text>armenian</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&georgian;'">
		<xsl:text>georgian</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&cjk-ideographic;'">
		<xsl:text>cjk-ideographic</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&hiragana;'">
		<xsl:text>hiragana</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&katakana;'">
		<xsl:text>katakana</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&hiragana-iroha;'">
		<xsl:text>hiragana-iroha</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&katakana-iroha;'">
		<xsl:text>katakana-iroha</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test="$liststyletype = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="$liststyletype"/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="&list-style-image;">
<xsl:text>&indent;list-style-image:&post-indent;</xsl:text>
<xsl:call-template name="uri"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&list-style-position;">
<xsl:text>&indent;list-style-position:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&inside;'">
		<xsl:text>inside</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&outside;'">
		<xsl:text>outside</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&margin;">
<xsl:text>&indent;margin:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&margin-top;">
<xsl:text>&indent;margin-top:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&margin-right;">
<xsl:text>&indent;margin-right:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&margin-bottom;">
<xsl:text>&indent;margin-bottom:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&margin-left;">
<xsl:text>&indent;margin-left:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&marks;">
<xsl:text>&indent;marks:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&crop;'">
		<xsl:text>crop</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&cross;'">
		<xsl:text>cross</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>




<xsl:template match="&max-height;">
<xsl:text>&indent;max-height:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&max-width;">
<xsl:text>&indent;max-width:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&quotes;">
<xsl:text>&indent;quotes:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&font-size-adjust;">
<xsl:text>&indent;font-size-adjust:&post-indent;</xsl:text>
<xsl:call-template name="noneinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&min-height;">
<xsl:text>&indent;min-height:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&min-width;">
<xsl:text>&indent;min-width:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&orphans;">
<xsl:text>&indent;orphans:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&outline;">
<xsl:text>&indent;outline:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&outline-style;">
<xsl:text>&indent;outline-style:&post-indent;</xsl:text>
<xsl:call-template name="borderstyle"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&outline-width;">
<xsl:text>&indent;outline-width:&post-indent;</xsl:text>
<xsl:call-template name="borderwidth"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&overflow;">
<xsl:text>&indent;overflow:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&visible;'">
		<xsl:text>visible</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&hidden;'">
		<xsl:text>hidden</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&scroll;'">
		<xsl:text>scroll</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="autoinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&padding;">
<xsl:text>&indent;padding:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&padding-top;">
<xsl:text>&indent;padding-top:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&padding-right;">
<xsl:text>&indent;padding-right:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&padding-bottom;">
<xsl:text>&indent;padding-bottom:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&padding-left;">
<xsl:text>&indent;padding-left:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&page-break-after;">
<xsl:text>&indent;page-break-after:&post-indent;</xsl:text>
<xsl:call-template name="alwaysleftright"/>
<xsl:call-template name="avoidautoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&page-break-before;">
<xsl:text>&indent;page-break-before:&post-indent;</xsl:text>
<xsl:call-template name="alwaysleftright"/>
<xsl:call-template name="avoidautoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template name="alwaysleftright">
<xsl:choose>
	<xsl:when test=". = '&always;'">
		<xsl:text>always</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&left;'">
		<xsl:text>left</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&right;'">
		<xsl:text>right</xsl:text>
	</xsl:when>
</xsl:choose>
</xsl:template>

<xsl:template name="leftcenterright">
<xsl:choose>
	<xsl:when test=". = '&center;'">
		<xsl:text>center</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftright"/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="leftright">
<xsl:choose>
	<xsl:when test=". = '&left;'">
		<xsl:text>left</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&right;'">
		<xsl:text>right</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template match="&page-break-inside;">
<xsl:text>&indent;page-break-inside:&post-indent;</xsl:text>
<xsl:call-template name="avoidautoinherit"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template name="avoidautoinherit">
<xsl:choose>
	<xsl:when test=". = '&avoid;'">
		<xsl:text>avoid</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="autoinherit"/>
	</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="noneinherit">
<xsl:choose>
	<xsl:when test=". = '&none;'">
		<xsl:text>none</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&inherit;'">
		<xsl:text>inherit</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&outline-color;">
<xsl:text>&indent;outline-color:&post-indent;</xsl:text>
	<xsl:call-template name="colors">
		<xsl:with-param name="invert" select="true()"/>
	</xsl:call-template>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&pause;">
<xsl:text>&indent;pause:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&pause-after;">
<xsl:text>&indent;pause-after:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>
<xsl:template match="&pause-before;">
<xsl:text>&indent;pause-before:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&page;">
<xsl:text>&indent;page:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&pitch;">
<xsl:text>&indent;pitch:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&x-low;'">
		<xsl:text>x-low</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&low;'">
		<xsl:text>low</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&medium;'">
		<xsl:text>medium</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&high;'">
		<xsl:text>high</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-high;'">
		<xsl:text>x-high</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&pitch-range;">
<xsl:text>&indent;pitch-range:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&play-during;">
<xsl:text>&indent;play-during:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&mix;'">
		<xsl:text>mix</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&repeat;'">
		<xsl:text>repeat</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="uri"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&position;">
<xsl:text>&indent;position:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&static;'">
		<xsl:text>static</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&relative;'">
		<xsl:text>relative</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&absolute;'">
		<xsl:text>absolute</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&fixed;'">
		<xsl:text>fixed</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&richness;">
<xsl:text>&indent;richness:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&size;">
<xsl:text>&indent;size:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&portrait;'">
		<xsl:text>portrait</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&landscape;'">
		<xsl:text>landscape</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&speak;">
<xsl:text>&indent;speak:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&normal;'">
		<xsl:text>normal</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&spell-out;'">
		<xsl:text>spell-out</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="noneinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&speak-header;">
<xsl:text>&indent;speak-header:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&once;'">
		<xsl:text>once</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&always;'">
		<xsl:text>always</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&speak-numeral;">
<xsl:text>&indent;speak-numeral:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&digits;'">
		<xsl:text>digits</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&continuous;'">
		<xsl:text>continuous</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&speak-punctuation;">
<xsl:text>&indent;speak-punctuation:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&code;'">
		<xsl:text>code</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="noneinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&speech-rate;">
<xsl:text>&indent;speech-rate:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&x-slow;'">
		<xsl:text>x-slow</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&slow;'">
		<xsl:text>slow</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&medium;'">
		<xsl:text>medium</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&fast;'">
		<xsl:text>fast</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-fast;'">
		<xsl:text>x-fast</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&faster;'">
		<xsl:text>faster</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&slower;'">
		<xsl:text>slower</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&stress;">
<xsl:text>&indent;stress:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&table-layout;">
<xsl:text>&indent;table-layout:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&auto;'">
		<xsl:text>auto</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&fixed;'">
		<xsl:text>fixed</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&text-align;">
<xsl:text>&indent;text-align:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&justify;'">
		<xsl:text>justify</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="leftcenterright"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&text-transform;">
<xsl:text>&indent;text-transform:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&capitalize;'">
		<xsl:text>capitalize</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&uppercase;'">
		<xsl:text>uppercase</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&lowercase;'">
		<xsl:text>lowercase</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="noneinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&unicode-bidi;">
<xsl:text>&indent;unicode-bidi:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&embed;'">
		<xsl:text>embed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&bidi-override;'">
		<xsl:text>bidi-override</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>




<xsl:template match="&white-space;">
<xsl:text>&indent;white-space:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&preformatted;'">
		<xsl:text>pre</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&nowrap;'">
		<xsl:text>nowrap</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&vertical-align;">
<xsl:text>&indent;vertical-align:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&baseline;'">
		<xsl:text>baseline</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&subscript;'">
		<xsl:text>sub</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&super;'">
		<xsl:text>super</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&top;'">
		<xsl:text>top</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&text-top;'">
		<xsl:text>text-top</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&middle;'">
		<xsl:text>middle</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&bottom;'">
		<xsl:text>bottom</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&text-bottom;'">
		<xsl:text>text-bottom</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

	
<xsl:template match="&white-space;">
<xsl:text>&indent;white-space:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&visible;'">
		<xsl:text>visible</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&hidden;'">
		<xsl:text>hidden</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&collapse;'">
		<xsl:text>collapse</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&voice-family;">
<xsl:text>&indent;voice-family:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&male;'">
		<xsl:text>male</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&female;'">
		<xsl:text>female</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&child;'">
		<xsl:text>child</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&volume;">
<xsl:text>&indent;volume:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&silent;'">
		<xsl:text>silent</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-soft;'">
		<xsl:text>x-soft</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&soft;'">
		<xsl:text>soft</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&medium;'">
		<xsl:text>medium</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&loud;'">
		<xsl:text>loud</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-loud;'">
		<xsl:text>x-loud</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&text-shadow;">
<xsl:text>&indent;text-shadow:&post-indent;</xsl:text>
	<xsl:call-template name="colors">
		<xsl:with-param name="none" select="true()"/>
	</xsl:call-template>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&widows;">
<xsl:text>&indent;widows:&post-indent;</xsl:text>
<xsl:call-template name="inhere"/>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&z-index;">
<xsl:text>&indent;z-index:&post-indent;</xsl:text>
<xsl:call-template name="autoinherit"/>
<xsl:call-template name="ending"/></xsl:template>



<xsl:template match="&font;">
<xsl:text>&indent;font:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&caption;'">
		<xsl:text>caption</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&icon;'">
		<xsl:text>icon</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&menu;'">
		<xsl:text>menu</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&message-box;'">
		<xsl:text>message-box</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&small-caption;'">
		<xsl:text>small-caption</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&status-bar;'">
		<xsl:text>status-bar</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>





<!-- Begin descriptors -->

<xsl:template match="&ascent;">
<xsl:text>&indent;ascent:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&baseline;">
<xsl:text>&indent;baseline:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&bbox;">
<xsl:text>&indent;bbox:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&cap-height;">
<xsl:text>&indent;cap-height:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&centerline;">
<xsl:text>&indent;centerline:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&definition-src;">
<xsl:text>&indent;definition-src:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test="&url;">
		<xsl:text>url(</xsl:text>
			<xsl:value-of select="&url;"/>
		<xsl:text>)</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:value-of select="."/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&descent;">
<xsl:text>&indent;descent:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&font-family;">
<xsl:text>&indent;font-family:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&serif;'">
		<xsl:text>serif</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&sans-serif;'">
		<xsl:text>sans-serif</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&cursive;'">
		<xsl:text>cursive</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&fantasy;'">
		<xsl:text>fantasy</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&monospace;'">
		<xsl:text>monospace</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&font-size;">
<xsl:text>&indent;font-size:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&all;'">
		<xsl:text>all</xsl:text>
	</xsl:when>
	<!-- These two and the following  seven are only for the property not descriptor -->
	<xsl:when test=". = '&larger;'">
		<xsl:text>larger</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&smaller;'">
		<xsl:text>smaller</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&xx-small;'">
		<xsl:text>xx-small</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-small;'">
		<xsl:text>x-small</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&small;'">
		<xsl:text>small</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&medium;'">
		<xsl:text>medium</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&large;'">
		<xsl:text>large</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&x-large;'">
		<xsl:text>x-large</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&xx-large;'">
		<xsl:text>xx-large</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="inhere"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&font-stretch;">
<xsl:text>&indent;font-stretch:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&all;'">
		<xsl:text>all</xsl:text>
	</xsl:when>
	<!-- These two are only for the property not descriptor -->
	<xsl:when test=". = '&wider;'">
		<xsl:text>wider</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&narrower;'">
		<xsl:text>narrower</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&ultra-condensed;'">
		<xsl:text>ultra-condensed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&extra-condensed;'">
		<xsl:text>extra-condensed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&condensed;'">
		<xsl:text>condensed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&semi-condensed;'">
		<xsl:text>semi-condensed</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&semi-expanded;'">
		<xsl:text>semi-expanded</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&expanded;'">
		<xsl:text>expanded</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&extra-expanded;'">
		<xsl:text>extra-expanded</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&ultra-expanded;'">
		<xsl:text>ultra-expanded</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&font-style;">
<xsl:text>&indent;font-style:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&all;'">
		<xsl:text>all</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&italic;'">
		<xsl:text>italic</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&oblique;'">
		<xsl:text>oblique</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&font-variant;">
<xsl:text>&indent;font-variant:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&small-caps;'">
		<xsl:text>small-caps</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&font-weight;">
<xsl:text>&indent;font-weight:&post-indent;</xsl:text>
<xsl:choose>
	<xsl:when test=". = '&all;'">
		<xsl:text>all</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&bold;'">
		<xsl:text>bold</xsl:text>
	</xsl:when>
	<!-- These two are only for the property not descriptor -->
	<xsl:when test=". = '&bolder;'">
		<xsl:text>bolder</xsl:text>
	</xsl:when>
	<xsl:when test=". = '&lighter;'">
		<xsl:text>lighter</xsl:text>
	</xsl:when>
	<xsl:otherwise>
		<xsl:call-template name="normalinherit"/>
	</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&mathline;">
<xsl:text>&indent;mathline:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&panose-1;">
<xsl:text>&indent;panose-1:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&slope;">
<xsl:text>&indent;slope:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>


<xsl:template match="&src;">
<xsl:text>&indent;src:&post-indent;</xsl:text>
<xsl:if test="&local;">
	<xsl:text>local(</xsl:text>
		<xsl:value-of select="&local;"/>
	<xsl:text>)</xsl:text>
</xsl:if>
<xsl:if test="&url;">
	<xsl:text>url(</xsl:text>
		<xsl:value-of select="&url;"/>
	<xsl:text>)</xsl:text>
</xsl:if>
<xsl:if test="&format;">
	<xsl:text>format(</xsl:text>
		<xsl:value-of select="&format;"/>
	<xsl:text>)</xsl:text>
</xsl:if>
<xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&stemh;">
<xsl:text>&indent;stemh:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&stemv;">
<xsl:text>&indent;stemv:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&topline;">
<xsl:text>&indent;topline:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&unicode-range;">
<xsl:text>&indent;unicode-range:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&units-per-em;">
<xsl:text>&indent;units-per-em:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&widths;">
<xsl:text>&indent;widths:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>

<xsl:template match="&x-height;">
<xsl:text>&indent;x-height:&post-indent;</xsl:text>
<xsl:value-of select="."/><xsl:call-template name="ending"/></xsl:template>


</xsl:stylesheet>