[KLUG Members] XML/DSML/XSL Transform Help

Adam Tauno Williams adam at morrison-ind.com
Mon Nov 15 08:56:33 EST 2004


> > > That isn't XML!
> > No, but it's more than blank output, which I THINK is what you were
> > getting before? 
> Yep, I either get that or nothing.  Rather baffling.

Interesting.  If I remove the "batchResonse" outer tags (opening and
closing) then the document parses correctly with...

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
 <ditData>
  <xsl:for-each select="searchResponse/searchResultEntry">
   <object>
    <cn><xsl:value-of select="attr[@name='cn']/value"/></cn>
    <birthdate><xsl:value-of
select="attr[@name='birthday']/value"/></birthdate>
    <serialid><xsl:value-of
select="attr[@name='morrisonserialid']/value"/></serialid>
    <fileAs><xsl:value-of select="attr[@name='fileAs']/value"/></fileAs>
    <startdate><xsl:value-of
select="attr[@name='morrisonpositionstartdate']/value"/></startdate>
   </object>
  </xsl:for-each>
 </ditData>
</xsl:template>
</xsl:stylesheet>

Trippin!



More information about the Members mailing list