Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Transformation

From: Kniffel <kern@-------------.-->
To: 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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent