Subject: [xsl] How do I keep the text seperate? From: "Mohammed Rahman" <mrahman@xxxxxxxxxxxx> Date: Tue, 26 Jun 2001 15:10:18 -0700 |
Hi all, I have a source xml like the following: <?xml version="1.0" encoding="utf-8"?> <book> <preface> <title> </title> <eid>EMP111111111</eid> <benefitType>MED</benefitType> <state>XX</state> <carrierName>Employee Benefit Plan</carrierName> <planCode>0001</planCode> </preface> <chapter> <title> <anchor id="Heading7" /> ELIGIBILITY, FUNDING, EFFECTIVE DATE AND TERMINATION PROVISIONS</title> <section name="S02.01"> <title> <anchor id="Heading22" /> Eligible Classes of Dependents.</title> <text name="P02.01.01"> <details>A Dependent is any one of the following persons: <R03> <emphasis role="bold">(<N03>1<\N03>)</emphasis> A covered Employee's Spouse and unmarried children from birth to the limiting age of <000I>19<\000I> years. The Dependent children must be primarily dependent upon the covered Employee for support and maintenance. These persons are excluded as Dependents: other individuals living in the covered Employee's home, but who are not eligible as defined; the legally separated or divorced former Spouse of the Employee; any person who is on active duty in any military service of any country; or any person who is covered under the Plan as an Employee. <KeywordsAdd> <emphasis role="bold">Dependent, Dependents, Child, Children</emphasis> </KeywordsAdd> <CategoryAdd> <emphasis role="bold">CAT135,CAT452,CAT532,CAT444</emphasis> </CategoryAdd> </details> <allAtr> <path> EMP111111111/1111111110001MEDXX/dCOC1111111110001MEDXX/S02/S02.01/P02.01.01< /path> <category> </category> <title>Dependents</title> <displayableName>Dependents</displayableName> <keywords>dependent, eligibility</keywords> <iconLarge> </iconLarge> <benefitType> </benefitType> <WebTemplate> </WebTemplate> <pageTitle> </pageTitle> <tableTitle>Dependents</tableTitle> <redirectURL> </redirectURL> <feedSource> </feedSource> <carrierName> </carrierName> </allAtr> </text> </section> </chapter> </book> How do I get the <KeywordsAdd> and <KeywordsAdd> from the <details> node and then concat that with <category> and <keywords> of <allAtr>? Please help.... The resulting xml would be: <?xml version="1.0" encoding="utf-8"?> <book> <preface> <title> </title> <eid>EMP111111111</eid> <benefitType>MED</benefitType> <state>XX</state> <carrierName>Employee Benefit Plan</carrierName> <planCode>0001</planCode> </preface> <chapter> <title> <anchor id="Heading7" /> ELIGIBILITY, FUNDING, EFFECTIVE DATE AND TERMINATION PROVISIONS</title> <section name="S02.01"> <title> <anchor id="Heading22" /> Eligible Classes of Dependents.</title> <text name="P02.01.01"> <details>A Dependent is any one of the following persons: <R03> <emphasis role="bold">(<N03>1<\N03>)</emphasis> A covered Employee's Spouse and unmarried children from birth to the limiting age of <000I>19<\000I> years. The Dependent children must be primarily dependent upon the covered Employee for support and maintenance. These persons are excluded as Dependents: other individuals living in the covered Employee's home, but who are not eligible as defined; the legally separated or divorced former Spouse of the Employee; any person who is on active duty in any military service of any country; or any person who is covered under the Plan as an Employee. <KeywordsAdd> <emphasis role="bold"></emphasis> </KeywordsAdd> <CategoryAdd> <emphasis role="bold"></emphasis> </CategoryAdd> </details> <allAtr> <path>EMP111111111/1111111110001MEDXX/dCOC1111111110001MEDXX/S02/S02.01/P02. 01.01</path> <category>CAT135,CAT452,CAT532,CAT444</category> <title>Dependents</title> <displayableName>Dependents</displayableName> <keywords>dependent, eligibility, Dependent, Dependents, Child, Children </keywords> <iconLarge> </iconLarge> <benefitType> </benefitType> <WebTemplate> </WebTemplate> <pageTitle> </pageTitle> <tableTitle>Dependents</tableTitle> <redirectURL> </redirectURL> <feedSource> </feedSource> <carrierName> </carrierName> </allAtr> </text> </section> </chapter> </book> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] useful extension to XSL??, Adam Van Den Hoven | Thread | Re: [xsl] How do I keep the text se, Adam Turoff |
Re: [xsl] How do I keep the text se, Adam Turoff | Date | RE: [xsl] Non-hierarchy XML -> hier, Paul R Brown |
Month |