|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] transformation does happen after copy-of?
I have an well-formed html file that i need to do a transformation to. The
html file is pretty much finished, except for some elements I named
<whitespace/>
I am trying to run the html file through a transformation that will return the html file with the <whitespace/> elements transformed to something else. I included an example html file and my xsl file. I can invoke the transformation, but the html file remains unchanged. 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></xsl:stylesheet> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








