This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Problem in XSL apply-templates Tag ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Problem in XSL apply-templates Tag ??" Watch "Problem in XSL apply-templates Tag ??" New topic

Problem in XSL apply-templates Tag ??

Rahul Si

Joined: Mar 19, 2005
Posts: 1
Hi friends,

I am facing problem while I am trying to apply HELLO.XSL to HELLO.XML. It is giving the following unwanted results as shown below.

In short <xsl:apply-templates select="xs:custom" mode="TTE"/> tag is not referring to <xsl:template match="xs:custom" mode="TTE"> tag.

I guess there is some fundamental problem. If anyone can help me then it wud be great.



<xs:ql xmlns:xs="" xmlns:bim="" xmlns:xsi="">


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:xs="" xmlns:bim="" xmlns:xsi="">
<xslutput method="xml" indent="yes" omit-xml-declaration="yes" />

<xsl:template match="/" >
<xsl:apply-templates select="xs:ql" mode="TTE"/>

<xsl:template match="xs:ql" mode="TTE">
<xsl:for-each select="child::*">
<xsl:when test="name(.)='xs:custom'">
<xsl:apply-templates select="xs:custom" mode="TTE"/>
<xsl:copy-of select="." />

<xsl:template match="xs:custom" mode="TTE">



<xs:ql xmlns:xsi="" xmlns:bim="" xmlns:xs=""/>


<xs:ql xmlns:xsi="" xmlns:bim="" xmlns:xs="">
jQuery in Action, 2nd edition
subject: Problem in XSL apply-templates Tag ??
Similar Threads
xml namespace and xsl transformation problem
Passing an XPath Param value
Failing to Add HTML Tags in XSL File
remove xml element xsl