equal
deleted
inserted
replaced
1 // inline_svg.ysl2 |
1 // inline_svg.ysl2 |
2 // |
2 // |
3 // Produce Inline SVG element of resulting XHTML page. |
3 // Produce Inline SVG element of resulting XHTML page. |
|
4 |
|
5 // Since stylesheet output namespace is xhtml, templates that output svg have to be explicitely declared as such |
|
6 in xsl decl svgtmpl(match, xmlns="http://www.w3.org/2000/svg") alias template; |
|
7 in xsl decl svgfunc(name, xmlns="http://www.w3.org/2000/svg") alias template; |
|
8 |
4 |
9 |
5 // Identity template : |
10 // Identity template : |
6 // - copy every attributes |
11 // - copy every attributes |
7 // - copy every sub-elements |
12 // - copy every sub-elements |
8 template "@* | node()", mode="inline_svg" { |
13 template "@* | node()", mode="inline_svg" { |