summaryrefslogtreecommitdiff
path: root/source/text/shared/01/06150120.xhp
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-03-13 16:04:19 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-03-16 15:18:10 +0000
commit77cb682cd1b004e7247560e60f603a4bb0565b8d (patch)
tree5ff7d8bf5fcc8f9fe162b8ed05ca7eeaf21022ba /source/text/shared/01/06150120.xhp
parent00567a452bb1e270dd2438dcc865359edba56c19 (diff)
convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed to implied in the dtd previously/defaults to en-US unless specified. This change doesn't affect translations, only the content of the paragraph/headings is extracted. done with: perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>[^<]+)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g' (all permutations re order of attributes, and xml-lang="en-US" being optional / implied) Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/shared/01/06150120.xhp')
-rw-r--r--source/text/shared/01/06150120.xhp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/text/shared/01/06150120.xhp b/source/text/shared/01/06150120.xhp
index 0d022ae2a7..be9788a7e6 100644
--- a/source/text/shared/01/06150120.xhp
+++ b/source/text/shared/01/06150120.xhp
@@ -37,19 +37,19 @@
<section id="howtoget">
<embed href="text/shared/00/00000406.xhp#xmlfilteredit"/>
</section>
- <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/doc" xml-lang="en-US" id="bm_id31487311" localize="false"/><paragraph role="heading" level="2" id="hd_id3148668" xml-lang="en-US">DocType</paragraph>
+ <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/doc" xml-lang="en-US" id="bm_id31487311" localize="false"/><h2 id="hd_id3148668">DocType</h2>
<paragraph role="paragraph" id="par_id3155934" xml-lang="en-US"><ahelp hid="filter/ui/xmlfiltertabpagetransformation/doc" visibility="visible">Enter the DOCTYPE of the XML file.</ahelp></paragraph>
<paragraph role="listitem" id="par_id3155892" xml-lang="en-US">The public identifier is used to detect the filter when you open a file without specifying a filter.</paragraph>
<bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/browseexport" xml-lang="en-US" id="bm_id3153749" localize="false"/>
<bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/browseimport" xml-lang="en-US" id="bm_id3157863" localize="false"/>
<bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/browsetemp" xml-lang="en-US" id="bm_id3150774" localize="false"/>
-<paragraph role="heading" level="2" id="hd_id3155338" xml-lang="en-US">Browse</paragraph>
+<h2 id="hd_id3155338">Browse</h2>
<paragraph role="paragraph" id="par_id3150506" xml-lang="en-US"><ahelp hid=".">Opens a file selection dialog.</ahelp></paragraph>
- <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/xsltexport" xml-lang="en-US" id="bm_id3156426" localize="false"/><paragraph role="heading" level="2" id="hd_id3153527" xml-lang="en-US">XSLT for export</paragraph>
+ <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/xsltexport" xml-lang="en-US" id="bm_id3156426" localize="false"/><h2 id="hd_id3153527">XSLT for export</h2>
<paragraph role="paragraph" id="par_id3152552" xml-lang="en-US"><ahelp hid="filter/ui/xmlfiltertabpagetransformation/xsltexport" visibility="visible">If this is an export filter, enter the file name of the XSLT stylesheet that you want to use for exporting.</ahelp></paragraph>
- <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/xsltimport" xml-lang="en-US" id="bm_id3151110" localize="false"/><paragraph role="heading" level="2" id="hd_id3149149" xml-lang="en-US">XSLT for import</paragraph>
+ <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/xsltimport" xml-lang="en-US" id="bm_id3151110" localize="false"/><h2 id="hd_id3149149">XSLT for import</h2>
<paragraph role="paragraph" id="par_id3147653" xml-lang="en-US"><ahelp hid="filter/ui/xmlfiltertabpagetransformation/xsltimport" visibility="visible">If this is an import filter, enter the file name of the XSLT stylesheet that you want to use for importing.</ahelp></paragraph>
- <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/tempimport" xml-lang="en-US" id="bm_id3155831" localize="false"/><paragraph role="heading" level="2" id="hd_id3147242" xml-lang="en-US">Template for import</paragraph>
+ <bookmark branch="hid/filter/ui/xmlfiltertabpagetransformation/tempimport" xml-lang="en-US" id="bm_id3155831" localize="false"/><h2 id="hd_id3147242">Template for import</h2>
<paragraph role="paragraph" id="par_id3153320" xml-lang="en-US"><ahelp hid="filter/ui/xmlfiltertabpagetransformation/tempimport" visibility="visible">Enter the name of the template that you want to use for importing. In the template, styles are defined to display XML tags.</ahelp></paragraph>
<paragraph xml-lang="en-US" role="paragraph" id="par_id3156330">The path to the directory that contains the template must be included in <switchinline select="sys"><caseinline select="MAC"><emph>%PRODUCTNAME - Preferences</emph></caseinline><defaultinline><emph>Tools - Options</emph></defaultinline></switchinline><emph> - $[officename] - Paths</emph>. When you open an XML file whose filter uses the template, the template opens first. In the template, you can map $[officename] styles to display XML tags in the XML document.</paragraph>
</body>