Subject: [xsl] Using analyze-string to add tabs From: Jeff Wilson <jeffrey@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 20 Sep 2011 01:39:26 -0700 |
I'm just trying to add tabs to the text of certain elements. It seems to be much harder than I anticipated.
Thanks, Jeff
<root> <ListNumbered aid:pstyle="ListNumbered">1.To access the native file readers menu, navigate to Global Options File Readers.</ListNumbered> <ListNumbered aid:pstyle="ListNumbered">2.In the Options Editor, expand the File Readers hierarchy on the left, as shown in Figure 2.4.</ListNumbered> </root>
<root> <ListNumbered>	1.	To access the native file readers menu, navigate to Global Options File Readers.</ListNumbered> <ListNumbered>	2	.In the Options Editor, expand the File Readers hierarchy on the left, as shown in Figure 2.4.</ListNumbered> </root>
<xsl:for-each select="current-group()"> <xsl:choose> <xsl:when test="contains(@aid:pstyle, 'ListNumbered')"> <xsl:analyze-string select="." regex="(\d{1,3}\.)(.*?)"> <xsl:matching-substring> <xsl:text>	</xsl:text><xsl:value-of select="regex-group(1)"/ ><xsl:text>	</xsl:text><xsl:value-of select="regex-group(2)"/></ xsl:element><xsl:text>
</xsl:text> </xsl:matching-substring> </xsl:analyze-string> </xsl:when> <xsl:choose> </xsl:for-each>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] format-number troubles, Michael Kay | Thread | Re: [xsl] Using analyze-string to a, Andrew Welch |
Re: [xsl] Template mode value from , Michael Kay | Date | Re: [xsl] format-number troubles, Andrew Welch |
Month |