I have the following XML code:
<n-grams-sorted analysis="N_GRAM_TOKEN2" range="Total Set" types="33459" tokens="50285">
<n-gram position="1" frequency="387" probability="0.0077">x =</n-gram>
<n-gram position="2" frequency="319" probability="0.00634">! =</n-gram>
<n-gram position="3" frequency="295" probability="0.00587">= </n-gram>
<n-gram position="4" frequency="286" probability="0.00569">? =</n-gram>
<n-gram position="5" frequency="221" probability="0.00439"> =</n-gram>
<n-gram position="6" frequency="186" probability="0.0037">. =</n-gram>
<n-gram position="7" frequency="182" probability="0.00362"> =</n-gram>
....
<n-gram position="90" frequency="25" probability="0.0005">? </n-gram>
How do you get the first 30 with a <xsl:for-each> ?
<xsl:for-each select="//n-gram[@position < $position]">
<n-grams-sorted analysis="N_GRAM_TOKEN2" range="Total Set" types="33459" tokens="50285">
<n-gram position="1" frequency="387" probability="0.0077">x =</n-gram>
<n-gram position="2" frequency="319" probability="0.00634">! =</n-gram>
<n-gram position="3" frequency="295" probability="0.00587">= </n-gram>
<n-gram position="4" frequency="286" probability="0.00569">? =</n-gram>
<n-gram position="5" frequency="221" probability="0.00439"> =</n-gram>
<n-gram position="6" frequency="186" probability="0.0037">. =</n-gram>
<n-gram position="7" frequency="182" probability="0.00362"> =</n-gram>
....
<n-gram position="90" frequency="25" probability="0.0005">? </n-gram>
How do you get the first 30 with a <xsl:for-each> ?
<xsl:for-each select="//n-gram[@position < $position]">