我正在将我的XSLT样式表转换为文档,我想在每个代码块的注释节点中获得丰富的经验,因此我想将以下注释和输出转换为xhtml:
串:
# This is a title with __bold__ text and *italic* # This is just a normal line - list point with some __bold__ - list point with a "link"[http://www.stackoverflow.com]
通缉输出:
<h1> This is a title with <strong>bold</strong> and <span>italic</span> </h1>
<p>This is a normal line</p>
<ul>
<li>list point with some <strong>bold</strong></li>
<li>list point with a <a href="http://www.stackoverflow.com">link</a></li>
</ul>
Run Code Online (Sandbox Code Playgroud)
我试过一个递归函数,它从规则集递归地使用xsl:analyze-string,但是找不到一个非常好用的解决方案.
任何人最近都做过这个,或者是否有一些框架可以执行此操作?
提前谢谢!:)
编辑:添加了一个脏例子:
<!-- Output comments -->
<xsl:template match="comment()" mode="COMMENT">
<xsl:copy-of select="ips:groupReplace(normalize-space(.),
'
(.*)(\n|\r)(.*),
(.*)\*(.*)\*(.*),
(.*)\*\*(.*)\*\*(.*),
(.*)__(.*)__(.*),
(.*)#(.*)#(.*),
(.*)-(.*) …Run Code Online (Sandbox Code Playgroud) I`ve一直在寻找一段时间了服务器端语言和Python了我的注意一些.但是,正如我已经熟悉和喜爱的JavaScript,我现在想学习代码的js和node.js中的服务器上
现在,我需要学习哪些书籍和哪些科目来更好地理解服务器世界?
(让我知道我是否模糊)