This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC 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="">
I agree. Here's the link:
subject: Problem in XSL apply-templates Tag ??
It's not a secret anymore!