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

create escaped(?) html of some nodes

Subject: create escaped(?) html of some nodes
From: "Jan Limpens" <jan@xxxxxxxxxxx>
Date: Sun, 8 Oct 2006 22:04:52 -0300
escaped html
Hi,

I need help creating an encoded html string from some nodes of a
document, while leaving the others untouched
I have got a xml file as such:

<?xml version="1.0" encoding="utf-8"?>
<Entry pubdate="2006-10-08T20:25:36.65625-03:00" id="test"
xmlns="http://com/entry">
 <navi:show-in-list>true</navi:show-in-list>
 <navi:order>99</navi:order>
 <Thumbnail src="xxx.gif" />
 <Version xml:lang="en">
   <Title>enTitle</Title>
   <NavigationTitle>enNavTitle</NavigationTitle>
   <Body>
     <Para>Hello Dolly!</Para>
   </Body>
 </Version>
 <Version xml:lang="de">
   <Title>2deTitle</Title>
   <NavigationTitle>2deNavTitle</NavigationTitle>
   <Body>
     <Para>Hallo Doris!</Para>
   </Body>
 </Version>
 <Slideshow>
   <Image src="sss.gif">
     <ImageInfo xml:lang="en">
       <Title>Title</Title>
       <Description>Description</Description>
     </ImageInfo>
   </Image>
   <Image src="2222.gif">
     <ImageInfo xml:lang="en">
       <Title>Title</Title>
     </ImageInfo>
   </Image>
 </Slideshow>
</Entry>

and transform it to

<?xml version="1.0" encoding="utf-8"?>
<Entry xmlns:navi="http//limpens.com/navigation"
pubdate="2006-10-08T20:25:36.65625-03:00" id="test"
xmlns="http://limpens.com/entry">
 <navi:show-in-list>true</navi:show-in-list>
 <navi:order>99</navi:order>
 <Thumbnail src="xxx.gif" />
 <Version xml:lang="en">
   <Title>enTitle</Title>
   <NavigationTitle>enNavTitle</NavigationTitle>
   <Body>&lt;p&gt;Hello Dolly!&lt;/p&gt;</Body>
 </Version>
 <Version xml:lang="de">
   <Title>2deTitle</Title>
   <NavigationTitle>2deNavTitle</NavigationTitle>
   <Body>&lt;p&gt;Hallo Doris!&lt;/p&gt;</Body>
 </Version>
 <Slideshow>
   <Image src="sss.gif">
     <ImageInfo xml:lang="en">
       <Title>Title</Title>
       <Description>Description</Description>
     </ImageInfo>
   </Image>
   <Image src="2222.gif">
     <ImageInfo xml:lang="en">
       <Title>Title</Title>
     </ImageInfo>
   </Image>
 </Slideshow>
</Entry>

How can I do this? I am using the .net 2.0 xslt implementation. Big
thanks in advance,

--
Jan
www.limpens.com

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.