Trying to use conref pull with xrefs
Posted: Tue Jun 09, 2015 3:07 am
Hi,
I've got a couple DITA tasks that basically are the same procedure, but one task has two additional steps at the top.
Getting it to handle pulling the steps in using a conkeyref with a conrefend worked great - except for one problem; in the middle of the procedure, I have a stepsection element that contains a note that references the steps that follow it - something like:
In the note, I tried setting up the step numbers as
And within my "edit" file (which is the 'source' in this example), it worked just fine. (I used "step" rather than "li" because Oxygen gave me a warning if I used "li"; the type didn't make a difference to the problem.)
The problem is that in my "create" file (which pulls the steps from the "edit" file), I ended up with something like this as my output:
The xrefs end up linking to steps 4 and 5 in the other procedure (which makes sense, since the topic being referenced is the topic that holds those steps) - but how do I tell it to "use the current topic" when doing the pull?
I worked around this by creating two step blocks and inserting static text between them in my conref, but that seems kludgy.
What am I missing?
I've got a couple DITA tasks that basically are the same procedure, but one task has two additional steps at the top.
Getting it to handle pulling the steps in using a conkeyref with a conrefend worked great - except for one problem; in the middle of the procedure, I have a stepsection element that contains a note that references the steps that follow it - something like:
Code: Select all
1. Click "Edit"
2. Enter a Name
3. Enter an address
Note: For steps 4-5, you must first expand the "Advanced" options control
4. Enter a phone number
5. Enter your zip code
6. Click "save"
Code: Select all
<xref href="#topic/step4" type="step"/>-<xref href="#topic/step5" type="step"/>
The problem is that in my "create" file (which pulls the steps from the "edit" file), I ended up with something like this as my output:
Code: Select all
1. Cilck "User"
2. Click "Add"
3. Click "Edit"
4. Enter a Name
5. Enter an address
Note: For steps 4-5, you must first expand the "Advanced" options control
6. Enter a phone number
7. Enter your zip code
8. Click "save"
I worked around this by creating two step blocks and inserting static text between them in my conref, but that seems kludgy.
What am I missing?