cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Styler 5.3: Cross-reference number style resolution for nested steps

jsillari
1-Visitor

Styler 5.3: Cross-reference number style resolution for nested steps

Adepters:

Can Styler 5.3 resolve number styles (e.g., 1., a., etc.) for nested
steps in a procedure when cross-referencing? It seems that no matter
which level the id occurs, Styler only resolves the number of the
highest level nested step in the cross-reference.

Given the following markup:

<step1>
<para>This is step 1.</para>
<step2 id="stp-020">
<para>This is step a.</para>
</step2>
<step2>
<para>This is step b.</para>
<step1>
<para>Go back and do step <xref idref="stp-020"/"></para>

I'd like the following output:

1. This is step 1.
a. This is step a.
b. This is step b.
2. Go back and do step a.

But Styler generates:

1. This is step 1.
a. This is step a.
b. This is step b.
2. Go back and do step 1.

Why? Is there a limitation in Styler which prohibits it from resolving
nested step id references using the number style associated with that
level? What's funny is that double-clicking the generated text in the
xref repositions the cursor to the correct location (step2).

Thanks,

John Sillari
Dayton T. Brown, Inc.
jsillari@dtb.com

1 REPLY 1
bibach
1-Visitor
(To:jsillari)

Hi, John...

I can't readily explain why you're seeing this result. With the
default stylersheet on a Docbook document in 5.3, I created a
procedure similar to yours and the cross reference showed as "a",
rather than "1".

Can you give us some more detail about the Gentext settings for your
xref and step2 elements, including the numbering details for step2?

-Brandon 🙂

Announcements

Top Tags