Movatterモバイル変換


[0]ホーム

URL:


 
» Code Style Edit on GitHub

Code Style

Rules which enforce a specific coding style.
Table of Contents

UseConcatOnce

Since: PMD 5.0

Priority: Medium (3)

The XPath concat() functions accepts as many arguments as required so you can have"concat($a,’b’,$c)" rather than "concat($a,concat(‘b’,$c)".

This rule is defined by the following XPath expression:

//node()[contains(substring-after(@select,'concat'),'concat')]

Example(s):

<xsl:variable name="var" select="concat("Welcome",concat("to you ",$name))"/><xsl:variable name="var" select="concat("Welcome","to you ",$name))">

Use this rule by referencing it:

<ruleref="category/xsl/codestyle.xml/UseConcatOnce"/>

This documentation is written in markdown.
If there is something missing or can be improved, edit this page on github and create a PR: Edit on GitHub

©2026 PMD Open Source Project. All rights reserved.
Site last generated: Jan 30, 2026

PMD                logo


[8]ページ先頭

©2009-2026 Movatter.jp