[Home] [By Thread] [By Date] [Recent Entries]
Sara,
At 01:50 PM 12/3/2009, you wrote: I've been wandering through the archives and other searches and so far have not found exactly what I am hoping to find. I need to write an XSLT stylesheet that accepts an unknown XML document and flattens the hierarchy to a two-dimensional row/columns structure. It's hard to say without more information about what you mean by a row/columns structure. A mockup of sample input and output data would be nice. Also, some indication of what you're going to do with these transformation results would help us to guess what sorts of features or facilities would be appropriate. At the very least, this flattens an arbitrary XML document: <xsl:template match="*">
<xsl:copy>
<xsl:apply-templates select="text()"/>
</xsl:copy>
<xsl:apply-templates select="*"/>
</xsl:template>... but run this and you'll see how much information is lost. Cheers, Wendell
|

Cart



