Subject: [xsl] transformation does happen after copy-of? From: Phillip Rhodes <spamsucks@xxxxxxxxxxxxxxx> Date: Sun, 21 Jul 2002 23:04:14 -0400 |
I think I must be close... can someone point out what I am doing wrong? Thank you!!!
<?xml version="1.0" encoding="UTF-8"?> <html> <head> <title>Test>/title> </head> <body> (snip) <!-- whitespace elements can be at even depth of the document, in the body (of course), but in td,p, etc elements --> <whitespace lines="8" inches="1.25"></whitespace> (snip) </body> </html>
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="html"> <xsl:copy-of select="."/> <xsl:apply-templates/> </xsl:template>
<!-- since whitespace elements can be anywhere in the hierarchy, we need to do the // --> <xsl:template match="//whitespace[lines]"> <p/> <p/> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] cannot transform to <html, Paul Brown | Thread | Re: [xsl] transformation does happe, Mike Brown |
RE: [xsl] cannot transform to <html, Paul Brown | Date | [xsl] Query re XMLSpy XPath engine, Michael Leditschke |
Month |