Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Dear all,
I'm trying to invoke different cross reference formatting based on an xref attribute in a FOSI-based stylesheet. For example,
I. See <xref outputclass="text"/">. should generate "See Topic Title."
The instructions are to add <_gte:CrossReference refAttr="href" xrefStyle="Text"/> after the element content. Text's format is <_sfe:CrossReferenceTitle/>)
My output is: "See Topic Title."
Myt 2nd requirement is...
II. See <xref outputclass="page"/">. should generate "See 12."
The instructions are to add <_gte:CrossReference refAttr="href" xrefStyle="Page"/> after the element content. Page's format is <_gte:PageNumberReference/>)
My output is: "See Topic Title12."
Regardless of what Cross Reference I select from the Cross Reference Dialog box, the title of the topic I'm referencing appears in my output. I've also tried to make my own new cross reference types with the same end result. Where can I edit to get rid of the gentext?
Thanks so much for your time and attention.
Best regards,
Anne
Hi Jean,
Thanks so much for your reply. No, that didn't help. I'm testing for lowercase 'page' and 'text' in my attribute test. I didn't show that in my example- apologies. My casing matches in both the xml and styler attribute test. I am successfully adding the page number, it just comes with the unwanted topic title.
Does it make since that this behavior is coming from the sfe_CrossReference?
Here is the FOSI for the xref:
<e-i-c gi="xref" occur="all">
<charlist inherit="1">
<indent inherit="0"/">
<savetext textid="aftertext"<br"/>conrule='!<_sfe:BeforeOrAfterText xmlns:_sfe="http://www.arbortext.com/namespace/Styler/StylerFormattingElements" xmlns:_ufe="http://www.arbortext.com/namespace/Styler/UserFormattingElements" ><_sfe:CrossReference>!,#XREF(href,Text.xref),!!'
placemnt="after"/></charlist>
<att>
<specval attname="outputclass" attval="text"/">
<charsubset>
<savetext textid="aftertext"<br"/>conrule='!<_sfe:BeforeOrAfterText xmlns:_sfe="http://www.arbortext.com/namespace/Styler/StylerFormattingElements" xmlns:_ufe="http://www.arbortext.com/namespace/Styler/UserFormattingElements" ><_sfe:CrossReference>!,#XREF(href,Text.xref),!!'
placemnt="after"/>
<savetext textid="beforetext" conrule="\\" placemnt="before"/">
<savetext textid="repeat_title.txt" conrule="\\"/">
<savetext textid="repeat_title_bottom.txt" conrule="\\"/"></charsubset>
</att>
<att>
<specval attname="outputclass" attval="page"/">
<charsubset>
<savetext textid="aftertext"<br"/>conrule='!<_sfe:BeforeOrAfterText xmlns:_sfe="http://www.arbortext.com/namespace/Styler/StylerFormattingElements" xmlns:_ufe="http://www.arbortext.com/namespace/Styler/UserFormattingElements" ><_sfe:CrossReference>!,#XREF(href,Page.xref),!!'
placemnt="after"/>
<savetext textid="beforetext" conrule="\\" placemnt="before"/">
<savetext textid="repeat_title.txt" conrule="\\"/">
<savetext textid="repeat_title_bottom.txt" conrule="\\"/"></charsubset>
</att>
<att>
<charsubset>
<usetext source="aftertext" placemnt="after"></usetext>
</charsubset>
</att>
</e-i-c>
If I don't style the xref at all, the topic title still comes in. So maybe it has nothing to do with the sfe_CrossReference...
Thanks,
Anne