XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Bob ChauvinSubject: Easiest way to split many documents from one large document
Author: Bob Chauvin
Date: 10 Oct 2007 11:40 AM
Originally Posted: 10 Oct 2007 10:18 AM
I have an xml file exported from MSAccess with the format similar to Fig A, and want to create individual documents that match the schema in Fig B. I have SS 2007 r2 EE and would like to know if I can do this w/in SS, or should use some other method.

Thanks for your assist.
P.S. The input file Fig A is large (~67MB).
PP.S I need all thos processing instructions and namespaces at the top of each document.

<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="estate.xsd" generated="2007-10-08T13:06:57">
<estate>
<cl1_name>Smith, DOLORES H.</cl1_name>
<cl_number>11111-001</cl_number>
<cl1_alive>Y</cl1_alive>
<first>Y</first>
<resigndate>1899-12-30T00:00:00</resigndate>

<lasttalk>1899-12-30T00:00:00</lasttalk>
<nexttalk>1899-12-30T00:00:00</nexttalk>
</estate>
<estate>
<cl1_name>Smith, Fred H.</cl1_name>
<cl_number>11111-001</cl_number>
<cl1_alive>Y</cl1_alive>
<first>Y</first>
<resigndate>1899-12-30T00:00:00</resigndate>

<lasttalk>1899-12-30T00:00:00</lasttalk>
<nexttalk>1899-12-30T00:00:00</nexttalk>
</estate>
</dataroot>


