+ -
当前位置:首页 → 问答吧 → 急死了xslt问题

急死了xslt问题

时间:2010-08-17

来源:互联网

xslt语言写个<xsl:template match="mainBlock">模板 但是这几个mainBlock要求在html中要分别用div现实并且div的样式还不同
跪求高手解决
<mainBlock>
<direction>left</direction>
<blockHead>
<blockTitle>智能电网</blockTitle>
<moreURL>点击更多链接</moreURL>
 
</blockHead>
<newsList>
<listHead>
<listTitle>技术文章</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_2_1</divId>
<onmouserover>showtabs(2,1,5);</onmouserover>
<divTagId>menutab_2_1</divTagId>
<style></style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newsList>
<newsList>
<listHead>
<listTitle>应用与方案</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_2_2</divId>
<onmouserover>showtabs(2,2,5);</onmouserover>
<divTagId>menutab_2_2</divTagId>
<style>DISPLAY: none</style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newsList>
<newsList>
<listHead>
<listTitle>资料下载</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_2_3</divId>
<onmouserover>showtabs(2,3,5);</onmouserover>
<divTagId>menutab_2_3</divTagId>
<style>DISPLAY: none</style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newsList>
</mainBlock>
 
<mainBlock>
<direction>right</direction>
<blockHead>
<blockTitle>火力发电</blockTitle>
<moreURL>点击更多链接</moreURL>
 
</blockHead>
<newList>
<listHead>
<listTitle>技术文章</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_3_1</divId>
<onmouserover>showtabs(3,1,5);</onmouserover>
<divTagId>menutab_3_1</divTagId>
<style></style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newList>
<newList>
<listHead>
<listTitle>应用与方案</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_3_2</divId>
<onmouserover>showtabs(3,2,5);</onmouserover>
<divTagId>menutab_3_2</divTagId>
<style>DISPLAY: none</style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newList>
<newList>
<listHead>
<listTitle>资料下载</listTitle>
<moreURL>点击更多链接</moreURL>
<divId>menu_3_3</divId>
<onmouserover>showtabs(3,3,5);</onmouserover>
<divTagId>menutab_3_3</divTagId>
<style>DISPLAY: none</style>
</listHead>
<news>
<title>五大电力练‘内功’提盈利抓火电</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>华电安徽分公司日发电量创新高 </title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
<news>
<title>大武口发电厂“红叶”飘扬廉政情</title>
<htmlURL>页面地址</htmlURL>
<insDate>07-15</insDate>
</news>
</newList>
</mainBlock>
 
  </mainBlocks>

作者: s15903393667   发布时间: 2010-08-17

<divId>menu_3_1</divId>是用来区分div id的,
<style>DISPLAY: none</style>就是样式啊

作者: net_lover   发布时间: 2010-08-17