User Profile

Collapse

Profile Sidebar

Collapse
xscape
xscape
Last Activity: May 16 '07, 04:01 PM
Joined: May 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi dorinbogdan,

    Thank you for the warm welcome!
    I think I have solved the problem - as you so rightly suggested, I used a for-each loop:

    Code:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    	<xsl:output method="xml" indent="yes"/>
    	
    		
    	<xsl:template match="/">
    ...
    See more | Go to post

    Leave a comment:


  • Using XSL to reformat XML by removing nested DIV elements but retaining text

    Hi all,

    I have an XML file which contains a load of nested divs. I'm trying to write some XSL to create a new XML file with all the excess divs removed, but I want to retain the content and place this in paragraph tags.

    Here is a snippet of the code:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <Content>
    	<div>
    		<div>this is some content</div>
    ...
    See more | Go to post
No activity results to display
Show More
Working...