Modifying stylesheet to include a generated label in a cross reference link
I'm working with xml/sgml and am very new to stylesheets (working with one created by someone else), and am trying to have a generated label be clickable along with the target xref.
The paragraph numbering style is X.X, but I would like the hyperlink to read "Paragraph X.X", and have the word "Paragraph" be selectable in addition to the "X.X".
The stylesheet section that is controlling the cross reference format is as follows:
<att logic="or">
<!--[A61032] For Condition:
IF XPath expression (starts-with(@xrefid, 'p')) is true-->
<specval attname="starts-with(@xrefid, 'p')" attloc="#xpath" attval="1"/>
<charsubset>
<savetext textid="aftertext"
conrule='!&#x3c;_sfe:BeforeOrAfterText xmlns:_sfe="http://www.arbortext.com/namespace/Styler/StylerFormattingElements"
xmlns:_ufe="http://www.arbortext.com/namespace/Styler/UserFormattingElements">Paragraph &#x3c;_sfe:CrossReference>!,#XREF(xrefid,Label_Number.xref),!&#x3c;/_sfe:CrossReference
>&#x3c;/_sfe:BeforeOrAfterText>!'
placemnt="after"/>
<savetext textid="beforetext" conrule="\\" placemnt="before"/>
<savetext textid="repeat_title.txt" conrule="\\"/>
<savetext textid="repeat_title_bottom.txt" conrule="\\"/>
</charsubset>
</att>
The reference format for the Label_Number is as follows
<ReferenceFormat referenceFormatName="Label_Number"><_gte:Translate
translate="off" id="A68f5c4eb-b1b0-4e80-bde8-50515a10c03b"><_gte:Target
lang="en"><_gte:ElementLabelAndNumber/></_gte:Target></_gte:Translate
></ReferenceFormat>
I tried creating a reference format specifically for the purpose of including that "Paragraph" label, and substituted the it's name for the "Label_Number.xref" in the controlling code, but it didn't seem to work.
Again, I'm very new to all of this and have little understanding of what's actually occurring, any thoughts or ideas would be helpful, thank you all.

