Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
79431b1f
Kaydet (Commit)
79431b1f
authored
Eyl 01, 2010
tarafından
Hans-Joachim Lankenau
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
jl158: #i114008# move transformation files
üst
a30673bb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
221 additions
and
0 deletions
+221
-0
embed.xsl
xmlhelp/util/embed.xsl
+83
-0
idxcaption.xsl
xmlhelp/util/idxcaption.xsl
+34
-0
idxcontent.xsl
xmlhelp/util/idxcontent.xsl
+104
-0
main_transform.xsl
xmlhelp/util/main_transform.xsl
+0
-0
No files found.
xmlhelp/util/embed.xsl
0 → 100644
Dosyayı görüntüle @
79431b1f
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
indent=
"yes"
method=
"xml"
/>
<!-- SPECIFY YOUR FILE SYSTEM ROOT PATH TO THE HELP FILES -->
<xsl:param
name=
"fsroot"
select=
"'file:///handbuch/WORKBENCH/helpcontent2/source/'"
/>
<!--
######################################################
All others
######################################################
-->
<xsl:template
match=
"/"
>
<xsl:apply-templates/>
</xsl:template>
<xsl:template
match=
"*|@*|comment()|processing-instruction()|text()"
>
<xsl:copy>
<xsl:apply-templates
select=
"*|@*|comment()|processing-instruction()|text()"
/>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"*|@*|comment()|processing-instruction()|text()"
mode=
"embedded"
>
<xsl:copy>
<xsl:apply-templates
select=
"*|@*|comment()|processing-instruction()|text()"
mode=
"embedded"
/>
</xsl:copy>
</xsl:template>
<xsl:template
match=
"bookmark"
mode=
"embedded"
/>
<xsl:template
match=
"ahelp"
mode=
"embedded"
>
<xsl:apply-templates
mode=
"embedded"
/>
</xsl:template>
<xsl:template
match=
"paragraph[@role='heading']"
>
<title>
<xsl:apply-templates/>
</title>
</xsl:template>
<xsl:template
match=
"paragraph[@role=*]"
>
<paragraph>
<xsl:apply-templates/>
</paragraph>
</xsl:template>
<xsl:template
match=
"sort"
>
<xsl:apply-templates/>
</xsl:template>
<!--
######################################################
EMBED
######################################################
-->
<xsl:template
match=
"embed"
>
<xsl:variable
name=
"href"
><xsl:value-of
select=
"substring-before(concat($fsroot,@href),'#')"
/></xsl:variable>
<xsl:variable
name=
"anchor"
><xsl:value-of
select=
"substring-after(@href,'#')"
/></xsl:variable>
<xsl:variable
name=
"doc"
select=
"document($href)"
/>
<xsl:apply-templates
select=
"$doc//section[@id=$anchor]"
mode=
"embedded"
/>
<xsl:if
test=
"not($doc//section[@id=$anchor])"
>
<!-- fallback for embeds that actually should be embedvars -->
<paragraph
role=
"paragraph"
><xsl:apply-templates
select=
"$doc//variable[@id=$anchor]"
mode=
"embedded"
/></paragraph>
</xsl:if>
</xsl:template>
<!--
######################################################
EMBEDVAR
######################################################
-->
<xsl:template
match=
"embedvar"
>
<xsl:if
test=
"not(@href='text/shared/00/00000004.xhp#wie')"
>
<!-- special treatment if howtoget links -->
<xsl:variable
name=
"href"
><xsl:value-of
select=
"substring-before(concat($fsroot,@href),'#')"
/></xsl:variable>
<xsl:variable
name=
"anchor"
><xsl:value-of
select=
"substring-after(@href,'#')"
/></xsl:variable>
<xsl:variable
name=
"doc"
select=
"document($href)"
/>
<xsl:apply-templates
select=
"$doc//variable[@id=$anchor]"
mode=
"embedded"
/>
</xsl:if>
<!-- FPE: embedvars, that point to "text/shared/00/00000004.xml#wie" will only be resolved in the main_transform -->
</xsl:template>
</xsl:stylesheet>
xmlhelp/util/idxcaption.xsl
0 → 100644
Dosyayı görüntüle @
79431b1f
<xsl:stylesheet
version=
"1.0"
encoding=
"UTF-8"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:office=
"http://openoffice.org/2000/office"
xmlns:style=
"http://openoffice.org/2000/style"
xmlns:table=
"http://openoffice.org/2000/table"
xmlns:draw=
"http://openoffice.org/2000/drawing"
xmlns:fo=
"http://www.w3.org/1999/XSL/Format"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:meta=
"http://openoffice.org/2000/meta"
xmlns:number=
"http://openoffice.org/2000/datastyle"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns:chart=
"http://openoffice.org/2000/chart"
xmlns:help=
"http://openoffice.org/2000/help"
xmlns:index=
"http://sun.com/2000/XMLSearch"
xmlns:text=
"http://openoffice.org/2000/text"
>
<xsl:param
name=
"Language"
select=
"'en-US'"
/>
<xsl:output
method=
"text"
encoding=
"UTF-8"
/>
<xsl:template
match=
"/"
>
<xsl:apply-templates
select=
"//title"
mode=
"include"
/>
<xsl:apply-templates
select=
"//paragraph[@role='heading']"
mode=
"include"
/>
</xsl:template>
<xsl:template
match=
"*"
mode=
"include"
>
<xsl:value-of
select=
"."
/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"*"
/>
</xsl:stylesheet>
xmlhelp/util/idxcontent.xsl
0 → 100644
Dosyayı görüntüle @
79431b1f
<xsl:stylesheet
version=
"1.0"
encoding=
"UTF-8"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
xmlns:office=
"http://openoffice.org/2000/office"
xmlns:style=
"http://openoffice.org/2000/style"
xmlns:table=
"http://openoffice.org/2000/table"
xmlns:draw=
"http://openoffice.org/2000/drawing"
xmlns:fo=
"http://www.w3.org/1999/XSL/Format"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:meta=
"http://openoffice.org/2000/meta"
xmlns:number=
"http://openoffice.org/2000/datastyle"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns:chart=
"http://openoffice.org/2000/chart"
xmlns:help=
"http://openoffice.org/2000/help"
xmlns:index=
"http://sun.com/2000/XMLSearch"
xmlns:text=
"http://openoffice.org/2000/text"
>
<xsl:param
name=
"Language"
select=
"'en-US'"
/>
<xsl:output
method=
"text"
encoding=
"UTF-8"
/>
<xsl:template
match=
"helpdocument|body"
>
<xsl:choose>
<xsl:when
test=
"meta/topic[@indexer='exclude']"
/>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template
match=
"title"
>
<xsl:value-of
select=
"."
/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"table"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"tablecell"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"tablerow"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"list"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"listitem"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"item"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"emph"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"paragraph"
>
<xsl:value-of
select=
"."
/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"section"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"bookmark"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"bookmark_value"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"link"
>
<xsl:apply-templates/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"ahelp[@visibility='visible']"
>
<xsl:value-of
select=
"."
/>
<xsl:text>


</xsl:text>
</xsl:template>
<xsl:template
match=
"*"
/>
</xsl:stylesheet>
xmlhelp/util/main_transform.xsl
0 → 100644
Dosyayı görüntüle @
79431b1f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment