|
Subject: RE: [xsl] Extracting Unique element names and attributes from a XML file [SEC=UNCLASSIFIED] From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 29 Oct 2008 10:45:29 -0400 |
saxon:evaluate seems quite unnecessary here (and will be a lot more expensive than necessary)....
<xsl:for-each-group select="//*" group-by="name()">
<xsl:text>

</xsl:text><!-- two new lines -->
<xsl:value-of select="current-grouping-key()"/>
<xsl:for-each-group select="current-group()/@*" group-by="name()">
<xsl:text>
 </xsl:text><!-- new line, indent -->
<xsl:value-of select="current-grouping-key()"/>
</xsl:for-each-group>
</xsl:for-each-group>Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Extracting Unique element, Michael Kay | Thread | [xsl] Counting when using xsl:key i, Peter Sherwood |
| Re: [xsl] Displaying Unique attribu, Wendell Piez | Date | Re: [xsl] XQuery Updates in XSLT, John Snelson |
| Month |