가능합니다. XSLT 2.0에서는 정규 표현식 (doddle)을 사용합니다. 이 번호/문자 재미 역할을하지만, 당신이 무엇을 요구 생산
<xsl:template match="/">
<xsl:call-template name="process">
<xsl:with-param name="text" select="/tutorial/MT/@V"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="process">
<xsl:param name="text" select="."/>
<xsl:variable name="modtext" select="translate($text,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')"/>
<xsl:variable name="pretext" select="substring-before($modtext,'<a')"/>
<xsl:choose>
<xsl:when test="not($pretext)">
<xsl:value-of select="$text"/>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="endpos" select="string-length($pretext)+1"/>
<xsl:value-of select="concat(substring($text,1, $endpos),' ')"/>
<xsl:call-template name="process">
<xsl:with-param name="text"
select="substring($text,$endpos+1)"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
, 그러나,이 XSLT 1.0 직접 '당신이 말한'스크립트입니다.
이 생성됩니다
Centre-of-mass energies in the region 142< W< sub>γp</sub><293 GeV with the ZEUS detector at HERA using an integrated luminosity
을 분명히 당신이 함께 번역/업데이트 및 1234567890가 처리 할 숫자를 너무 슬래시합니다.
감사합니다. 원하는대로 작동합니다. * 나는 내 짐작으로는 꽤 안전하다. – itsbalur
'*'는 때로는 안전 할 수 있지만 버그를 키우는 이유는 무엇입니까? 결정된. –