Subject: Re: [xsl] Group various elements with empty tags (flat XML structure to hierarcial XML) From: "M Glenties" <mglenties@xxxxxxxxxxx> Date: Fri, 07 Jan 2005 13:45:53 -0500 |
<xsl:template match="id|type|count|language"> <xsl:copy-of select="." /> </xsl:template>
From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Group various elements with empty tags (flat XML structure to hierarcial XML)
Date: Fri, 7 Jan 2005 14:29:18 GMT
> Yes, but isn4t that the default template beahviour?
No, the default templates never produce elements in the result, they just recursively process the children meaning that a stylesheet with no templates will extract all the text content of an xml file, discarding any element markup.
David
________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Group various elements wi, David Carlisle | Thread | Re: [xsl] Group various elements wi, António Mota |
RE: [xsl] mixed content nodes quest, Jim Neff | Date | Re: [xsl] Group various elements wi, António Mota |
Month |