Search found 149 matches

by shudson310
Tue Dec 01, 2020 12:10 am
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 132

Re: Comparing multiple strings in Schematron

Certain topics are now returning a fatal Schematron error: A sequence of more than one item is not allowed as the value in 'cast as' expression (<xref>, <xref>) My guess is that not all of these contain text to compare? I've tried adding: <sch:let name="empty"/> <sch:assert id="now014" test="($stag ...
by shudson310
Mon Nov 30, 2020 9:42 pm
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 132

Re: Comparing multiple strings in Schematron

I was close, but just not getting it quite right.

That did it. Thanks, so much, Octavian!
by shudson310
Wed Nov 25, 2020 5:43 am
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 132

Re: Comparing multiple strings in Schematron

OK, I have it closer, but now it is triggering on all of the links? <sch:pattern> <sch:rule context="*[count(xref = 3)]"> <sch:let name="stag"><xsl:value-of select="normalize-space(xs:string(xref[@product='staging]))"/></sch:let> <sch:let name="prod"><xsl:value-of select="normalize-space(xs:string(x...
by shudson310
Wed Nov 25, 2020 2:21 am
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 132

Comparing multiple strings in Schematron

I've got the following source: <dt><xref href="https://staging.example.com/example.html" format="html" scope="external" product="staging">My link text</xref><xref href="https://production.example.com/example.html" format="html" scope="external" product="production">My link text</xref><xref href="../...
by shudson310
Fri Nov 06, 2020 7:19 pm
Forum: General XML Questions
Topic: Test to see if text contains a string from a list of values
Replies: 3
Views: 204

Re: Test to see if text contains a string from a list of values

Unfortunately, I get this error:
A sequence of more than one item is not allowed as the first argument of fn:contains() ("Access to the ", " overview module is granted to a sp...")
by shudson310
Fri Nov 06, 2020 5:05 am
Forum: General XML Questions
Topic: Test to see if text contains a string from a list of values
Replies: 3
Views: 204

Test to see if text contains a string from a list of values

I'm trying to create a Schematron rule that will check text nodes against a list of terms in an external document. Basically, I'm trying to see if writers included a product name directly in text instead of using a keyref in DITA. I'm reading in my external document by: <sch:let name="keys" value="d...
by shudson310
Wed Sep 23, 2020 6:08 pm
Forum: Other Issues
Topic: Share Schematron Files Across Projects
Replies: 2
Views: 177

Re: Share Schematron Files Across Projects

Hi Daniel, I've implemented a similar scenario at a few different companies. I used oXygen's custom framework to set up the validation, transform scenarios, and other oXygen customizations. I've stored that framework in a separate tools repo when I did not have access to a webserver to deploy the fr...
by shudson310
Fri Mar 20, 2020 6:36 pm
Forum: Common Problems
Topic: Generate chapter minitoc
Replies: 8
Views: 2569

Re: Generate chapter minitoc

I figured it out:

Code: Select all

/* The dotted line between the topic name and the page number. */
*[class~="chapter/minitoc-links"] *[class~="topic/link"] a:after {
    content: leader('.') target-counter(attr(href), page) !important;
}
Just had to look at that merged-html a little more closely!
by shudson310
Fri Mar 20, 2020 6:28 pm
Forum: Common Problems
Topic: Generate chapter minitoc
Replies: 8
Views: 2569

Re: Generate chapter minitoc

I tried adding a style like:

Code: Select all

/* The dotted line between the topic name and the page number. */
*[class~="chapter/minitoc-links"] *[class~="topic/link"]:after {
    content: leader('-') target-counter(attr(href), page) !important;
    color: navy;
}
Doesn't seem to work. Suggestions?
by shudson310
Fri Mar 20, 2020 5:48 pm
Forum: Common Problems
Topic: Generate chapter minitoc
Replies: 8
Views: 2569

Re: Generate chapter minitoc

I don't see any information in the documentation for adding page numbers to the minitoc? This would be similar to how the main TOC displays page numbers and leaders.
by shudson310
Thu Mar 19, 2020 7:52 pm
Forum: Common Problems
Topic: Generate chapter minitoc
Replies: 8
Views: 2569

