How do I display PersonEthnicityCode
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 62
- Joined: Thu Jun 26, 2014 9:00 pm
How do I display PersonEthnicityCode
In my xml I have an element 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:
My xml document
My xslt code
Code: Select all
<ObservedEthnicity Word="R">Refused</ObservedEthnicity>
Right now it is being displayed in the output as this:
Code: Select all
<ext:Respondent>
<nc:PersonEthnicityCode>R</nc:PersonEthnicityCode>
</ext:Respondent>
Code: Select all
<Integration xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:tsg="http://tsgweb.com">
<Case InternalID="1616758974" ID="11682339" xmlns:user="http://tylertechnologies.com">
<CaseParty ID="16548391" InternalCasePartyID="1633583540" InternalPartyID="1614451528">
<ObservedEthnicity Word="R">Refused</ObservedEthnicity>
</CaseParty>
</Case>
</Integration>
My xslt code
Code: Select all
<xsl:template name="Respondent">
<ext:Respondent>
<nc:PersonEthnicityCode>
<xsl:choose>
<xsl:when test="//CaseParty[@ID=current()/@ID]/ObservedEthnicity/@Word='NH'">N</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@Word"/>
</xsl:otherwise>
</xsl:choose>
</nc:PersonEthnicityCode>
</ext:Respondent>
</xsl:template>
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: How do I display PersonEthnicityCode
Post by sorin_ristache »
Hello,
There are many XSLT experts available on this mailing list who can help you with that. Did you try posting the example code there?
There are many XSLT experts available on this mailing list who can help you with that. Did you try posting the example code there?
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service