Fig B - Schema for individual estate documents
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsd:schema targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-29T18:23:34" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-27T18:39:16" xmlns:ns2="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-09-11T18:39:16" xmlns:ns3="http://schemas.microsoft.com/office/infopath/2003/my/2006-01-05T14:10:19" xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:tns="http://mjsc-int.com" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:_xdns0="http://schemas.microsoft.com/office/infopath/2003/changeTracking" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:ns4="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2007-08-29T18:23:34" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="myFields">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:ActiveTab" minOccurs="0"/>
<xsd:element ref="my:NavControl" minOccurs="0"/>
<xsd:element ref="my:FileAs" minOccurs="0"/>
<xsd:element ref="my:IsConflict" minOccurs="0"/>
<xsd:element ref="my:vStatusNote" minOccurs="0"/>
<xsd:element ref="my:MJQualityIndicator" minOccurs="0"/>
<xsd:element ref="my:Addresses" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="my:BusinessDocuments" minOccurs="0"/>
<xsd:element ref="my:DpaDocuments" minOccurs="0"/>
<xsd:element ref="my:GovernmentDocuments" minOccurs="0"/>
<xsd:element ref="my:IrrevocableTrustDocuments" minOccurs="0"/>
<xsd:element ref="my:MaritalDocuments" minOccurs="0"/>
<xsd:element ref="my:Matters" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="my:MiscellaneousDocuments" minOccurs="0"/>
<xsd:element ref="my:NonTaxTrustDocuments" minOccurs="0"/>
<xsd:element ref="my:OtherCodes" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="my:OtherCommentDocuments" minOccurs="0"/>
<xsd:element ref="my:PepContact" minOccurs="0"/>
<xsd:element ref="my:PepMJSCContacts" minOccurs="0"/>
<xsd:element ref="my:RevocTaxTrustDocuments" minOccurs="0"/>
<xsd:element ref="my:WillDocuments" minOccurs="0"/>
</xsd:sequence>
<xsd:anyAttribute processContents="lax" namespace="http://www.w3.org/XML/1998/namespace"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="ActiveTab" type="xsd:string"/>
<xsd:element name="NavControl" type="xsd:string"/>
<xsd:element name="FileAs" type="xsd:string"/>
<xsd:element name="IsConflict" type="xsd:string"/>
<xsd:element name="vStatusNote" type="xsd:string"/>
<xsd:element name="MJQualityIndicator" type="xsd:string"/>
<xsd:element name="Addresses">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:Owner" minOccurs="0"/>
<xsd:element ref="my:Type" minOccurs="0"/>
<xsd:element ref="my:ValidFlag" minOccurs="0"/>
<xsd:element ref="my:StatusDate" minOccurs="0"/>
<xsd:element ref="my:AddressStreet" minOccurs="0"/>
<xsd:element ref="my:AddressPostOfficeBox" minOccurs="0"/>
<xsd:element ref="my:AddressCity" minOccurs="0"/>
<xsd:element ref="my:AddressState" minOccurs="0"/>
<xsd:element ref="my:AddressPostalCode" minOccurs="0"/>
<xsd:element ref="my:AddressCountry" minOccurs="0"/>
<xsd:element ref="my:AddressCode" minOccurs="0"/>
<xsd:element ref="my:AddressNotes" minOccurs="0"/>
<xsd:element ref="my:NavToAddresses" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Owner" type="xsd:integer"/>
<xsd:element name="Type" type="xsd:string"/>
<xsd:element name="ValidFlag" type="xsd:string"/>
<xsd:element name="StatusDate" nillable="true" type="xsd:date"/>
<xsd:element name="AddressStreet" type="my:requiredString"/>
<xsd:element name="AddressPostOfficeBox" type="xsd:string"/>
<xsd:element name="AddressCity" type="my:requiredString"/>
<xsd:element name="AddressState" type="my:requiredString"/>
<xsd:element name="AddressPostalCode" type="my:requiredString"/>
<xsd:element name="AddressCountry" type="my:requiredString"/>
<xsd:element name="AddressCode" type="my:requiredString"/>
<xsd:element name="AddressNotes" type="xsd:string"/>
<xsd:element name="NavToAddresses" nillable="true" type="xsd:boolean"/>
<xsd:element name="BusinessDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:BusinessDocumentId" minOccurs="0"/>
<xsd:element ref="my:BusinessLlc" minOccurs="0"/>
<xsd:element ref="my:BusinessFlp" minOccurs="0"/>
<xsd:element ref="my:CloselyHeldCorp" minOccurs="0"/>
<xsd:element ref="my:SplitDollarPlan" minOccurs="0"/>
<xsd:element ref="my:NonQualDefComp" minOccurs="0"/>
<xsd:element ref="my:NavToBusiness" minOccurs="0"/>
<xsd:element ref="my:Amendments" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="BusinessDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="BusinessLlc" nillable="true" type="xsd:date"/>
<xsd:element name="BusinessFlp" nillable="true" type="xsd:date"/>
<xsd:element name="CloselyHeldCorp" nillable="true" type="xsd:date"/>
<xsd:element name="SplitDollarPlan" nillable="true" type="xsd:date"/>
<xsd:element name="NonQualDefComp" nillable="true" type="xsd:date"/>
<xsd:element name="NavToBusiness" nillable="true" type="xsd:boolean"/>
<xsd:element name="Amendments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:AmendmentID" minOccurs="0"/>
<xsd:element ref="my:DocumentType" minOccurs="0"/>
<xsd:element ref="my:DocumentID" minOccurs="0"/>
<xsd:element ref="my:AmendmentDate" minOccurs="0"/>
<xsd:element ref="my:AmendmentDescription" minOccurs="0"/>
<xsd:element ref="my:AmendmentNote" minOccurs="0"/>
<xsd:element ref="my:AmendmentRank" minOccurs="0"/>
<xsd:element ref="my:NavToAmendment" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AmendmentID" nillable="true" type="xsd:integer"/>
<xsd:element name="DocumentType" type="xsd:string"/>
<xsd:element name="DocumentID" nillable="true" type="xsd:integer"/>
<xsd:element name="AmendmentDate" nillable="true" type="xsd:date"/>
<xsd:element name="AmendmentDescription" type="xsd:string"/>
<xsd:element name="AmendmentNote" type="xsd:string"/>
<xsd:element name="AmendmentRank" nillable="true" type="xsd:integer"/>
<xsd:element name="NavToAmendment" nillable="true" type="xsd:boolean"/>
<xsd:element name="DpaDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:DpaDocumentId" minOccurs="0"/>
<xsd:element ref="my:DpaProperty" minOccurs="0"/>
<xsd:element ref="my:PatientAdv" minOccurs="0"/>
<xsd:element ref="my:LivingWill" minOccurs="0"/>
<xsd:element ref="my:HipaaConsent" minOccurs="0"/>
<xsd:element ref="my:HipaaAuthorization" minOccurs="0"/>
<xsd:element ref="my:NavToDPA" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="DpaDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="DpaProperty" nillable="true" type="xsd:date"/>
<xsd:element name="PatientAdv" nillable="true" type="xsd:date"/>
<xsd:element name="LivingWill" nillable="true" type="xsd:date"/>
<xsd:element name="HipaaConsent" nillable="true" type="xsd:date"/>
<xsd:element name="HipaaAuthorization" nillable="true" type="xsd:date"/>
<xsd:element name="NavToDPA" nillable="true" type="xsd:boolean"/>
<xsd:element name="GovernmentDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:GovernmentDocumentId" minOccurs="0"/>
<xsd:element ref="my:Medicaid" minOccurs="0"/>
<xsd:element ref="my:SpecialNeedsTrust" minOccurs="0"/>
<xsd:element ref="my:NavToGovernment" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="GovernmentDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="Medicaid" nillable="true" type="xsd:date"/>
<xsd:element name="SpecialNeedsTrust" nillable="true" type="xsd:date"/>
<xsd:element name="NavToGovernment" nillable="true" type="xsd:boolean"/>
<xsd:element name="IrrevocableTrustDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:IrrevocableTrustDocumentId" minOccurs="0"/>
<xsd:element ref="my:Age21" minOccurs="0"/>
<xsd:element ref="my:CrummeyInsurance" minOccurs="0"/>
<xsd:element ref="my:CrummeyNonInsurance" minOccurs="0"/>
<xsd:element ref="my:CharitableRemainder" minOccurs="0"/>
<xsd:element ref="my:CharitableLead" minOccurs="0"/>
<xsd:element ref="my:GenSkipping" minOccurs="0"/>
<xsd:element ref="my:ItQprt" minOccurs="0"/>
<xsd:element ref="my:ItGrat" minOccurs="0"/>
<xsd:element ref="my:DefGrantorTrust" minOccurs="0"/>
<xsd:element ref="my:NavToIrrevocable" minOccurs="0"/>
<xsd:element ref="my:Amendments" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="IrrevocableTrustDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="Age21" nillable="true" type="xsd:date"/>
<xsd:element name="CrummeyInsurance" nillable="true" type="xsd:date"/>
<xsd:element name="CrummeyNonInsurance" nillable="true" type="xsd:date"/>
<xsd:element name="CharitableRemainder" nillable="true" type="xsd:date"/>
<xsd:element name="CharitableLead" nillable="true" type="xsd:date"/>
<xsd:element name="GenSkipping" nillable="true" type="xsd:date"/>
<xsd:element name="ItQprt" nillable="true" type="xsd:date"/>
<xsd:element name="ItGrat" nillable="true" type="xsd:date"/>
<xsd:element name="DefGrantorTrust" nillable="true" type="xsd:date"/>
<xsd:element name="NavToIrrevocable" nillable="true" type="xsd:boolean"/>
<xsd:element name="MaritalDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:MaritalDocumentId" minOccurs="0"/>
<xsd:element ref="my:PreNuptual" minOccurs="0"/>
<xsd:element ref="my:PostNuptual" minOccurs="0"/>
<xsd:element ref="my:NavToMarital" minOccurs="0"/>
<xsd:element ref="my:Amendments" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MaritalDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="PreNuptual" nillable="true" type="xsd:date"/>
<xsd:element name="PostNuptual" nillable="true" type="xsd:date"/>
<xsd:element name="NavToMarital" nillable="true" type="xsd:boolean"/>
<xsd:element name="Matters">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:ClientID" minOccurs="0"/>
<xsd:element ref="my:MatterCode" minOccurs="0"/>
<xsd:element ref="my:MatterNotes" minOccurs="0"/>
<xsd:element ref="my:MatterType" minOccurs="0"/>
<xsd:element ref="my:IndustryCode" minOccurs="0"/>
<xsd:element ref="my:MJEnterpriseIDRelatedMaser" minOccurs="0"/>
<xsd:element ref="my:NavToMatters" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ClientID" type="my:requiredString"/>
<xsd:element name="MatterCode" type="my:requiredString"/>
<xsd:element name="MatterNotes" type="xsd:string"/>
<xsd:element name="MatterType" type="xsd:string"/>
<xsd:element name="IndustryCode" type="my:requiredString"/>
<xsd:element name="MJEnterpriseIDRelatedMaser" type="xsd:string"/>
<xsd:element name="NavToMatters" nillable="true" type="xsd:boolean"/>
<xsd:element name="MiscellaneousDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:MiscellaneousDocumentId" minOccurs="0"/>
<xsd:element ref="my:CertificateOfTrust" minOccurs="0"/>
<xsd:element ref="my:Transfer" minOccurs="0"/>
<xsd:element ref="my:Deeds" minOccurs="0"/>
<xsd:element ref="my:AgencyAgreement" minOccurs="0"/>
<xsd:element ref="my:RevOfTrust" minOccurs="0"/>
<xsd:element ref="my:Stock" minOccurs="0"/>
<xsd:element ref="my:AssgnOfLlc" minOccurs="0"/>
<xsd:element ref="my:NavToMisc" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="MiscellaneousDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="CertificateOfTrust" nillable="true" type="xsd:date"/>
<xsd:element name="Transfer" nillable="true" type="xsd:date"/>
<xsd:element name="Deeds" nillable="true" type="xsd:date"/>
<xsd:element name="AgencyAgreement" nillable="true" type="xsd:date"/>
<xsd:element name="RevOfTrust" nillable="true" type="xsd:date"/>
<xsd:element name="Stock" nillable="true" type="xsd:date"/>
<xsd:element name="AssgnOfLlc" nillable="true" type="xsd:date"/>
<xsd:element name="NavToMisc" nillable="true" type="xsd:boolean"/>
<xsd:element name="NonTaxTrustDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:NonTaxTrustDocumentId" minOccurs="0"/>
<xsd:element ref="my:NonTax" minOccurs="0"/>
<xsd:element ref="my:Disabled" minOccurs="0"/>
<xsd:element ref="my:NavToNonTax" minOccurs="0"/>
<xsd:element ref="my:Amendments" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NonTaxTrustDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="NonTax" nillable="true" type="xsd:date"/>
<xsd:element name="Disabled" nillable="true" type="xsd:date"/>
<xsd:element name="NavToNonTax" nillable="true" type="xsd:boolean"/>
<xsd:element name="OtherCodes">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:lu_group" minOccurs="0"/>
<xsd:element ref="my:lu_Type" minOccurs="0"/>
<xsd:element ref="my:Code" minOccurs="0"/>
<xsd:element ref="my:Notes" minOccurs="0"/>
<xsd:element ref="my:Value" minOccurs="0"/>
<xsd:element ref="my:StartDate" minOccurs="0"/>
<xsd:element ref="my:OwnerID" minOccurs="0"/>
<xsd:element ref="my:YesNoFlag" minOccurs="0"/>
<xsd:element ref="my:MJEnterpriseIDRelatedMaster" minOccurs="0"/>
<xsd:element ref="my:NavToOtherCodes" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="lu_group" type="xsd:string"/>
<xsd:element name="lu_Type" type="xsd:string"/>
<xsd:element name="Code" type="my:requiredString"/>
<xsd:element name="Notes" type="xsd:string"/>
<xsd:element name="Value" type="xsd:string"/>
<xsd:element name="StartDate" nillable="true" type="xsd:date"/>
<xsd:element name="OwnerID" type="xsd:string"/>
<xsd:element name="YesNoFlag" type="xsd:string"/>
<xsd:element name="MJEnterpriseIDRelatedMaster" type="xsd:string"/>
<xsd:element name="NavToOtherCodes" nillable="true" type="xsd:boolean"/>
<xsd:element name="OtherCommentDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:OtherCommentDocumentId" minOccurs="0"/>
<xsd:element ref="my:OtherOrComment" minOccurs="0"/>
<xsd:element ref="my:OthAgencyAgreement" minOccurs="0"/>
<xsd:element ref="my:AssignmentOfMembership" minOccurs="0"/>
<xsd:element ref="my:Hipaa" minOccurs="0"/>
<xsd:element ref="my:NavToOther" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OtherCommentDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="OtherOrComment" type="xsd:string"/>
<xsd:element name="OthAgencyAgreement" nillable="true" type="xsd:date"/>
<xsd:element name="AssignmentOfMembership" nillable="true" type="xsd:date"/>
<xsd:element name="Hipaa" nillable="true" type="xsd:date"/>
<xsd:element name="NavToOther" nillable="true" type="xsd:boolean"/>
<xsd:element name="PepContact">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:PepContactId" minOccurs="0"/>
<xsd:element ref="my:ClientNumber" minOccurs="0"/>
<xsd:element ref="my:MatterNumber" minOccurs="0"/>
<xsd:element ref="my:RelatedNumber" minOccurs="0"/>
<xsd:element ref="my:LastName" minOccurs="0"/>
<xsd:element ref="my:FirstName" minOccurs="0"/>
<xsd:element ref="my:NewClient" minOccurs="0"/>
<xsd:element ref="my:FormerlyKnownAs" minOccurs="0"/>
<xsd:element ref="my:LetterName" minOccurs="0"/>
<xsd:element ref="my:SendMailing" minOccurs="0"/>
<xsd:element ref="my:Occupation" minOccurs="0"/>
<xsd:element ref="my:BirthDate" minOccurs="0"/>
<xsd:element ref="my:DateOfDeath" minOccurs="0"/>
<xsd:element ref="my:IsLiving" minOccurs="0"/>
<xsd:element ref="my:UsCitizen" minOccurs="0"/>
<xsd:element ref="my:MjscAttrny1" minOccurs="0"/>
<xsd:element ref="my:MjscAttrny2" minOccurs="0"/>
<xsd:element ref="my:MjscOffice" minOccurs="0"/>
<xsd:element ref="my:EstateTaxable" minOccurs="0"/>
<xsd:element ref="my:Salutation" minOccurs="0"/>
<xsd:element ref="my:MJSCOriginals" minOccurs="0"/>
<xsd:element ref="my:OriginalsWhere" minOccurs="0"/>
<xsd:element ref="my:NavToPepContacts" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PepContactId" nillable="true" type="xsd:integer"/>
<xsd:element name="ClientNumber" type="xsd:string"/>
<xsd:element name="MatterNumber" nillable="true" type="xsd:integer"/>
<xsd:element name="RelatedNumber" type="xsd:string"/>
<xsd:element name="LastName" type="xsd:string"/>
<xsd:element name="FirstName" type="xsd:string"/>
<xsd:element name="NewClient" nillable="true" type="xsd:boolean"/>
<xsd:element name="FormerlyKnownAs" type="xsd:string"/>
<xsd:element name="LetterName" type="xsd:string"/>
<xsd:element name="SendMailing" nillable="true" type="xsd:boolean"/>
<xsd:element name="Occupation" type="xsd:string"/>
<xsd:element name="BirthDate" nillable="true" type="xsd:date"/>
<xsd:element name="DateOfDeath" nillable="true" type="xsd:date"/>
<xsd:element name="IsLiving" nillable="true" type="xsd:boolean"/>
<xsd:element name="UsCitizen" nillable="true" type="xsd:boolean"/>
<xsd:element name="MjscAttrny1" type="my:requiredString"/>
<xsd:element name="MjscAttrny2" type="xsd:string"/>
<xsd:element name="MjscOffice" type="xsd:string"/>
<xsd:element name="EstateTaxable" nillable="true" type="xsd:boolean"/>
<xsd:element name="Salutation" type="xsd:string"/>
<xsd:element name="MJSCOriginals" nillable="true" type="xsd:boolean"/>
<xsd:element name="OriginalsWhere" type="xsd:string"/>
<xsd:element name="NavToPepContacts" nillable="true" type="xsd:boolean"/>
<xsd:element name="PepMJSCContacts">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:PepLawContactsId" minOccurs="0"/>
<xsd:element ref="my:PersonalRep" minOccurs="0"/>
<xsd:element ref="my:SuccessorPr" minOccurs="0"/>
<xsd:element ref="my:Trustee" minOccurs="0"/>
<xsd:element ref="my:SuccessorTrustee" minOccurs="0"/>
<xsd:element ref="my:DurablePowerAgent" minOccurs="0"/>
<xsd:element ref="my:SuccessorDpa" minOccurs="0"/>
<xsd:element ref="my:NavToPepLawyers" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PepLawContactsId" nillable="true" type="xsd:integer"/>
<xsd:element name="PersonalRep" type="xsd:string"/>
<xsd:element name="SuccessorPr" type="xsd:string"/>
<xsd:element name="Trustee" type="xsd:string"/>
<xsd:element name="SuccessorTrustee" type="xsd:string"/>
<xsd:element name="DurablePowerAgent" type="xsd:string"/>
<xsd:element name="SuccessorDpa" type="xsd:string"/>
<xsd:element name="NavToPepLawyers" nillable="true" type="xsd:boolean"/>
<xsd:element name="RevocTaxTrustDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:RevocTaxTrustDocumentId" minOccurs="0"/>
<xsd:element ref="my:MaritalDed" minOccurs="0"/>
<xsd:element ref="my:RttPoa" minOccurs="0"/>
<xsd:element ref="my:RttQtip" minOccurs="0"/>
<xsd:element ref="my:RttPow" minOccurs="0"/>
<xsd:element ref="my:RttMaximum" minOccurs="0"/>
<xsd:element ref="my:Rtt50" minOccurs="0"/>
<xsd:element ref="my:CharitableDed" minOccurs="0"/>
<xsd:element ref="my:RevGenSkipping" minOccurs="0"/>
<xsd:element ref="my:NavToRevocable" minOccurs="0"/>
<xsd:element ref="my:Amendments" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RevocTaxTrustDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="MaritalDed" nillable="true" type="xsd:date"/>
<xsd:element name="RttPoa" nillable="true" type="xsd:date"/>
<xsd:element name="RttQtip" nillable="true" type="xsd:date"/>
<xsd:element name="RttPow" nillable="true" type="xsd:date"/>
<xsd:element name="RttMaximum" nillable="true" type="xsd:date"/>
<xsd:element name="Rtt50" nillable="true" type="xsd:date"/>
<xsd:element name="CharitableDed" nillable="true" type="xsd:date"/>
<xsd:element name="RevGenSkipping" nillable="true" type="xsd:date"/>
<xsd:element name="NavToRevocable" nillable="true" type="xsd:boolean"/>
<xsd:element name="WillDocuments">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:WillDocumentId" minOccurs="0"/>
<xsd:element ref="my:LWT" minOccurs="0"/>
<xsd:element ref="my:PersonalMemo" minOccurs="0"/>
<xsd:element ref="my:TestamentaryTrust" minOccurs="0"/>
<xsd:element ref="my:NavToWills" minOccurs="0"/>
<xsd:element ref="my:Codicils" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="WillDocumentId" nillable="true" type="xsd:integer"/>
<xsd:element name="LWT" nillable="true" type="xsd:date"/>
<xsd:element name="PersonalMemo" nillable="true" type="xsd:date"/>
<xsd:element name="TestamentaryTrust" nillable="true" type="xsd:date"/>
<xsd:element name="NavToWills" nillable="true" type="xsd:boolean"/>
<xsd:element name="Codicils">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="my:CodicilID" minOccurs="0"/>
<xsd:element ref="my:WillDocumentID" minOccurs="0"/>
<xsd:element ref="my:CodicilDate" minOccurs="0"/>
<xsd:element ref="my:CodicilDescription" minOccurs="0"/>
<xsd:element ref="my:CodicilNote" minOccurs="0"/>
<xsd:element ref="my:NavToYesNo" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="CodicilID" nillable="true" type="xsd:integer"/>
<xsd:element name="WillDocumentID" nillable="true" type="xsd:integer"/>
<xsd:element name="CodicilDate" nillable="true" type="xsd:date"/>
<xsd:element name="CodicilDescription" nillable="true" type="xsd:date"/>
<xsd:element name="CodicilNote" type="xsd:string"/>
<xsd:element name="NavToYesNo" nillable="true" type="xsd:boolean"/>
<xsd:simpleType name="requiredString">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="requiredAnyURI">
<xsd:restriction base="xsd:anyURI">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="requiredBase64Binary">
<xsd:restriction base="xsd:base64Binary">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

