svghmi/inline_svg.ysl2
branchsvghmi
changeset 2937 9226a830fbc3
parent 2909 0519fdce9a59
child 2939 4296ab974d4d
equal deleted inserted replaced
2936:53fb11263ff1 2937:9226a830fbc3
     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" {