xsl-list
[Top] [All Lists]

RE: Namespaces...

2003-06-30 00:39:11
FFFAQ,

The "Content-Element" has a default-Namespace and how do i 
have to write my XSL-Templates to access the "Content-Element"?

Here is the Stylesheet:

<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
xmlns:tcm="http://www.tridion.com/ContentManager/5.0";>

Add xmlns:x="urn:DTD922"

    <xsl:output method="xml" version="1.0" encoding="UTF-8" 
indent="yes"/>
    <xsl:template match="/">
        <test>
            <xsl:apply-templates/>
        </test>
    </xsl:template>
    <!--
    -->
    <xsl:template match="tcm:Component">
        <xsl:apply-templates/>
    </xsl:template>
    <!--
    -->
    <xsl:template match="tcm:Content">
        <xsl:message>in tcm:Content</xsl:message>
        <xsl:apply-templates/>
    </xsl:template>
    <!--
    -->
    <xsl:template match="Content">

Change this to match "x:Content"

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>