[oXygen-user] Unable to print an element's value

Bradley, Peter
Wed Sep 10 04:09:23 CDT 2008



I've encountered some behaviour that I can't understand in a
transformation that I'm currently engaged on.  The transformations are
all pretty simple and follow the same pattern, but with just a few of
them I'm getting odd results where the element text is not being output.


For example, in one case I have the following xsl:




<!-- Instance -->
<xsl:for-each select="Instance">
      <xsl:value-of select="NUMHUS/text()"/>
      <xsl:attribute name="codeListAgencyName">
      <xsl:attribute name="codeListName">
      <xsl:attribute name="languageID">
      <xsl:value-of select="REDUCEDI/text()"/>
      <xsl:value-of select="COURSEID/text()"/>

The source document has the following:


  <NUMHUS>000001075369710892  </NUMHUS>

  <COURSEID>62105201                      </COURSEID>



(Note that <personal_id> is not transferred to the output document)


The destination document gives:


  <NUMHUS>000001070027710892  </NUMHUS>
  <REDUCEDI codeListAgencyName="HESA" codeListName="REDUCEDI"
  <COURSEID>53705101                      </COURSEID>


My problem is the <REDUCEDI> element.  I don't understand why it hasn't
taken the text '00' into the destination document as I was expecting.


I've got what I take to be the same problem elsewhere, so I'm hoping
that solving it here will give the solution elsewhere as well.


Thanks in advance








-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20080910/57ee9dde/attachment.html 

More information about the oXygen-user mailing list