1- <?xml version =" 1.0" ?>
2-
3- <xsl : stylesheet xmlns : xsl =" http://www.w3.org/1999/XSL/Transform" version =" 1.0" >
4-
5- <xsl : param name =" id" />
6-
7- <xsl : template match =" /" >
8- <xsl : apply-templates />
9- </xsl : template >
10-
11- <xsl : template match =" book" >
12- <group title =" {group[attribute::id=$id]/@label}" >
13- <xsl : apply-templates select =" group[attribute::id=$id]/entry" />
14- </group >
15- </xsl : template >
16-
17- <xsl : template match =" entry" >
18- <entry id =" {@id}" title =" {document(concat('sbk:/sources/',@source))/faqs/@title}" >
19- <xsl : apply-templates select =" document(concat('sbk:/sources/',@source))/faqs/faq" />
20- </entry >
21- </xsl : template >
22-
23- <xsl : template match =" faq" >
24- <voice >
25- <xsl : if test =" string-length(@title)=0" >
26- <xsl : value-of select =" q" />
27- </xsl : if >
28- <xsl : if test =" string-length(@title)>0" >
29- <xsl : value-of select =" @title" />
30- </xsl : if >
31- </voice >
32- </xsl : template >
33-
1+ <?xml version =" 1.0" ?>
2+
3+ <xsl : stylesheet xmlns : xsl =" http://www.w3.org/1999/XSL/Transform" version =" 1.0" >
4+
5+ <xsl : param name =" id" />
6+
7+ <xsl : template match =" /" >
8+ <xsl : apply-templates />
9+ </xsl : template >
10+
11+ <xsl : template match =" book" >
12+ <group title =" {group[attribute::id=$id]/@label}" >
13+ <xsl : apply-templates select =" group[attribute::id=$id]/entry" />
14+ </group >
15+ </xsl : template >
16+
17+ <xsl : template match =" entry" >
18+ <entry id =" {@id}" title =" {document(concat('sbk:/sources/',@source))/faqs/@title}" >
19+ <xsl : apply-templates select =" document(concat('sbk:/sources/',@source))/faqs/faq" />
20+ </entry >
21+ </xsl : template >
22+
23+ <xsl : template match =" faq" >
24+ <voice >
25+ <xsl : if test =" string-length(@title)=0" >
26+ <xsl : value-of select =" q" />
27+ </xsl : if >
28+ <xsl : if test =" string-length(@title)>0" >
29+ <xsl : value-of select =" @title" />
30+ </xsl : if >
31+ </voice >
32+ </xsl : template >
33+
3434</xsl : stylesheet >
0 commit comments