Subject: Re: [xsl] build-in template question From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 04 Sep 2008 18:37:47 -0400 |
Hello,
I have a question concerning text nodes. If I have an xml file like
<root> <e>text</e> </root>
and a template like
<xsl:template match="e"> <xsl:copy/> </xsl:template>
than, the output will be "<e>text</e>".
Is the text insterted to the output by xsl:copy or by the build-in template
<xsl:template match="text()|@*"> <xsl:value-of select="."/> </xsl:template> ?
<root> <e>text</e> </root>
t:\ftemp>type garvin.xsl <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="e"> <xsl:copy/> </xsl:template>
</xsl:stylesheet> t:\ftemp>xslt garvin.xml garvin.xsl con <?xml version="1.0" encoding="utf-8"?> <e/>
-- Upcoming XSLT/XSL-FO hands-on courses: Wellington, NZ 2009-01 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] build-in template questio, Michael Kay | Thread | Re: [xsl] build-in template questio, Garvin Riensche |
RE: [xsl] build-in template questio, Michael Kay | Date | Re: [xsl] build-in template questio, Garvin Riensche |
Month |