Search found 130 matches

by shudson310
Mon Sep 24, 2018 5:54 pm
Forum: Common Problems
Topic: tokenize sentences in a paragraph in Schematron
Replies: 3
Views: 499

Re: tokenize sentences in a paragraph in Schematron

Unfortunately, it looks like the markup in the <i> sentence is getting removed. We need to preserve the markup and delete only the sentence that has <b>.
by shudson310
Mon Sep 24, 2018 1:40 am
Forum: Common Problems
Topic: tokenize sentences in a paragraph in Schematron
Replies: 3
Views: 499

tokenize sentences in a paragraph in Schematron

I have a paragraph with multiple sentences of mixed content. I'd like to tokenize each sentence and wrap them in a <ph> element. I've tried a few approaches using tokenize, but can't seem to get them to work. <sqf:replace match="text()"> <xsl:copy> <xsl:for-each-group select="text()&q...
by shudson310
Thu Aug 16, 2018 7:39 pm
Forum: Offer a Service
Topic: Schematron development and training
Replies: 0
Views: 891

Schematron development and training

Need help converting your Editorial Style rules to Schematron? Want to know how to create Schematron rules yourself?

I can help! I provide the following DITA related services: user training, user mentoring, information architecture, Schematron development

Scott Hudson
http://shudson310.blogspot.com/
by shudson310
Tue Jul 31, 2018 12:13 am
Forum: Common Problems
Topic: widows and orphans
Replies: 3
Views: 614

Re: widows and orphans

Thanks! That was very helpful. Works well for our tasks, too.
by shudson310
Mon Jul 23, 2018 5:29 pm
Forum: Common Problems
Topic: Path to image from Cover Page for PDF
Replies: 4
Views: 842

Re: Path to image from Cover Page for PDF

We follow the best practice from https://www.oxygenxml.com/forum/topic5247.html The bookmeta contains a data element with the keyref to the image. We have a separate sub map that resolves that keyref to in image in the project directory. I don't want to maintain separate stylesheets for every projec...
by shudson310
Fri Jul 20, 2018 11:55 pm
Forum: Common Problems
Topic: Path to image from Cover Page for PDF
Replies: 4
Views: 842

Re: Path to image from Cover Page for PDF

Each of our projects has a logo that is specified in the bookmap: <data name="cover-image"><image id="project_icon" keyref="project_icon" align="right"> <alt>Project icon</alt> </image></data> </metadata> That keyref gets resolved to an href in the merged.html...
by shudson310
Thu Jul 19, 2018 5:38 pm
Forum: Common Problems
Topic: widows and orphans
Replies: 3
Views: 614

widows and orphans

The Chemistry documentation describes a style to control page breaks based on widows and orphans. The example only shows <p>, but is this possible with other elements? For example, I don't want an orphaned line from a step. I tried: p, tr, ul, ol, steps, step, substep, li { orphans: 4; widows: 2; } ...
by shudson310
Thu Jul 19, 2018 4:26 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 860

Re: Glossary formatting

Here's my final style that works: /* Glossary formatting*/ *[class~="glossentry/glossentry"] > *[class~="glossentry/glossterm"]:before { content: oxy_xpath("(following-sibling::*//*[contains(@class, ' glossentry/glossAcronym ')]/text() | following-sibling::*//*[contains(@cla...
by shudson310
Thu Jul 19, 2018 4:22 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 860

Re: Glossary formatting

