Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 16 of 16
Search took 0.01 seconds.
Search: Posts Made By: virgosaggi
Forum: XSLT April 30th, 2018, 10:10 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Code is working as expected Martin Many thanks...

Code is working as expected Martin
Many thanks again
Forum: XSLT April 30th, 2018, 09:12 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hello Martin That seem to work The only...

Hello Martin
That seem to work

The only change I made was match=“Registration” from match=“KeyFacts/Registration”

I am validating dataset

Will revert back thanks a ton again...
Forum: XSLT April 30th, 2018, 08:48 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
I tried the code suggested but it does not remove...

I tried the code suggested but it does not remove duplicate
Forum: XSLT April 30th, 2018, 08:29 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hello Martin The duplicate element for...

Hello Martin

The duplicate element for country code are based on Fund
Key facts does not give uniqueness of country code
Forum: XSLT April 30th, 2018, 08:09 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
I will check on xsl version Is there way to...

I will check on xsl version
Is there way to check the duplicate using version 1.0
Forum: XSLT April 30th, 2018, 07:47 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Unhappy Hi Martin Using the suggestions above it worked...

Hi Martin
Using the suggestions above it worked in xmlspy
But when I am trying to run based on a wrapper code it’s failing saying y needs two arguments to the generate-id(key())

Any...
Forum: XSLT April 29th, 2018, 10:09 AM
Replies: 3
Views: 775
Posted By virgosaggi
Thanks Martin for your reply I managed to sort...

Thanks Martin for your reply
I managed to sort it late last night forgot to update the thread with the code, but thnk you very much for your quick update
Forum: XSLT April 28th, 2018, 05:12 PM
Replies: 3
Views: 775
Posted By virgosaggi
The following code is not working ...

The following code is not working


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes"/>
<xsl:strip-space elements="*"/>

<xsl:template...
Forum: XSLT April 28th, 2018, 02:22 PM
Replies: 3
Views: 775
Posted By virgosaggi
Need to change target XML namespace

Source XML:
========

<FundXML>
<FundFacts>
<KeyFacts>
<Registration>
<Country>AE</Country>
</Registration>
<Registration>
Forum: XSLT April 28th, 2018, 01:07 PM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hi Martin It seem to work with the...

Hi Martin

It seem to work with the suggestion you gave

I added NOT clause

<xsl:template match="Registration[not( generate-id() = generate-id(key('cc', Country, ancestor::Fund)[1]))]"
/> ...
Forum: XSLT April 28th, 2018, 12:52 PM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hello Martin Fund is the main pattern to...

Hello Martin

Fund is the main pattern to filter out the distinct country code fund wise

thank you
Forum: XSLT April 28th, 2018, 12:17 PM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hi Martin All I did based on suggestion was...

Hi Martin

All I did based on suggestion was below code nothing else changed

<xsl:template match="Registration[generate-id() = generate-id(key('cc', Country, ancestor::Fund)[1])]"
/> ...
Forum: XSLT April 28th, 2018, 11:57 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
--------------------------------- HI Martin ...

---------------------------------
HI Martin

I have used following code for the xml filtering on duplicate. but out of 4 countries its displaying 2 countries which are duplicate per Fund

...
Forum: XSLT April 28th, 2018, 11:41 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Hi Martin thanks for the information ...

Hi Martin

thanks for the information

Not really restricted with XSLT 1.0
Could use 2.0 version

Let me check on it and revert back

thank you
Forum: XSLT April 28th, 2018, 10:31 AM
Replies: 17
Views: 1,758
Posted By virgosaggi
Unhappy removing duplicate data in xml not displaying correct result

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:strip-space...
Forum: XSLT April 28th, 2018, 10:30 AM
Replies: 0
Views: 580
Posted By virgosaggi
Unhappy removing duplicate in xmlnotdisplaying correct result

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:strip-space...
Showing results 1 to 16 of 16

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.