Changeset 6508 for trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionOdtTransf/getContent.xsl.xsl
- Timestamp:
- 09/11/06 15:33:57 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wsp_Modeling/spaces/gen/modelBuilder/bs.doss/sm_compositionOdtTransf/getContent.xsl.xsl
r6487 r6508 281 281 <xsl0:variable name="vStyleCode"><xsl0:call-template name="tGetBlockCode"/></xsl0:variable> 282 282 <xsl0:variable name="vStyle_title" select="resultatAgent('//agentTemplateScData', concat($vCodeTransformer, concat('/', $vStyleCode, '/title/getOdStyleName')))"/> 283 <xsl0:variable name="vStyle_table" select="resultatAgent('//agentTemplateScData', concat($vCodeTransformer, concat('/', $vStyleCode, '/table/getOdStyleName')))"/> 283 <xsl0:variable name="vDefaultStyle_table" select="resultatAgent('//agentTemplateScData', concat($vCodeTransformer, concat('/', $vStyleCode, '/table/getOdStyleName')))"/> 284 <xsl0:variable name="vTableDom" select="computeNodeAgent(concat(resultatAgent('//agentTemplateScData', concat($vCodeTransformer, '/', $vStyleCode, '/blocks.contentFile/table')), '/getContent'))"/> 284 285 <xsl0:variable name="vStyle_picture" select="resultatAgent('//agentTemplateScData', concat($vCodeTransformer, concat('/', $vStyleCode, '/picture/getOdStyleName')))"/> 285 286 <xsl0:variable name="vAgentContentFile_picture" select="resultatAgent('//agentTemplateScData', concat($vCodeTransformer, '/', $vStyleCode, '/blocks.contentFile/picture'))"/> … … 289 290 <xsl:choose> 290 291 <xsl:when test="string-length(normalize-space($vTitleContent))>0 or string-length(normalize-space($vDataContent))>0"> 291 <table:table table:name=" {$vStyle_table}" table:style-name="{$vStyle_table}">292 <table:table-column table:style-name="{ concat($vStyle_table,'.A')}"/>293 <table:table-column table:style-name="{ concat($vStyle_table,'.B')}"/>292 <table:table table:name="Table" table:style-name="{si($vTableDom, $vTableDom/@table:style-name, concat($vDefaultStyle_table, ''))}"> 293 <table:table-column table:style-name="{si($vTableDom, $vTableDom/table:table-column[1]/@table:style-name, concat($vDefaultStyle_table, '.A'))}"/> 294 <table:table-column table:style-name="{si($vTableDom, $vTableDom/table:table-column[2]/@table:style-name, concat($vDefaultStyle_table, '.B'))}"/> 294 295 <xsl:if test="string-length(normalize-space($vTitleContent))>0 or $vIsTitleMandatory='true'"><!-- si il y a un titre... --> 295 296 <table:table-row> 296 <table:table-cell table:style-name="{ concat($vStyle_table,'.A1')}" table:number-columns-spanned="2"><!-- office:value-type="string" -->297 <table:table-cell table:style-name="{si($vTableDom, $vTableDom/table:table-row[1]/table:table-cell[1]/@table:style-name, concat($vDefaultStyle_table, '.A1'))}" table:number-columns-spanned="2"><!-- office:value-type="string" --> 297 298 <text:p text:style-name="{$vStyle_title}"> 298 299 <xsl:value-of select="$vTitleContent"/> … … 303 304 </xsl:if> 304 305 <table:table-row> 305 <table:table-cell table:style-name="{ concat($vStyle_table,'.A1')}"><!-- office:value-type="string" -->306 <table:table-cell table:style-name="{si($vTableDom, $vTableDom/table:table-row[2]/table:table-cell[1]/@table:style-name, concat($vDefaultStyle_table, '.A2'))}"><!-- office:value-type="string" --> 306 307 <text:p> 307 308 <xsl0:if test="sm:picture/@sc:refUri"> … … 332 333 </text:p> 333 334 </table:table-cell> 334 <table:table-cell table:style-name="{ concat($vStyle_table,'.B2')}"><!-- office:value-type="string" -->335 <table:table-cell table:style-name="{si($vTableDom, $vTableDom/table:table-row[2]/table:table-cell[2]/@table:style-name, concat($vDefaultStyle_table, '.B1'))}"><!-- office:value-type="string" --> 335 336 <xsl:value-of disable-output-escaping="yes" select="$vDataContent"/> 336 337 </table:table-cell>
Note: See TracChangeset
for help on using the changeset viewer.