To get it to work, I commented out the following offending style in p-numbering-shallow.css: /* Topics from Front Matter and Back Matter and all other topics that follow a part should not define string sets, counters, etc.. */ *[class ~= "bookmap/frontmatter"] > *[class ~= "topic/titl...
by shudson310
Thu Jul 19, 2018 4:12 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 860

Re: Glossary formatting

I am able to get the CSS selector to work in the browser, but when I run the transform, it appears that my style is either overridden or stripped out during the process, so does not appear when I inspect the merged HTML. I'm using: /* Glossary formatting*/ *[class~="glossentry/glossentry"]...
by shudson310
Thu Jul 19, 2018 3:08 am
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 2076

Re: support text rotation

The padding was the issue. I fixed as follows: *[outputclass ~= "rotated"] > * { display: block; transform: rotate(-90deg) translate(-100%) !important; text-align: left !important; margin-top: -10%; margin-bottom: 0; vertical-align:bottom; white-space: nowrap; } tr > *[outputclass ~= "...
by shudson310
Thu Jul 19, 2018 1:31 am
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 2076

Re: support text rotation

To address the height issue, I found a similar post on StackOverflow. I still can't get the text to align at the bottom of the cell now: *[outputclass ~= "rotated"] > * { display: block; transform: rotate(-90deg) translate(-100%) !important; text-align: left !important; margin-left: 0 !imp...
by shudson310
Thu Jul 19, 2018 1:29 am
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 860

Re: Glossary formatting

Unfortunately, we are still not seeing the prepended Acronym in the glossary heading (glossterm).

I've tried troubleshooting with the browser and with the XPath builder.

--Scott
by shudson310
Wed Jul 18, 2018 8:55 pm
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 2076

Re: support text rotation

Adding the <p> around the table header text and using the style provided works! That said, the table header is not tall enough, so the text overruns. How can I address the table row height?
by shudson310
Tue Jul 17, 2018 7:44 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 860

Glossary formatting

I'd like to style the glossary such that the title follows the format: glossAcronym - glossterm glossdef I'm trying to use: /* Glossary formatting*/ article > *[class~="glossentry/glossentry"] > *[class~="glossentry/glossterm"]:before { content: oxy_xpath('.//*[contains(@class, '...
by shudson310
Tue Jul 17, 2018 5:08 pm
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 2076

Re: support text rotation

I saw the reply, but this request is to support the text rotation within a header cell, not rotate the entire table. I still haven't been able to get this to work:

Code: Select all

*[class ~= "rotated"] {
  transform: rotate(90deg) !important;
}
by shudson310
Tue Jul 17, 2018 4:06 pm
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 2076

support text rotation

We need to be able to rotate certain headers in our tables when @outputclass=”rotated” is specified. In our xsl:fo, we support this with: <xsl:when test="@outputclass='rotated'"> <fo:block-container reference-orientation="90" inline-progression-dimension="1in"> <fo:bloc...
by shudson310
Thu Jul 05, 2018 7:26 pm
Forum: Common Problems
Topic: Table continuation headers
Replies: 1
Views: 515

Table continuation headers

How can I bring over the title of a table if it spans multiple pages?

On the subsequent pages, I'd like the text to read:
Table title (continued)

The th is carried over, so there should be a way to do this?
by shudson310
Tue Jul 03, 2018 7:27 pm
Forum: Common Problems
Topic: Path to image from Cover Page for PDF
Replies: 4
Views: 842

Path to image from Cover Page for PDF

Hi, In our PDFs for every product we have different product logo on the cover page. How can I set the path to these images so that whenever I generate PDF out the correct logo is picked? In the XML we have: <image id="image_Project_icon" keyref="fg_Icon" align="right"> ...
by shudson310
Tue Jul 03, 2018 6:19 pm
Forum: Common Problems
Topic: Swap out note icons
Replies: 1
Views: 504

Swap out note icons

Hello, I'm trying to swap out the default note icons. I used an override, but I get duplicate label and icons. Here's my code: *[class ~= "topic/note"]:before { content: url('../../images/myNote.png') " Note: " !important; font-family: 'Arial Unicode MS Bold', sans-serif; font-we...
by shudson310
Fri Jun 29, 2018 5:37 pm
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

Re: draft watermark until approved?

Turns out it was a quote nesting issue. This fixed it:

Code: Select all

draftStatus oxy_xpath('if (//*[contains(@class, "bookmap/approved")]) then "" else "DRAFT" ');
by shudson310
Fri Jun 29, 2018 5:18 pm
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

Re: draft watermark until approved?

ugh. Copy/paste error. should be:

Code: Select all

draftStatus oxy_xpath('if (//*[contains(@class, 'bookmap/approved')]) then "" else "DRAFT" ')


Still not working when "approved" though.
by shudson310
Fri Jun 29, 2018 5:16 pm
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

Re: draft watermark until approved?

OK, I also want to add text in the footer for the draft status. I declared the variable in the .root: draftStatus oxy_xpath('if (//*[contains(@class, 'bookmap/permissions')]) then "" else "DRAFT" ') And in the page templates, I have: content : string(prodname) " " strin...
by shudson310
Fri Jun 29, 2018 4:27 pm
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

Re: draft watermark until approved?

Worked like a charm. As always, you oXygen folks are the best!

Many thanks! :D
by shudson310
Fri Jun 29, 2018 4:26 pm
Forum: Common Problems
Topic: Figure and Table numbering
Replies: 6
Views: 1191

Re: Figure and Table numbering

Worked like a charm. As always, you oXygen folks are the best!

Many thanks!
by shudson310
Fri Jun 29, 2018 2:06 am
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

Re: draft watermark until approved?

I tried a different approach, but still not working: body:not(*[class ~= "bookmap/approved"]) { background-image:url("../../images/draft-watermark.png"); background-position:center; background-repeat:no-repeat; } body:has(*[class ~= "bookmap/approved"]) { } I still get ...
by shudson310
Fri Jun 29, 2018 1:38 am
Forum: Common Problems
Topic: draft watermark until approved?
Replies: 6
Views: 1079

draft watermark until approved?

We followed the tutorial to create a draft watermark, but how can we conditionalize this so that the watermark is applied until bookmap/approved exists in the map? Is there a way to conditionally apply an @page template? For example, if we set a variable: draftStatus oxy_xpath("(//*[contains(@c...
by shudson310
Thu Jun 28, 2018 11:05 pm
Forum: Common Problems
Topic: Figure and Table numbering
Replies: 6
Views: 1191

Figure and Table numbering

I'm trying to auto-number figures and tables, but the counter doesn't increment. Here's my code: body { counter-reset: figures 1; counter-reset: tables 1; } *[class ~= "topic/fig"] { counter-increment: figures; } *[class ~= "topic/fig"] figcaption::before { content: "Figure ...
by shudson310
Thu Jun 28, 2018 1:06 am
Forum: Common Problems
Topic: change-tracking display?
Replies: 1
Views: 481

change-tracking display?

Does Chemistry support rendering of tracked changes (show.changes.and.comments)? If so, how can I configure/override styling?
by shudson310
Wed Jun 27, 2018 5:12 pm
Forum: Common Problems
Topic: Generate chapter minitoc
Replies: 1
Views: 474

Generate chapter minitoc

Does Chemistry support the minitoc like the standard PDF OT transform? If so, how do we enable it?

Go to advanced search