Removing Attributes from XSLT and working with result set

前端 未结 3 1793
渐次进展
渐次进展 2020-12-21 04:58

Is it possible to remove xml attributes from XSLT AND work with the resulting transform?

In other words, I have the following XML:



        
3条回答
  •  礼貌的吻别
    2020-12-21 05:34

    Many transformations are best split into a pipeline where each stage of the pipeline performs one simple task.

    You can do a multi-stage transformation within a single stylesheet (by holding the results in variables, especially with XSLT 2.0), or you can do it using multiple stylesheets. You can control a pipeline involving multiple stylesheets with a variety of technologies (XProc, Coccoon, Orbeon, Ant, xmlsh) or from your own Java/C# code. Using multiple stylesheets has the advantage that the components of the pipeline are highly reusable.

提交回复
热议问题