+ -
当前位置:首页 → 问答吧 → xmL导出后的文件如何用XSLT进行格式

xmL导出后的文件如何用XSLT进行格式

时间:2011-03-17

来源:互联网

本人用用友导出的文件格式如下,如何转换为xslt格式,多谢各位给力!很急,---菜鸟
<?xml version="1.0" encoding="gb2312" ?> 
- <iufo_export export_type="ufo_report" format="1" data="1" formula="1" repname="test3">
- <cell_property>
  <height>15</height> 
  <width>72</width> 
  <start_row>1</start_row> 
  <start_col>1</start_col> 
  <end_row>1</end_row> 
  <end_col>1</end_col> 
  <data_type>5</data_type> 
  <cell_value>1</cell_value> 
  <cell_value>1</cell_value> 
  <decimal_digits>2</decimal_digits> 
  <has_comma>false</has_comma> 
  <currency_symbol>0</currency_symbol> 
  <has_percent>false</has_percent> 
  <multi_line>0</multi_line> 
  <font_name_index>宋体</font_name_index> 
  <font_style>NORMAL</font_style> 
  <font_size>12</font_size> 
  <horizontal_alignment>left</horizontal_alignment> 
  <vertical_alignment>bottom</vertical_alignment> 
  <right_line_type>0</right_line_type> 
  <bottom_line_type>0</bottom_line_type> 
  <top_line_type>0</top_line_type> 
  <left_line_type>0</left_line_type> 
  <background_color>#FFFFFF</background_color> 
  <foreground_color>#000000</foreground_color> 
  <fill_type>6</fill_type> 
  </cell_property>
- <cell_property>
  <height>15</height> 
  <width>72</width> 
  <start_row>2</start_row> 
  <start_col>1</start_col> 
  <end_row>2</end_row> 
  <end_col>1</end_col> 
  <data_type>5</data_type> 
  <cell_value>1.2</cell_value> 
  <cell_value>1.2</cell_value> 
  <decimal_digits>2</decimal_digits> 
  <has_comma>false</has_comma> 
  <currency_symbol>0</currency_symbol> 
  <has_percent>false</has_percent> 
  <multi_line>0</multi_line> 
  <font_name_index>宋体</font_name_index> 
  <font_style>NORMAL</font_style> 
  <font_size>12</font_size> 
  <horizontal_alignment>left</horizontal_alignment> 
  <vertical_alignment>bottom</vertical_alignment> 
  <right_line_type>0</right_line_type> 
  <bottom_line_type>0</bottom_line_type> 
  <top_line_type>0</top_line_type> 
  <left_line_type>0</left_line_type> 
  <background_color>#FFFFFF</background_color> 
  <foreground_color>#000000</foreground_color> 
  <fill_type>6</fill_type> 
  </cell_property>
- <cell_property>
  <height>15</height> 
  <width>72</width> 
  <start_row>3</start_row> 
  <start_col>1</start_col> 
  <end_row>3</end_row> 
  <end_col>1</end_col> 
  <data_type>5</data_type> 
  <cell_value>1.3</cell_value> 
  <cell_value>1.3</cell_value> 
  <decimal_digits>2</decimal_digits> 
  <has_comma>false</has_comma> 
  <currency_symbol>0</currency_symbol> 
  <has_percent>false</has_percent> 
  <multi_line>0</multi_line> 
  <font_name_index>宋体</font_name_index> 
  <font_style>NORMAL</font_style> 
  <font_size>12</font_size> 
  <horizontal_alignment>left</horizontal_alignment> 
  <vertical_alignment>bottom</vertical_alignment> 
  <right_line_type>0</right_line_type> 
  <bottom_line_type>0</bottom_line_type> 
  <top_line_type>0</top_line_type> 
  <left_line_type>0</left_line_type> 
  <background_color>#FFFFFF</background_color> 
  <foreground_color>#000000</foreground_color> 
  <fill_type>6</fill_type> 
  </cell_property>
  <keyword_date>2011-12-31</keyword_date> 
  </iufo_export>

作者: elite_2009   发布时间: 2011-03-17

你没有明白xslt是干什么的。
xml相当于数据库,xslt可以把xml进行转换成html,xml等格式

作者: net_lover   发布时间: 2011-03-17