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


Title: Message
Hi,
    well, can anyone help me with xsl stylesheet ?
 
Well I got an xml document beginning by :
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Finharmony.xsl"?>
 
<group xmlns= "http://www.my.domain"  >
 
(this header is compulsory)
 
now I try to make an XSL stylesheet in order to present the data :
 
when I'm using a stylesheet containing :
 
<?xml version="1.0" encoding="ISO-8859-1"?>
 
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:Test="my.other.nmsp"
   xmlns:myDom="http://www.my.domain" > 
 
...
 
I don't really understand why this statement gives me a result :
<xsl:value-of select="/myDom:group/Test:myTag" />
 
whereas :
 
<xsl:for-each select="/myDom:group">
    <xsl:value-of select="Test:myTag" />
</xsl:for-each > 
 
does not return anything ...
 
Could anyone tell me what I should do in order to get a result whil I'm using a namespace in the xml file ?
 
Because If I change the xml file with :
 
<group xmlns:aName= "http://www.my.domain/"  >
 
and if I change the xsl file with :
 
<xsl:for-each select="/group">
    <xsl:value-of select="Test:myTag" />
</xsl:for-each > 
 
everything is working right .. :-//
 
So if anyone as an answer thanks a lot !
 
 
Thanks in advance
Arch
 

 

  • Follow-Ups:
    • RE:
      • From: "Michael Kay" <michael.h.kay@n...>

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.