Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Help with XSLT please

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 6/8/2008 12:03:00 PM

"KP" <potter_kirk@h...> wrote in message 
news:f26409bd-f282-4a32-9747-abeba725f5c1@c......
> Hi All,
>
> The following XML fragment is a simplification of a problem I'm trying
> to solve.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <document>
> <index><![CDATA[<div class="index">]]>
> <partref/><![CDATA[</div>]]>
> <partref/>
> </index>
> <part>
> Part1
> </part>
> <part>
> Part2
> </part>
> </document>
>
> I want to render this as
>
> <div class="index>Part1Part2</div>
>
> Can anyone give me a start on the XLS for this please?
>
> Thanks in advance,
>
> Kirk
That XML is an abomination.
When you say you want to render as:
<div class="index>Part1Part2</div>
do you mean that the div class="index" is always like that or are you taking 
it from the CDATA section without the <partref/> text?
Is there any additional logic as to which part elements' contents are 
include or is it just all of them?

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name
 



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent