Re: [xsl] Match Commented elements

Subject: Re: [xsl] Match Commented elements
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Fri, 03 Oct 2008 06:43:52 +0100
>>>>> "JSR" == J S Rawat <jrawat@xxxxxxxxxxxxxx> writes:

    JSR> Hi This seems odd but you people must have any solution. Can
    JSR> we match below "comment" element which is commented. I have
    JSR> seen the role of <xsl:template match="comment()"> but not
    JSR> able to apply.

    JSR> Input <meta> <!-- <comment>...</comment>
    --> 
    JSR> </meta>

    JSR> Output <meta scheme="comment" content="..."/>

The match statement is correct.

But within that template you are going to have to parse the string
value of the comment node yourself. That will be hard work.
-- 
Colin Adams
Preston Lancashire

Current Thread