xsl-list
[Top] [All Lists]

Re: [xsl] Match Commented elements

2008-10-03 01:44:14
"JSR" == J S Rawat <jrawat(_at_)aptaracorp(_dot_)com> 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--