Read properties file or a text file in xsl

后端 未结 1 1490
-上瘾入骨i
-上瘾入骨i 2021-01-26 05:17

i have a xsl file which is containing some contents for displaying.This contents gets changed often. so each time have to modify the xsl file.

So thought of moving the c

1条回答
  •  轮回少年
    2021-01-26 06:05

    Why use a text file? Surely XML would be better?

    An XSLT stylesheet can read a second input document using document('strings.xml'). Then you can access strings as for example

    
    

    where the file has a format like

    
      This is one of the strings to include
    
    

    In XSLT 2.0 you can wrap the access logic into a function so the call just becomes

    
    

    0 讨论(0)
提交回复
热议问题