Postnext
Alberto MassariSubject: Easiest way to split many documents from one large document
Author: Alberto Massari
Date: 10 Oct 2007 11:47 AM
Hi Bob,
one approach is to create an XSLT 2.0 stylesheet and, using mapper, map the fields of the input document with the PepContact element from the schema; create a for-each block from 'estate' to 'PepContact', then map cl_number to ClientNumber, cl1_alive with IsLiving and so on (with some data transformation in the middle, to change the "Y" values to "true"). Once you have the data layout you need, wrap the children nodes of the xsl:for-each within a <xsl:result-document href="estate-{cl_number}.xml"> element, and this will send the single clients into separate files.

Hope this helps,
Alberto

Postnext
Bob ChauvinSubject: Easiest way to split many documents from one large document
Author: Bob Chauvin
Date: 10 Oct 2007 12:10 PM
Here's what I have so far. I am getting a java.lang.OutOfMemoryError: Java jeap space.

<xsl:for-each-group select="estate" group-starting-with="dataroot">
<xsl:result-document href="estate-{lname}-{position()}.xml" format="section-format" validation="strip">


<a:myFields>
<a:Pep_Contact>
<a:LastName>
<xsl:value-of select="dataroot/estate/CL1_NAME"/>
</a:LastName>
</a:Pep_Contact>
<a:Pep_Contact>
<a:FirstName>
<xsl:value-of select="dataroot/estate/FIRST"/>
</a:FirstName>
</a:Pep_Contact>

