oxy_ string functions don’t seem to work in CSS header specifications
Having trouble installing Oxygen? Got a bug to report? Post it all here.
oxy_ string functions don’t seem to work in CSS header specifications
Folks,
In my document, I would like to have a header reproducing only a part of the ‘sectiontitle’, so instead of writing, say:
I would like something like this:
However, this doesn’t work for any pattern other than those matching a void string, and it seems the string(sectiontitle) expression is actually void when the oxy_replace (or any other oxy_* function for that matter, such as oxy_substring) is called.
Is this intended, and is there a workaround?
In my document, I would like to have a header reproducing only a part of the ‘sectiontitle’, so instead of writing, say:
Code: Select all
@page :left {
...
@top-left {
color: blue;
content: string(sectiontitle);
}
}
Code: Select all
@page :left {
...
@top-left {
color: blue;
content: oxy_replace(string(sectiontitle), *some_pattern*, *replacement_string*, true);
}
}
Is this intended, and is there a workaround?
-
- Posts: 581
- Joined: Wed Oct 16, 2019 3:47 pm
Re: oxy_ string functions don’t seem to work in CSS header specifications
Post by julien_lacour »
Hello,
Is it not simpler to redefine 'sectiontitle' using the string-set property? The default definition is available in the user guide.
You can also define a custom string-set and use it instead of sectiontitle if you need to keep it in some cases and use another in other cases.
Regards,
Julien
Is it not simpler to redefine 'sectiontitle' using the string-set property? The default definition is available in the user guide.
You can also define a custom string-set and use it instead of sectiontitle if you need to keep it in some cases and use another in other cases.
Regards,
Julien
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service