以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 XSL/XSLT/XSL-FO/CSS 』 (http://bbs.xml.org.cn/list.asp?boardid=8) ---- [求助]xml节点移动 (http://bbs.xml.org.cn/dispbbs.asp?boardid=8&rootid=&id=92605) |
-- 作者:fencc -- 发布时间:7/10/2011 8:20:00 PM -- [求助]xml节点移动 - <w:tr w:rsidR="008A7E29" w:rsidTr="008A7E29"> - <w:tc> - <w:tcPr> <w:tcW w:w="946" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>1</w:t> </w:r> </w:p> </w:tc>- <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> <w:vMerge w:val="restart" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>2</w:t> </w:r> </w:p> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>3</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>4</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>5</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>6</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>7</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>8</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29" w:rsidP="002F4342"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>9</w:t> </w:r> </w:p> </w:tc> </w:tr> - <w:tr w:rsidR="008A7E29" w:rsidTr="008A7E29"> - <w:tc> - <w:tcPr> <w:tcW w:w="946" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>1</w:t> </w:r> </w:p> </w:tc>- <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> <w:vMerge /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>3</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>4</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>5</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>6</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>7</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>8</w:t> </w:r> </w:p> </w:tc> - <w:tc> - <w:tcPr> <w:tcW w:w="947" w:type="dxa" /> </w:tcPr> - <w:p w:rsidR="008A7E29" w:rsidRDefault="008A7E29"> - <w:pPr> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> </w:pPr> - <w:r> - <w:rPr> <w:rFonts w:hint="eastAsia" /> </w:rPr> <w:t>9</w:t> </w:r> </w:p> </w:tc> </w:tr> 上上面这个xml,判断节点 <w:vMerge /> 。 将这后面的内容移动到上一行</w:tr> 里面去。如何实现。 将蓝色的移动到前面蓝色后面,后面的红色移动到红色后面。 |
-- 作者:Qr -- 发布时间:7/25/2011 7:17:00 PM -- 这涉及到XSLT将XML转XML的问题,关键是要找出一个标志,用于判断哪个是要移动的节点和目标节点。仅凭你以下简单描述,很难实现。 |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
78.125ms |