Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 627 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 627 Bytes

XSLT

A collection of XSLT transformations for srcML.

The XSLT is written from the perspective of a single source-code file. When used with the srcML client srcml, the XSLT is individually applied to each file in an archive.

Replace Name

Replace the name. Full name must match.

Use replaceName.xsl

  • prevname - Current name
  • newname - Replaced name

After download of replaceName.xsl, sample command to replace foo with bar in the current directory tree:

srcml . --xslt replaceName.xsl \
        --xslt-param prevname="foo" \
        --xslt-param newname="bar" \
        | srcml --to-dir .