Question

2
Replies
533
Views
GOUTHAMKUMAR Member since 2011 13 posts
Virtusa Consulting Services Pvt. Ltd.
Posted: 4 years ago
Last activity: 4 years 6 months ago
Closed

Can we call pega tags under xsl tags?

Hi,

I have a requirement to read in an incoming xml request and create a work object. For this, I am using a text file to parse the incoming request like below

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">

<xsl:for-each select="Enquiry">

      <pagedata>

        <xsl:for-each select="Client">

       <PartyList>

            <GUID><xsl:value-of select="Identifier"/></GUID>

            <xsl:for-each select="Person">

              <PartyType>3</PartyType>

              <EntityType>Person</EntityType>

.

.

.

Its all working. One of the elements has a text value in it for which I use codes in Pega. So, I need to convert it into code when reading the data.

Can I do some thing like pega:ForEach or Java code between these XSL tags?

Data Integration
Moderation Team has archived post
Share this page LinkedIn