|
Subject: Re: [xsl] Trying to check if key is NOT found From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 12 Dec 2014 21:36:32 -0000 |
On Fri, Dec 12, 2014 at 09:15:59PM -0000, russurquhart1@xxxxxxxxxxx scripsit:
> Sorry about that. The xml would look like this:
>
> <entry>
> <CrossReference xrefLabel="ADDF32 RaH, #16FHi, RbH" href="#ADDF32RaH16FRbH"/>
> <br Placement="line"/>
> <CrossReference xrefLabel="ADDF32 RaH, RbH, #16FHi" href="#ADDF32RaHRbH16F"/>
> </entry>
> In this case, the entry element contains two CrossReference elements. The first CrossReference element, its' href attribute does not have any element that has a Target attribute with that value.
>
> I would expect to see:
>
> No target for:
> ADDF32RaH16FRbH
>
> Does this make more sense now?
So you're always trying to compare the xrefLabel value and the href
attribute value on the same element?
Supposing you've got XSLT 2.0 --
<xsl:template match="CrossReference[replace(@xrefLabel,'[\p{P}\p{Zs}]*','') eq replace(@href,'^#','')]">
.... call a function to report?
</xsl:template>
That's taking the @xrefLabel value and removing all punctuation and
spaces and comparing it to the @href value with any leading # removed.
-- Graydon
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Trying to check if key is, russurquhart1@xxxxxx | Thread | Re: [xsl] Trying to check if key is, Russell Urquhart rus |
| Re: [xsl] Trying to check if key is, russurquhart1@xxxxxx | Date | Re: [xsl] Trying to check if key is, Russell Urquhart rus |
| Month |