本文介绍了请帮我转换这个xml文件到dtd和xslt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 请帮我转换这个xml文件到表格格式的dtd和xslt <! - ?xml-stylesheet type =text / css href =planets.css? - > <! - !DOCTYPE planetspecs SYSTEMplanets.dtd - > - < planetspecs > < ss / > < title > 行星规格< / title > - < planet > < 名称 > PLUTO < / name > < pluto / > < 距离 > 距离Sun < / distance 59.1亿公里> < 直径 > 直径2,274千米< / diameter > < lowtemp > -400 F最低温度< / lowtemp > - < 氛围 > < gas > 甲烷.03 < / gas > < gas > 氮气.03 < / gas > < / atmosphere > < orbit > 247。7年< / orbit > < 倾斜 > 122.52 < / tilt > <! - 轴的倾斜度 - > - < rotate > < 天 > -6.3872 < /天 > < 小时 > 无数据< / hours > < / rotate > < 幅度 > 15.12 < / magnitude > <! - Vo - > < / planet > - < planet > < 名称 > NEPTUNE < / name > < neptune / > < 距离 > 距离Sun < / distance > < 直径 > 直径49,500 km < / diameter > < lowtemp > -360 F最低温度< / lowtemp > - < 氛围 > < gas > 甲烷2%< /燃气 > < gas > Hydrogen 85%< / gas > < gas > 氦气13%< / gas > < / atmosphere > < ; orbit > 164。8年< / orbit > < 倾斜 > 28.31 < / tilt > - < rotate > < 天 > 无数据< / days > < 小时 > 16.11 < / hours > < / rotate > < 幅度 > 7.84 < / magnitude > < / planet > - < planet > < 名称 > URANUS < / name > < ; 天王星 / > < distance > 来自Sun的28.7亿公里< / distance > < 直径 > 直径51,800 km < / diameter > < lowtemp > -193 C最低临时< / lowtemp > - < 氛围 > < gas > 甲烷2%< / gas > < gas > 氢83%< / gas > < gas > 氦15% < / gas > < / atmosphere > < orbit > 84。01年< / orbit > < 倾斜 &g t; 97.86 < / tilt > ; - < rotate > < 天 > 没有数据< / days > < 小时 > -17.9 < / hours > < / rotate > < 幅度 > ; 5.52 < / magnitude > < / planet > - < planet > < 名称 > EARTH < / name > < earth / > < distance > 距离Sun < / distance > < 直径 > 直径12,756 km < / diameter > < lowtemp > 15 C最低温度< / lowtemp > - < 氛围 > < gas > 氮77%< / gas > < gas > 氧气21%< / gas > < gas > 其他2%< / gas > ; < / atmosphere > < orbit > 365.3天< / orbit > < tilt > 23.45 < / tilt > - < rotate > < 天 > .99727< / days > < 小时 > .239345 < / hours > < / rotate > < magnitude > 无数据< / magnitude > < / planet > - < planet > ; < 名称 > VENUS < / name > < venus2 / > < 距离 > 距离Sun < / distance > < 直径 > 直径12,104千米< / diameter > < lowtemp > 482 C最低临时< / lowtemp > - < 氛围 > < gas > 二氧化碳96%< / gas > < gas > 氮3%< / gas > < gas > 其他1%< / gas > < / atmosphere > < orbit > 224.7天< / orbit > < tilt > 177.36 < / tilt > - < rotate > < 天 > -243.0187 < / days > < hours > 无数据< / hours > < / rotate > < magni tude > -4.4 < /幅度 > < / planet > < / planetspecs > 解决方案 我想你需要搜索一下才能获得在线工具, 这里是, XML to XSLT convertor [ ^ ] DDD生成器工具 [ ^ ] 希望这对您有所帮助。 感谢您的帮助,但它无法与我合作 Help me please to convert this xml file to dtd and xslt in table format<!--?xml-stylesheet type ="text/css" href="planets.css"?--><!--!DOCTYPE planetspecs SYSTEM "planets.dtd"-->-<planetspecs><ss /> <title> PLANET SPECS </title> -<planet> <name>PLUTO</name> <pluto /> <distance>5.91 billion km from Sun</distance> <diameter>2,274 km in diameter</diameter> <lowtemp>-400 F lowest temp</lowtemp> -<atmosphere> <gas>Methane .03</gas> <gas>Nitrogen .03</gas> </atmosphere> <orbit> 247.7 years</orbit> <tilt>122.52</tilt><!--tilt of axis in degrees--> -<rotate> <days>-6.3872</days> <hours>no data </hours> </rotate> <magnitude>15.12</magnitude><!--Vo--> </planet> -<planet> <name>NEPTUNE</name> <neptune /> <distance>4.50 billion km from Sun</distance> <diameter>49,500 km in diameter</diameter> <lowtemp>-360 F lowest temp</lowtemp> -<atmosphere> <gas>Methane 2%</gas> <gas>Hydrogen 85%</gas> <gas>Helium 13%</gas> </atmosphere> <orbit> 164.8 years</orbit> <tilt>28.31 </tilt> -<rotate> <days>no data </days> <hours>16.11</hours> </rotate> <magnitude>7.84</magnitude> </planet> -<planet> <name>URANUS</name> <uranus /> <distance>2.87 billion km from Sun</distance> <diameter>51,800 km in diameter</diameter> <lowtemp>-193 C lowest temp</lowtemp> -<atmosphere> <gas>Methane 2%</gas> <gas>Hydrogen 83%</gas> <gas>Helium 15%</gas> </atmosphere> <orbit> 84.01 years</orbit> <tilt>97.86 </tilt> -<rotate> <days>no data</days> <hours>-17.9</hours> </rotate> <magnitude>5.52</magnitude> </planet> -<planet> <name>EARTH</name> <earth /> <distance>149.6 million km from Sun</distance> <diameter>12,756 km in diameter</diameter> <lowtemp>15 C lowest temp</lowtemp> -<atmosphere> <gas>Nitrogen 77%</gas> <gas>Oxygen 21%</gas> <gas>Other 2%</gas> </atmosphere> <orbit> 365.3 days</orbit> <tilt>23.45 </tilt> -<rotate> <days>.99727</days> <hours>.239345 </hours> </rotate> <magnitude>no data </magnitude> </planet> -<planet> <name>VENUS</name> <venus2 /> <distance>108.2 million km from Sun</distance> <diameter>12,104 km in diameter</diameter> <lowtemp>482 C lowest temp</lowtemp> -<atmosphere> <gas>Carbon Dioxide 96%</gas> <gas>Nitrogen 3%</gas> <gas>Other 1%</gas> </atmosphere> <orbit> 224.7 days</orbit> <tilt>177.36 </tilt> -<rotate> <days>-243.0187 </days> <hours>no data</hours> </rotate> <magnitude>-4.4 </magnitude> </planet> </planetspecs> 解决方案 Hi,I think you need to search a bit to get the online tool,Here it is,XML to XSLT convertor[^]DTD generator tool[^]Hope this may help you.thanks for your help but it is not work with me 这篇关于请帮我转换这个xml文件到dtd和xslt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-21 14:35