![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XHTML changing XHTML changingTo: NULL Date: 9/1/2007 1:03:00 AM Hello, I hope my question isn't off topic. I have a XHTML file (offline webpage) and now I change some HTML struktures with a XSLT. I create my XSLT file and in my first step I will copy all HTML tags and one tag should be cleared. I have build my XSLT with a editor like this way: <xsl:template match="sem"> <xsl:text>\section{</xsl:text> <xsl:value-of select="@value"/> <xsl:text>}</xsl:text> <xsl:apply-templates /> </xsl:template> <xsl:template match="name"> <xsl:text>\subsection{</xsl:text> <xsl:value-of select="@value"/> <xsl:text>}</xsl:text> <xsl:apply-templates /> </xsl:template> In my HTML Struktur I have this path: html/body/div (@aussen) / hr (@hide) / div (@page) / hr (@hide) / div (@navi) (all @ are attributes). It's also a typo3 strukture. I would like to clear everything on the node "div (@navi)" and all childs down of the node. All other HTML Tags should be copy in a new HTML. Is this the right way? <xsl:template match="path_to_div_navi"> checking attribute named "navi" no -> <xsl:apply-templates /> yes -> nothing </xsl:template> <xsl:template match="*"> how I copy a node with full data? </xsl:template> Thanks a lot Phil | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
