Subject: Re: [xsl] Conditional extraction of data From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 09 Nov 2004 12:05:16 -0500 |
Bradley, Peter wrote:
Of course! To simply pass through all the content in the data file, all I need is:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
</xsl:stylesheet>
The recursive processing; the default templates; these will take care of the rest.
Depends on what you mean by content. The default templates preserve the character data of the data file. Note that this includes character data in attributes, though you are not using them currently.
<xsl:template match="attribute::*"> <xsl:value-of select="self::node()"/> </xsl:template>
<xsl:template match="child::*"> <xsl:apply-templates select="child::node()"/> </xsl:template>
Comments, processing-instructions and 'tags' are suppressed by default.
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] Conditional extraction of, Geert Josten | Thread | Re: [xsl] Conditional extraction of, Geert Josten |
RE: [xsl] Conditional extraction of, Wendell Piez | Date | Re: [xsl] Auto-complete for schema-, Wendell Piez |
Month |