RE: [XSLTalk] Re: Problem with transforming XML to XM.L using XSL T

Hi again,
 
I still do not know how you obtain your output. 
 
I mean, if I copy and paste both of your XML and XSL into my copy of
XSelerator 2.5 and press F9 (Transform) this is what I see in the text
output mode window:
 
<catalog>
<cd>
<name>Name1</name>
<artist>Bonnie Tyler</artist>
</cd>
<cd>
<name>Name2</name>
<artist>Jim Henry</artist>
</cd>
</catalog>
 
which is exactly what you wish to see - all of your tags are there!
 
That's why I asked - how do you OBTAIN your output? Tell us more about the
way you work and what software you use, that'll help clarify the situation.
Something must be filtering your tags out there before you see the
results...
 
Regards, Pieter

-----Original Message-----
From: talktao2003 [mailto:talktao2003@yahoo.com]
Sent: Monday, July 21, 2003 4:56 PM
To: XSLTalk@yahoogroups.com
Subject: [XSLTalk] Re: Problem with transforming XML to XM.L using XSLT


Hi there,
Thanks for reply. I mean I cannot see the tags in the XML document 
generated. The output I got is like this:

Name1 Bonnie Tyler Name2 Jim Henry 

As you see, I just got the contents of the each element. where are 
the element names? like, <cd><name></name></cd>.

Thanks again.


--- In XSLTalk@yahoogroups.com, Pieter Reint Siegers Kort 
<pieter.siegers@e...> wrote:
> Hi,
>  
> Can you tell us how do you exaclty obtain your output? Because I 
can clearly
> see that the desired output is exactly what you get when you 
perform the
> transformation of your sources.... ¿so what's up?
>  
> Regards, Pieter
> 
> -----Original Message-----
> From: talktao2003 [mailto:talktao2003@y...]
> Sent: Monday, July 21, 2003 12:34 PM
> To: XSLTalk@yahoogroups.com
> Subject: [XSLTalk] Problem with transforming XML to XM.L using XSLT
> 
> 
> Can anybody let me know why I cannot get the desired output? 
> Thanks so much.
> 
> INPUT XML FILE:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="cdcatalog3.xsl"?>
> <catalog>
>   <cd>
>     <name>Name1</name>
>     <artist>Bonnie Tyler</artist>
>     <company>CBS Records</company>
>     <price>9.90</price>
>     <year>1988</year>
>   </cd>
>   <cd>
>     <name>Name2</name>
>     <artist>Jim Henry</artist>
>     <company>London</company>
>     <price>7.80</price>
>     <year>1987</year>
>   </cd>
> </catalog>
> 
> INPUT XSLT FILE:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl=" http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> 
> < http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> > ">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
> <xsl:template match="/">
> <catalog>
>   <xsl:for-each select="catalog/cd">
>     <cd>
>       <name>    <xsl:value-of select="name"/>  </name>
>       <artist> <xsl:value-of select="artist"/>  </artist>
>     </cd>
>   </xsl:for-each>
> </catalog>
> </xsl:template>
> </xsl:stylesheet>
> 
> DESIRED OUPUT:
> <catalog>
>   <cd>
>     <name>Name1</name>
>     <artist>Bonnie Tyler</artist>
>   </cd>
>   <cd>
>     <name>Name2</name>
>     <artist>Jim Henry</artist>
>   </cd>
> </catalog>
> 
> OUTPUT GOT USING THE METHOD ABOVE:
> Name1 Bonnie Tyler Name2 Jim Henry 
> 
> 
> 
> Yahoo! Groups Sponsor      
> 
> ADVERTISEMENT
>  
> 
< http://rd.yahoo.com/M=194081.3551198.4824677.1261774/D=egroupweb/S=17
<http://rd.yahoo.com/M=194081.3551198.4824677.1261774/D=egroupweb/S=17> 
060303
> 90:HM/A=1663535/R=0/SIG=11ps6rfef/* http://www.ediets.com/start.cfm?
<http://www.ediets.com/start.cfm?> 
code=3050
> 4&media=atkins> click here      
>  
> < http://us.adserver.yahoo.com/l? <http://us.adserver.yahoo.com/l?> 
M=194081.3551198.4824677.1261774/D=egroupmai
> l/S=:HM/A=1663535/rand=639096299>       
> 
> This discussion list is hosted at TopXML (topxml.com).  If you like 
what
> we're doing, please show your support by posting your small code 
snippets
> there!  Also, post your tech announcements and news on our new 
site, Markup
> World (markupworld.com)
> 
> To unsubscribe from this group, send an email to:
> XSLTalk-unsubscribe@egroups.com
> 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> < http://docs.yahoo.com/info/terms/ <http://docs.yahoo.com/info/terms/> >
. 
> 
> 
> 
> 
> [Non-text portions of this message have been removed]



Yahoo! Groups Sponsor	

ADVERTISEMENT
 
<http://rd.yahoo.com/M=244522.3512152.4794593.1261774/D=egroupweb/S=17060303
90:HM/A=1595056/R=0/SIG=124bf4lrb/*http://ashnin.com/clk/muryutaitakenattogy
o?YH=3512152&yhad=1595056> Click Here!	
 
<http://us.adserver.yahoo.com/l?M=244522.3512152.4794593.1261774/D=egroupmai
l/S=:HM/A=1595056/rand=431041464> 	

This discussion list is hosted at TopXML (topxml.com).  If you like what
we're doing, please show your support by posting your small code snippets
there!  Also, post your tech announcements and news on our new site, Markup
World (markupworld.com)

To unsubscribe from this group, send an email to:
XSLTalk-unsubscribe@egroups.com


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/2U_rlB/TM
---------------------------------------------------------------------~->

This discussion list is hosted at TopXML (topxml.com).  If you like what we're doing, please show your support by posting your small code snippets there!  Also, post your tech announcements and news on our new site, Markup World (markupworld.com)

To unsubscribe from this group, send an email to:
XSLTalk-unsubscribe@egroups.com
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Received on Monday, 21 July 2003 19:08:46 UTC