Subject: Re: PIs with XT From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 21 Mar 2000 11:31:38 -0500 |
My XSL stylesheet for HTML then has:
<!-- processing instruction for new line --> <xsl:template name="processing-instruction(newline)"> <br/> </xsl:template>
The output HTML shows nothing. I get the same result with <xsl:template name="processing-instruction()">.
Can anyone shed light?
T:\ftemp>type pi.xml <?xml version="1.0"?> <test> This is a test<?newline?>of text </test> T:\ftemp>type pi.xsl <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> <!--root rule--> <result> <test1> <xsl:apply-templates mode="test1"/> </test1> <test2> <xsl:apply-templates mode="test2"/> </test2> </result> </xsl:template>
<xsl:template match="processing-instruction('newline')" mode="test1"> <br/> </xsl:template>
<xsl:template match="processing-instruction()" mode="test2"> <br/> </xsl:template>
T:\ftemp>xt pi.xml pi.xsl <?xml version="1.0" encoding="utf-8"?> <result><test1> This is a test<br/>of text </test1><test2> This is a test<br/>of text </test2></result> T:\ftemp>
-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML services, training, libraries, products. Practical Transformation Using XSLT and XPath ISBN 1-894049-04-7 Next instructor-led training: 2000-05-02,2000-05-11/12,2000-05-15, - 2000-06-12,2000-06-13,2001-01-27
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
PIs with XT, Beckers, Marc | Thread | Re: PIs with XT, stu |
RE: xsl:fo, Rakesh Ajmera | Date | MSXML variables and DOCTYPE, Simon . Heathfield |
Month |