Subject: RE: [xsl] copy-of question From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Thu, 19 Apr 2001 11:19:30 +0100 |
> how can I extract only one element in original form? > copy-of seems to work here, but I have all the other unwanted > tags also as > plain text. > Is this related to the default rules? > > <xsl:template match="TABLE"> > <xsl:copy-of select="."/ > </xsl:template> > This is fine in itself, but it depends how you call it. If you do <xsl:template match="/"> <xsl:apply-templates select="(//TABLE)[1]"/> </xsl:template> then your output will be a deep copy of the first TABLE element in the source. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] copy-of question, Franz Figl | Thread | Re: [xsl] copy-of question, Franz Figl |
[xsl] XSL editor for WML, Phillip Vamplew | Date | RE: [xsl] ASP in XSL ? (Need URL En, Chris Bayes |
Month |