<a:Addresses>
<a:AddressStreet>
<xsl:value-of select="dataroot/estate/ADD1_L1"/>
</a:AddressStreet>
</a:Addresses>
<a:Addresses>
<a:AddressPostOfficeBox>
<xsl:value-of select="dataroot/estate/ADD1_L2"/>
</a:AddressPostOfficeBox>
</a:Addresses>


<a:Pep_Contact>
<a:SendMailing>
<xsl:value-of select="dataroot/estate/MAILINGS"/>
</a:SendMailing>
</a:Pep_Contact>
<a:Pep_Contact>
<a:Occupation>
<xsl:value-of select="dataroot/estate/OCCUPATION"/>
</a:Occupation>
</a:Pep_Contact>
<a:Pep_Contact>
<a:BirthDate>
<xsl:value-of select="dataroot/estate/CL1_DOB"/>
</a:BirthDate>
</a:Pep_Contact>
<a:Pep_Contact>
<a:IsLiving>
<xsl:value-of select="dataroot/estate/CL1_ALIVE"/>
</a:IsLiving>
</a:Pep_Contact>
<a:Pep_Contact>
<a:DateofDeath>
<xsl:value-of select="dataroot/estate/CL1_DOD"/>
</a:DateofDeath>
</a:Pep_Contact>
<a:Pep_Contact>
<a:UsCitizen>
<xsl:value-of select="dataroot/estate/CL1_USA"/>
</a:UsCitizen>
</a:Pep_Contact>
<a:Pep_Contact>
<a:MJSCAttorney1>
<xsl:value-of select="dataroot/estate/MJSC_ATT1"/>
</a:MJSCAttorney1>
</a:Pep_Contact>
<a:Pep_Contact>
<a:MJSCAttorney2>
<xsl:value-of select="dataroot/estate/MJSC_ATT2"/>
</a:MJSCAttorney2>
</a:Pep_Contact>
<a:Pep_Contact>
<a:MJOffice>
<xsl:value-of select="dataroot/estate/MJSC_OFF"/>
</a:MJOffice>
</a:Pep_Contact>

