Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XHTML changing

From: Philipp Kraus <philipp.kraus@---------.-->
To: 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




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent