OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   [xml-dev]

[ Lists Home | Date Index | Thread Index ]

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:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS