<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>胡争辉 - XML</title><link>http://blog.csdn.net/hu_zhenghui/category/326942.aspx</link><description>eXtensible Markup Language</description><dc:language>zh-CN</dc:language><lastUpdateTime>Sun, 06 Apr 2008 18:28:34 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>胡争辉</dc:creator><title>XML - position()函数的返回值是整数，可以使用mod运算符来计算余数</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/10/21/1835733.aspx</link><pubDate>Sun, 21 Oct 2007 15:58:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/10/21/1835733.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1835733.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/10/21/1835733.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1835733.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1835733</trackback:ping><description> XML - position()函数的返回值是整数，可以使用mod运算符来计算余数
position()函数的返回值是整数，可以使用mod运算符来计算余数
[示例：mod.xslt.xml]

    
    
    
        
            xml
            xml-stylesheet
            xsl:transform
            doc:elements
            doc:elements
            xsl:template
            table
            tr
            th
            xsl:for-each
            td
            xsl:attribute
            xsl:choose
            xsl:when
            xsl:otherwise
            xsl:value-of
 &lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1835733.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>用variable保存position()的值</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/09/02/1769342.aspx</link><pubDate>Sun, 02 Sep 2007 16:53:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/09/02/1769342.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1769342.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/09/02/1769342.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1769342.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1769342</trackback:ping><description>用variable保存position()的值

position()函数在XPath中返回在XPath中当前状态的position()值，如果该XPath位于stylesheet中，则不会获得transform标记所在位置的position()值，此时应当借助variable标记先保存position()的值，例如：

中position()是取得../SignLinkSetTp[position()]这个XPath在选择过程中的值，如果希望取得xsl:copy-of所在位置的position()的值，则使用如下代码：


整体示例如下：

[file: variable.xsl]

[file: variable.xml]&lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1769342.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>xsl.xmltohtml</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739804.aspx</link><pubDate>Sun, 12 Aug 2007 21:36:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739804.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739804.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739804.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739804.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739804</trackback:ping><description>HTMLXSL.xslt.xml



    
    
        
        div.global
        {
            font-family:arial;
        }
        span.button
        {
            cursor:s-resize;
        }
        span.nodemark
        {
            color:blue;
        }
        span.nodename
        {
            color:brown;
        }
        div.indent
        {
            margin-left:20;
        }
        span.attributename
        {
            color:red;
        }
        span.attribut&lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739804.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>xsl.xmltobbs</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739798.aspx</link><pubDate>Sun, 12 Aug 2007 21:30:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739798.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739798.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739798.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739798.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739798</trackback:ping><description>BBSXSL.xslt



]&gt;

    
        
    
    
        
        
            
            
        
    
    
        
        
            
            
            
            
            
            
        
    
    
        
        
            
            
            
            
            
        
        
        
            
            
            
            
            
        
    
    
        
            &amp;#32;
          &lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739798.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>xsl.vertical</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739791.aspx</link><pubDate>Sun, 12 Aug 2007 21:26:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739791.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739791.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739791.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739791.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739791</trackback:ping><description>vertical.xml



    
    
    
        中文竖排的ＸＭＬ样式表
        制作者：ｂｉｇｆａｔｃａｔ
    
    
        
            
        
    
    
        
        
            
                
            
        
        
            
                
            
        
    
    
        
        
        
            
            
        
        
            
                
                
            
        
    
    
        
        
        
        
  &lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739791.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>multiplicationtable</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739788.aspx</link><pubDate>Sun, 12 Aug 2007 21:24:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739788.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739788.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739788.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739788.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739788</trackback:ping><description>multiplicationtable.xslt.xml



    
        
            
                multiplication table
                
            
            
        
    
    
        
        
            
        
        
            
                
            
        
    
    
        
        
            
                
            
            
                
            
        
        
            
                
            
        
    
    
      &lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739788.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>xs.sequence</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739786.aspx</link><pubDate>Sun, 12 Aug 2007 21:21:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739786.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739786.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739786.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739786.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739786</trackback:ping><description>invalid.xml


    
    

validated.xml


    
    

xs.sequence.xsd


    
        
            
                
                
                
            
        
    

 
&lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739786.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>胡争辉</dc:creator><title>xs.pattern ip</title><link>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739782.aspx</link><pubDate>Sun, 12 Aug 2007 21:16:00 GMT</pubDate><guid>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739782.aspx</guid><wfw:comment>http://blog.csdn.net/hu_zhenghui/comments/1739782.aspx</wfw:comment><comments>http://blog.csdn.net/hu_zhenghui/archive/2007/08/12/1739782.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/hu_zhenghui/comments/commentRss/1739782.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1739782</trackback:ping><description>ip.xml

192.168.0.1
ip.xsd


    
    
        
            
        
    

 
&lt;img src ="http://blog.csdn.net/hu_zhenghui/aggbug/1739782.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>