Re: [xsl] traversing xsl using xsl

Subject: Re: [xsl] traversing xsl using xsl
From: omprakash.v@xxxxxxxxxxxxx
Date: Fri, 4 Feb 2005 13:32:32 +0530
        This should get you started. But if I were you I would only proceed
with this approach if I should absolutely must. Just make sure you change
the xforms namespace to the right one below.


<xsl:stylesheet xmlns:xsl="";
xmlns:xs=""; xmlns:xforms="xforms ns here"

<xsl:copy-of select="/"/>

<xsl:template match="xsl:template">
<xsl:message>match = template<xsl:value-of select="name(.)"/></xsl:message>
<xsl:apply-templates select="*"/>

<xsl:template match="xsl:apply-templates">

<xsl:message>match = apply-template<xsl:value-of select="name


<xsl:template match="xsl:value-of">
<xsl:message>match = value-of<xsl:value-of select="name(.)"/></xsl:message>


<xsl:template match="xsl:attribute">
<xsl:message>match = attribute<xsl:value-of select="name


<xsl:template match="xsl:if">
<xsl:message>match = if<xsl:value-of select="text()"/></xsl:message>
<xsl:apply-templates select="*"/>

<xsl:template match="xforms:input">
<xsl:attribute name="type">
<xsl:value-of select="text"/>
<xsl:attribute name="name">
<xsl:value-of select="fname"/>



                    Akella"              To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                   
                    <avlnprasad@w        cc:     (bcc: omprakash.v/Polaris)                                        
          >               Subject:     [xsl] traversing xsl using xsl                               
                    01:58 AM                                                                                       
                    respond to                                                                                     


I am stuck with the problem of traversing an xsl file using another xsl. I
was suggested to take the output of my xsl file1 and use it in xsl file2
but have not been able to do so.

My xsl file1 transforms an xml document into xforms
I would like to write xsl file2 which takes or is called in xsl file1 and
the output is xhtml instead of xforms which i intend to do by matching all
tags and substituting with adequate transformations.

Please let me know how this is possible. If i import my xsl file1 into xsl
file2 my second file is not doing anything and the vice versa is also not
working and my xsl file1 is rendering normal xforms eventhough i call my
xsl file2.

The point is that the transformation in xsl file1 has to be bypassed and
subsituted by xsl file2 transformation.

with regards,
prasad Akella
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail:

This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at

Current Thread