<a:Pep_Contact>
<a:RelatedNumber>
<xsl:value-of select="dataroot/estate/RELATED_NO"/>
</a:RelatedNumber>
</a:Pep_Contact>

<a:Pep_Contact>
<a:EstateTaxable>
<xsl:value-of select="dataroot/estate/TAXABLE"/>
</a:EstateTaxable>
</a:Pep_Contact>


<a:Pep_Contact>
<a:Salutation>
<xsl:value-of select="dataroot/estate/DEAR"/>
</a:Salutation>
</a:Pep_Contact>
<a:Pep_Contact>
<a:MJOriginals>
<xsl:value-of select="dataroot/estate/MJSC_VAULT"/>
</a:MJOriginals>
</a:Pep_Contact>
<a:Pep_Contact>
<a:OriginalsWhere>
<xsl:value-of select="dataroot/estate/REPOSITORY"/>
</a:OriginalsWhere>
</a:Pep_Contact>

<a:PepMJSCContacts>
<a:PersonalRep>
<xsl:value-of select="dataroot/estate/PR_NAME"/>
</a:PersonalRep>
</a:PepMJSCContacts>

<a:PepMJSCContacts>
<a:Successor_PR>
<xsl:value-of select="dataroot/estate/SPR_NAME"/>
</a:Successor_PR>
</a:PepMJSCContacts>