Re: Generate chapter minitoc

Is there a way to generate the page numbers in the minitoc, as is done in xsl:fo? For printed output, it is imperative that we provide the page numbers with the chapter minitoc.
by shudson310
Sat Dec 21, 2019 1:18 am
Forum: Common Problems
Topic: Password Protect PDF Output
Replies: 5
Views: 811

Re: Password Protect PDF Output

Is there a way to use this config inside of a custom framework? I'd like to distribute this across the team, rather than per desktop install... Thanks, --Scott Hi, If you are producing the PDF from Oxygen using our DITA to PDF using CSS transformation scenario, in the Oxygen installation folder you ...
by shudson310
Wed Oct 02, 2019 4:02 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp customization: Localized text in HTML fragment
Replies: 9
Views: 1664

Re: WebHelp customization: Localized text in HTML fragment

That worked very well! Thank you for the troubleshooting assistance! #bestcustomerservice
by shudson310
Thu Sep 26, 2019 10:49 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: WebHelp customization: Localized text in HTML fragment
Replies: 9
Views: 1664

Re: WebHelp customization: Localized text in HTML fragment

In my understanding, the localization features provided by Oxygen are limited to the interface of the output (e. g. search field placeholder text etc.). I use HTML fragments containing localized content, too. It's wrapped in several div elements with the lang attribute. In a first approach, I used ...
by shudson310
Wed Jul 31, 2019 6:58 pm
Forum: Common Problems
Topic: Table continuation headers
Replies: 10
Views: 2564

Re: Table continuation headers

The headers for the table are continued, but we want the title to also flow to the next page with a (continued) label. This is supported in the FOP transforms, but I haven't found a way to to the table title continuation in Chemistry.
by shudson310
Wed Jul 31, 2019 5:04 pm
Forum: Common Problems
Topic: Table continuation headers
Replies: 10
Views: 2564

Re: Table continuation headers

Is table title continuation supported in Chemistry?
by shudson310
Fri Apr 05, 2019 5:08 pm
Forum: Feature Request
Topic: Support for deployment on Azure
Replies: 2
Views: 1471

Re: Support for deployment on Azure

Perfect. Thanks!

--Scott
by shudson310
Thu Apr 04, 2019 10:44 pm
Forum: Feature Request
Topic: Support for deployment on Azure
Replies: 2
Views: 1471

Support for deployment on Azure

Please add support for deployment to Azure.
by shudson310
Tue Feb 12, 2019 2:18 am
Forum: Other Issues
Topic: Schematron: catch inconsistent spelling
Replies: 1
Views: 777

Schematron: catch inconsistent spelling

One of the features in Vale is that it can catch inconsistent use of a particular spelling. For example, "cancelled" and "canceled" can both be accepted forms of the word. I want to write a Schematron rule that flags a document that uses both forms of the word! You can use one or the other forms, bu...
by shudson310
Mon Sep 24, 2018 5:54 pm
Forum: Common Problems
Topic: tokenize sentences in a paragraph in Schematron
Replies: 3
Views: 1774

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: 1774

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()" group-ending-wi...
by shudson310
Thu Aug 16, 2018 7:39 pm
Forum: Offer a Service
Topic: Schematron development and training
Replies: 1
Views: 5587

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: 1993

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: 2411

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: 2411

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: <div name="cover-image" class="- topic...
by shudson310
Thu Jul 19, 2018 5:38 pm
Forum: Common Problems
Topic: widows and orphans
Replies: 3
Views: 1993

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: 2546

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(@class, ' glossentry/glossAbb...
by shudson310
Thu Jul 19, 2018 4:22 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 2546

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/title"]:before, *[c...
by shudson310
Thu Jul 19, 2018 4:12 pm
Forum: Common Problems
Topic: Glossary formatting
Replies: 6
Views: 2546

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"] > *[class...
by shudson310
Thu Jul 19, 2018 3:08 am
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 5406

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 ~= "rotated"] { pa...