Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Transformation TransformationTo: NULL Date: 5/14/2007 5:28:00 AM Hi i have questions around the XSLT-Tranformation. my XML-file looks like this (first Examle): <?xml version=3D"1.0" encoding=3D"utf-8"?> <?xml-stylesheet type=3D"text/xsl" href=3D"dlt.xsl" ?> <DLT> <Standardsprache Sprache=3D"Deutsch" Datei=3D"lang_german.xml" /> </DLT> I don=B4t know how to get the values of "Sprache" or "Datei"? +++++++++++++++++++++++++++++++++++++++++++ If it would look like this: <?xml version=3D"1.0" encoding=3D"utf-8"?> <?xml-stylesheet type=3D"text/xsl" href=3D"dlt.xsl" ?> <DLT> <Standardsprache> <Sprache>Deutsch</Sprache> <Datei>lang_german.xml</Datei> </Standardsprache> </DLT> I am able to transform it with this: <?xml version=3D'1.0'?> <xsl:stylesheet version=3D"1.0" xmlns:xsl=3D"http://www.w3.org/1999/XSL/ Transform"> <xsl:output method=3D"html"/> <xsl:template match=3D"/"> <html><head></head><body> <xsl:apply-templates /> </body></html> </xsl:template> <xsl:template match=3D"Standardsprache"> <xsl:for-each select=3D"*"> <li> <xsl:value-of select=3D"." /> </li> </xsl:for-each> </xsl:template> </xsl:stylesheet> ++++++++++++++++++++++++++++++++++++++++++++++ Now I get the two values in a list, but how can I get the values in the first example? Somebody have some references for me? Greetings Kniffel | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