<a:PepMJSCContacts>
<a:Trustee>
<xsl:value-of select="dataroot/estate/TEE_NAME"/>
</a:Trustee>
</a:PepMJSCContacts>

<a:PepMJSCContacts>
<a:SuccessorTrustee>
<xsl:value-of select="dataroot/estate/S_TEE_NAME"/>
</a:SuccessorTrustee>
</a:PepMJSCContacts>

<a:PepMJSCContacts>
<a:DurablePowerAgent>
<xsl:value-of select="dataroot/estate/POA_AG_NAM"/>
</a:DurablePowerAgent>
</a:PepMJSCContacts>

<a:PepMJSCContacts>
<a:SuccessorDPa>
<xsl:value-of select="dataroot/estate/S_POA_AG_N"/>
</a:SuccessorDPa>
</a:PepMJSCContacts>

<a:WillDocuments>
<a:LWT>
<xsl:value-of select="dataroot/estate/L_WILL_DAT"/>
</a:LWT>
</a:WillDocuments>

<a:WillDocuments>
<a:CodicilDate>
<xsl:value-of select="dataroot/estate/COD_1_DATE"/>
</a:CodicilDate>
</a:WillDocuments>

<a:WillDocuments>
<a:PersonalMemo>
<xsl:value-of select="dataroot/estate/P_MEMO_DAT"/>
</a:PersonalMemo>
</a:WillDocuments>

<a:WillDocuments>
<a:CodicilDate>
<xsl:value-of select="dataroot/estate/COD_2_DATE"/>
</a:CodicilDate>
</a:WillDocuments>

<a:WillDocuments>
<a:CodicilDate>
<xsl:value-of select="dataroot/estate/COD_3_DATE"/>
</a:CodicilDate>
</a:WillDocuments>

<a:WillDocuments>
<a:CodicilDate>
<xsl:value-of select="dataroot/estate/COD_4_DATE"/>
</a:CodicilDate>
</a:WillDocuments>

