|
457 | 457 |
|
458 | 458 | <xsl:template match="docset/builddocs"> |
459 | 459 | <resources> |
460 | | - <xsl:apply-templates/> |
| 460 | + <xsl:apply-templates /> |
461 | 461 | </resources> |
462 | 462 | </xsl:template> |
463 | 463 |
|
464 | | - <xsl:template match="docset/builddocs/language"> |
465 | | - <xsl:variable name="pid" select="ancestor::product/@productid"/> |
466 | | - <xsl:variable name="do_externals" select="$config[@id=$pid]/@externals"/> |
467 | | - <xsl:variable name="current_lang" select="@lang"/> |
468 | | - |
469 | | - <locale> |
470 | | - <xsl:copy-of select="@lang" /><!-- no default attribute --> |
| 464 | + <!-- builddocs --> |
| 465 | + <xsl:template match="builddocs/language"> |
| 466 | + <locale lang="{@lang}"> |
471 | 467 | <xsl:apply-templates /> |
472 | | - |
473 | | - <xsl:if test="$do_externals"> |
474 | | - <xsl:apply-templates select="../../external/link[language[@lang = $current_lang]]" mode="convert-to-prebuilt"> |
475 | | - <xsl:with-param name="lang" select="$current_lang"/> |
476 | | - </xsl:apply-templates> |
477 | | - </xsl:if> |
478 | 468 | </locale> |
479 | 469 | </xsl:template> |
480 | 470 |
|
481 | | - <xsl:template match="link/language/@default" /> |
| 471 | + <xsl:template match="builddocs/language/@default" /> |
| 472 | + |
482 | 473 |
|
483 | | - <!-- deliverable --> |
| 474 | + <!-- regular <deliverable> --> |
484 | 475 | <xsl:template match="language[@lang='en-us']/deliverable"> |
485 | 476 | <xsl:variable name="pid" select="ancestor::product/@productid"/> |
486 | 477 | <xsl:variable name="abbrev" select="$config/product[@id=$pid]/@idabbrev"/> |
|
495 | 486 |
|
496 | 487 | <deliverable id="{$id}" type="dc"> |
497 | 488 | <xsl:copy-of select="@*"/> |
498 | | - <xsl:apply-templates /> |
| 489 | + <dc file="{normalize-space(dc/text())}"> |
| 490 | + <xsl:apply-templates /> |
| 491 | + </dc> |
499 | 492 | </deliverable> |
500 | 493 | </xsl:template> |
501 | 494 |
|
| 495 | + <xsl:template match="dc|dc/text()" /> |
| 496 | + |
| 497 | + |
| 498 | + <!-- translated <deliverable> --> |
502 | 499 | <xsl:template match="language[@lang!='en-us']/deliverable"> |
503 | 500 | <xsl:variable name="pid" select="ancestor::product/@productid"/> |
504 | 501 | <xsl:variable name="abbrev" select="$config/product[@id=$pid]/@idabbrev"/> |
|
511 | 508 | </xsl:call-template> |
512 | 509 | </xsl:variable> |
513 | 510 |
|
514 | | - <ref linkend="{$id}" /> |
| 511 | + <deliverable type="ref"> |
| 512 | + <ref linkend="{$id}" /> |
| 513 | + </deliverable> |
515 | 514 | </xsl:template> |
516 | 515 |
|
| 516 | + |
517 | 517 | <!-- ref --> |
518 | 518 | <xsl:template match="ref"> |
519 | 519 | <xsl:variable name="pid" select="@product"/> |
|
0 commit comments