Question
Virtusa Consulting Services Pvt. Ltd.
US
Last activity: 13 Apr 2016 11:08 EDT
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.
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?