<a:WillDocuments>
<a:CodicilDate>
<xsl:value-of select="dataroot/estate/COD_5_DATE"/>
</a:CodicilDate>
</a:WillDocuments>

<a:DpaDocuments>
<a:DPAProperty>
<xsl:value-of select="dataroot/estate/POA_PROP_D"/>
</a:DPAProperty>
</a:DpaDocuments>

<a:DpaDocuments>
<a:PatientAdv>
<xsl:value-of select="dataroot/estate/POA_HEAL_D"/>
</a:PatientAdv>
</a:DpaDocuments>

<a:DpaDocuments>
<a:LivingWill>
<xsl:value-of select="dataroot/estate/LIV_WILL_D"/>
</a:LivingWill>
</a:DpaDocuments>

<a:DpaDocuments>
<a:HipaaConsent>
<xsl:value-of select="dataroot/estate/HIPAA_D"/>
</a:HipaaConsent>
</a:DpaDocuments>

<a:DpaDocuments>
<a:HipaaAuthorization>
<xsl:value-of select="dataroot/estate/HIPAA_AUTH_D"/>
</a:HipaaAuthorization>
</a:DpaDocuments>

<a:MaritalDocuments>
<a:PreNuptial>
<xsl:value-of select="dataroot/estate/PRENUP_DAT"/>
</a:PreNuptial>
</a:MaritalDocuments>

<a:MaritalDocuments>
<a:PostNuptial>
<xsl:value-of select="dataroot/estate/POSTNUP_DA"/>
</a:PostNuptial>
</a:MaritalDocuments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/M_AM1_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/M_AM2_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/M_AM3_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/M_AM4_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/M_AM5_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:NonTaxTrustDocuments>
<a:NonTax>
<xsl:value-of select="dataroot/estate/TRUST_DATE"/>
</a:NonTax>
</a:NonTaxTrustDocuments>

<a:NonTaxTrustDocuments>
<a:Disabled>
<xsl:value-of select="dataroot/estate/DIS_TST_DA"/>
</a:Disabled>
</a:NonTaxTrustDocuments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/T_AM1_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/T_AM2_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/T_AM3_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/T_AM4_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/T_AM5_DATE"/>
</a:AmendmentDate>
</a:Amendments>

<a:RevocTaxTrustDocuments>
<a:RTTPOA>
<xsl:value-of select="dataroot/estate/RTT_POA_D"/>
</a:RTTPOA>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:RTTQTIP>
<xsl:value-of select="dataroot/estate/RTT_QTIP_D"/>
</a:RTTQTIP>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:RTTPOW>
<xsl:value-of select="dataroot/estate/RTT_POW_D"/>
</a:RTTPOW>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:RTTMaximum>
<xsl:value-of select="dataroot/estate/RTT_MAX_D"/>
</a:RTTMaximum>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:Rtt50>
<xsl:value-of select="dataroot/estate/RTT_50_D"/>
</a:Rtt50>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:CharitableDed>
<xsl:value-of select="dataroot/estate/RTT_CHAR_D"/>
</a:CharitableDed>
</a:RevocTaxTrustDocuments>

<a:RevocTaxTrustDocuments>
<a:GenSkipping>
<xsl:value-of select="dataroot/estate/RTT_GENS_D"/>
</a:GenSkipping>
</a:RevocTaxTrustDocuments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/RTT_AM1_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/RTT_AM2_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/RTT_AM3_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/RTT_AM4_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/RTT_AM5_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:IrrevocableTrustDocuments>
<a:Age21>
<xsl:value-of select="dataroot/estate/IRR_21_D"/>
</a:Age21>
</a:IrrevocableTrustDocuments>

<a:IrrevocableTrustDocuments>
<a:CrummeyInsurance>
<xsl:value-of select="dataroot/estate/IRR_CRUM_D"/>
</a:CrummeyInsurance>
</a:IrrevocableTrustDocuments>

<a:IrrevocableTrustDocuments>
<a:CrummeyNonInsurance>
<xsl:value-of select="dataroot/estate/IRR_CRT_D"/>
</a:CrummeyNonInsurance>
</a:IrrevocableTrustDocuments>



<a:IrrevocableTrustDocuments>
<a:GenSkipping>
<xsl:value-of select="dataroot/estate/IRR_GENS_D"/>
</a:GenSkipping>
</a:IrrevocableTrustDocuments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/IRR_AM1_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/IRR_AM2_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/IRR_AM3_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/IRR_AM4_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:Amendments>
<a:AmendmentDate>
<xsl:value-of select="dataroot/estate/IRR_AM5_D"/>
</a:AmendmentDate>
</a:Amendments>

<a:MiscellaneousDocuments>
<a:CertificateOfTrust>
<xsl:value-of select="dataroot/estate/CERT_DATE"/>
</a:CertificateOfTrust>
</a:MiscellaneousDocuments>

<a:MiscellaneousDocuments>
<a:Transfer>
<xsl:value-of select="dataroot/estate/TRANS_DATE"/>
</a:Transfer>
</a:MiscellaneousDocuments>

<a:MiscellaneousDocuments>
<a:Deeds>
<xsl:value-of select="dataroot/estate/DEEDS_D"/>
</a:Deeds>
</a:MiscellaneousDocuments>

<a:MiscellaneousDocuments>
<a:AgencyAgreement>
<xsl:value-of select="dataroot/estate/AGENCY_A_D"/>
</a:AgencyAgreement>
</a:MiscellaneousDocuments>

