How do I display PersonEthnicityCode

Here should go questions about transforming XML with XSLT and FOP.
Posts: 53

How do I display PersonEthnicityCode

Tue Dec 30, 2014 9:46 pm

In my xml I have an element

Code: Select all

<ObservedEthnicity Word="R">Refused</ObservedEthnicity>
but I do not want it displayed in the output. What do I need to change in my xslt so that this is skipped?
Right now it is being displayed in the output as this:

Code: Select all


My xml document

Code: Select all

<Integration xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:tsg="" xmlns:IXML="" xmlns:CMCodeQueryHelper="urn:CMCodeQueryHelper" PackageID="BCA PO Notification" MessageID="57818037" xmlns="">
    <Case InternalID="1616758974" ID="11682339" xmlns:user="">
        <CaseParty ID="16548391" InternalCasePartyID="1633583540" InternalPartyID="1614451528">
            <ObservedEthnicity Word="R">Refused</ObservedEthnicity>

My xslt code

Code: Select all

<xsl:template name="Respondent">
            <xsl:when test="//CaseParty[@ID=current()/@ID]/ObservedEthnicity/@Word='NH'">N</xsl:when>
                    <xsl:value-of select="@Word"/>
Posts: 4144

Re: How do I display PersonEthnicityCode

Wed Dec 31, 2014 10:46 am


There are many XSLT experts available on this mailing list who can help you with that. Did you try posting the example code there?

<oXygen/> XML Editor Support

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests