xslt transformation does not function - no node recognized
Posted: Thu Jul 10, 2014 6:49 pm
				
				Hello OxygenXml Users
I experience a strange issue while trying to transform the xml data into html data via xslt
There is no node recognized; all text is displayd and not only the requested one.
Normally this solution worked before; maybe I activated an option in oxygenxml which precludes this operation.
Here is an extract of my xml file
Here is the xsl file:
Maybe you can have a quick look and give me a direction where I should search for the error?
Thanks for assistance
best regards
Franz
			I experience a strange issue while trying to transform the xml data into html data via xslt
There is no node recognized; all text is displayd and not only the requested one.
Normally this solution worked before; maybe I activated an option in oxygenxml which precludes this operation.
Here is an extract of my xml file
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<ONIXMessage xmlns="http://ns.editeur.org/onix/3.0/reference"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://ns.editeur.org/onix/3.0/reference ../ONIX_BookProduct_XSD_schema+codes_Issue_23/ONIX_BookProduct_3.0_reference.xsd"
  release="3.0">
  <Header>
    <Sender>
      <SenderIdentifier>
        <SenderIDType>01</SenderIDType>
        <IDValue>01</IDValue>
      </SenderIdentifier>
      <SenderName>Édition Arrowhead</SenderName>
      <ContactName>Frank Fischer, +33-622-945-769</ContactName>
      <EmailAddress>ffischer002@gmail.com</EmailAddress>
    </Sender>
    <Addressee>
      <AddresseeName>Amazon EU S.a.r.L.</AddresseeName>
    </Addressee>
    <MessageNumber>782</MessageNumber>
    <SentDateTime>20140707T0750-0500</SentDateTime>
    <MessageNote language="ger">Buchdaten</MessageNote>
    <DefaultLanguageOfText>ger</DefaultLanguageOfText>
  </Header>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--  <xsl:strip-space elements="*"/> -->
  <xsl:output method="html"/>
  
  <xsl:template match="Header">
    <html>
      <body>
        <h2>My Book Collection</h2>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>
  <xsl:template match="Addressee">
      <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="AddresseeName">
      <xsl:value-of select="."/>
  </xsl:template>
Thanks for assistance
best regards
Franz