<a:MiscellaneousDocuments>
<a:RevocationOfTrust>
<xsl:value-of select="dataroot/estate/RESIGNDATE"/>
</a:RevocationOfTrust>
</a:MiscellaneousDocuments>

<a:MiscellaneousDocuments>
<a:Stocks>
<xsl:value-of select="dataroot/estate/STOCKS_D"/>
</a:Stocks>
</a:MiscellaneousDocuments>
<a:MiscellaneousDocuments>
<a:GenSkipping>
<xsl:value-of select="dataroot/estate/GEN_SKIP"/>
</a:GenSkipping>
</a:MiscellaneousDocuments>

<a:PepContact>
<a:ClientNumber>
<xsl:value-of select="dataroot/estate/cl_number"/>
</a:ClientNumber>
<a:MatterNumber>
<xsl:value-of select="dataroot/estate/cl_number"/>
</a:MatterNumber>
<a:RelatedNumber>
<xsl:value-of select="dataroot/estate/related_no"/>
</a:RelatedNumber>
<a:FirstName>
<xsl:value-of select="dataroot/estate/first"/>
</a:FirstName>
<a:LetterName>
<xsl:value-of select="dataroot/estate/mail_1"/>
</a:LetterName>
<a:SendMailing>
<xsl:value-of select="dataroot/estate/mailings"/>
</a:SendMailing>
<a:BirthDate>
<xsl:value-of select="dataroot/estate/cl1_dob"/>
</a:BirthDate>
<a:DateOfDeath>
<xsl:value-of select="dataroot/estate/cl1_dod"/>
</a:DateOfDeath>
<a:IsLiving>
<xsl:value-of select="dataroot/estate/cl1_alive"/>
</a:IsLiving>
<a:UsCitizen>
<xsl:value-of select="dataroot/estate/cl1_usa"/>
</a:UsCitizen>
<a:MjscAttrny1>
<xsl:value-of select="dataroot/estate/mjsc_att1"/>
</a:MjscAttrny1>
<a:MjscAttrny2>
<xsl:value-of select="dataroot/estate/mjsc_att2"/>
</a:MjscAttrny2>
<a:MjscOffice>
<xsl:value-of select="dataroot/estate/mjsc_off"/>
</a:MjscOffice>
<a:EstateTaxable>
<xsl:value-of select="dataroot/estate/taxable"/>
</a:EstateTaxable>
<a:Salutation>
<xsl:value-of select="dataroot/estate/dear"/>
</a:Salutation>
</a:PepContact>
<a:PepMJSCContacts>
<a:PersonalRep>
<xsl:value-of select="dataroot/estate/pr_name"/>
</a:PersonalRep>
<a:SuccessorPr>
<xsl:value-of select="dataroot/estate/spr_name"/>
</a:SuccessorPr>
<a:Trustee>
<xsl:value-of select="dataroot/estate/tee_name"/>
</a:Trustee>
<a:SuccessorTrustee>
<xsl:value-of select="dataroot/estate/s_tee_name"/>
</a:SuccessorTrustee>
<a:DurablePowerAgent>
<xsl:value-of select="dataroot/estate/poa_ag_nam"/>
</a:DurablePowerAgent>
<a:SuccessorDpa>
<xsl:value-of select="dataroot/estate/s_poa_ag_n"/>
</a:SuccessorDpa>
</a:PepMJSCContacts>
<a:WillDocuments>
<a:LWT>
<xsl:value-of select="dataroot/estate/l_will_dat"/>
</a:LWT>
</a:WillDocuments>
</a:myFields>
</xsl:result-document>
</xsl:for-each-group>

</xsl:template>
</xsl:stylesheet>

Postnext
Alberto MassariSubject: Easiest way to split many documents from one large document
Author: Alberto Massari
Date: 10 Oct 2007 12:21 PM
Hi Bob,
have you tried adding a -Xmx600m option to the JVM command line in the Java Virtual Machine section of the Tools | Options dialog? That would raise the maximum amount of memory that Saxon is allowed to use while grouping your 67Mb file.

Hope this helps,
Alberto

Postnext
Bob ChauvinSubject: Easiest way to split many documents from one large document
Author: Bob Chauvin
Date: 10 Oct 2007 12:28 PM
I'll try that. I created a smaller file for testing and the error went away.

Also for follow-up, does this look right? Specifically the template and for-each statements.


<xsl:output name="section-format" method="xml"" indent="no" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<xsl:template match="/">

<xsl:for-each-group select="estate" group-starting-with="dataroot">
<xsl:result-document href="estate-{lname}-{position()}.xml" format="section-format" validation="strip">

Postnext
Bob ChauvinSubject: Easiest way to split many documents from one large document
Author: Bob Chauvin
Date: 10 Oct 2007 12:58 PM
Originally Posted: 10 Oct 2007 12:44 PM
The transform doesn't appear to be looping through any rows, so I suspect my for-each-group is wrong.

Also, is the template needed?

Suggestions?

Posttop
Bob ChauvinSubject: Easiest way to split many documents from one large document
Author: Bob Chauvin
Date: 10 Oct 2007 02:15 PM
Changed the for to <xsl:for-each select="/*/estate">
and works great.

Thanks for your help.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.