[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: creating multiple xml documents from one large xml

Subject: Re: creating multiple xml documents from one large xml document
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 27 May 2023 09:41:25 -0000
Re:  creating multiple xml documents from one large xml
On 5/27/2023 12:48 AM, LEGAULT, PHILLIP plegault@xxxxxxxxxx wrote:
>
>
> Ibm using Saxon XSLT 2
>
> Calling it like: xslt2 soap.xml file.xsl hello.htm
>
> <xsl:stylesheet version="2.0"
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> xmlns:sf="urn:sobject.enterprise.soap.sforce.com"
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <xsl:template match="records[@xsi:type = 'sf:CaseNote_GCC__c']">
>
> B B  <xsl:result-document href="case-{sf:Id}-{sf:CaseNumber}.xml">
>
> B B B B  <xsl:copy-of select="."/>
>
> B  </xsl:result-document>
>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Not getting any result files.
>

It is usually a namespace problem, you haven't shown a small but
representative sample of your XML input to allow us to tell in which
namespace the "records" element is.

Of course also make sure the string in @xsi:type = 'sf:CaseNote_GCC__c'
(i.e. the 'sf:CaseNote_GCC__c') is correct, I don't know the input data
to check.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.