[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

namespace value output at weird location

Subject: namespace value output at weird location
From: "Jacobs, Robert A." <ra.jacobs@xxxxxxx>
Date: Thu, 31 Mar 2005 17:43:36 -0600
weird location names
XSL-List'ers:

I'm working on my first XML application; Michael
Kay suggested I post to this list for additional
XSL help.

I'm using Saxon 6.5.3 to test my XSL Stylesheet
documents and this is the response I'm getting
back:

======================================
RESPONSE
======================================

TUTOR: Select Colors for House Painting<br
xmlns:jtt="http://mil.jcsj2t.jtt30"><ol xmlns:jtt="http://mil.jcsj2t.jtt30">
   <li>Select one of the following:<br><ul>
         <li><a href="javascript:get_explanation('task_0001');">Select Colors
via a Color Wheel</a></li>
         <li><a href="javascript:get_explanation('task_0003');">Use a Color
Consultant to Select Colors</a></li>
         <li><a href="javascript:get_explanation('task_0004');">Select Colors
via Feng Shui</a></li>
      </ul>
   </li>
   <li><a href="javascript:get_explanation('task_0009');">Purchase Paint
Colors</a></li>
</ol>

======================================
PROBLEM
======================================

TUTOR: Select Colors for House Painting<br
xmlns:jtt="http://mil.jcsj2t.jtt30"><ol xmlns:jtt="http://mil.jcsj2t.jtt30">
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

======================================
XSL Stylesheet Fragment
======================================

<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:jtt="http://mil.jcsj2t.jtt30">

    <xsl:output method="html" />

    <xsl:key name="task.id" match="jtt:task" use="@id" />
    <xsl:param name="selected.task.id"> </xsl:param>
    <xsl:param name="selected.mode"> </xsl:param>

    <xsl:template match="/">
        <xsl:choose>
            <xsl:when test="$selected.mode = 'task_list'">
                <xsl:apply-templates select="//jtt:task[@id =
$selected.task.id]" mode="task_list" />
            </xsl:when>
            <xsl:when test="$selected.mode = 'task_desc'">
                <xsl:apply-templates select="//jtt:task[@id =
$selected.task.id]" mode="task_desc" />
            </xsl:when>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="jtt:task" mode="task_list">
        <xsl:choose>

            <xsl:when test="@task_type='meta'">
                <xsl:value-of select="jtt:title"/><br/>
                <ol>
			.
			.
			.


The <br/> and <ol> tags are where the namespace value is
being inserted and I am not sure why. Any help greatly
appreciated.


Robert A. Jacobs

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.