![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Stumped Transforming DSML Data With XSLT` [Thread Next] Re: Stumped Transforming DSML Data With XSLT`To: NULL Date: 2/1/2005 10:16:00 PM Tempore 20:02:40, die Tuesday 01 February 2005 AD, hinc in foro {comp.text.xml} scripsit <awilliam@w...>:
> Only when I -
> xsltproc /var/spool/bie/xslt/dsaEmployeeExport.2.xslt /tmp/ldapData.xml
> - all I get is -
> <?xml version="1.0"?>
> <result/>
>
> Huh?
Hi,
It is a namespacing issue.
Include the namespace of the XML document in the XSLT
e.g.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" exclude-result-prefixes="in" xmlns:in="urn:oasis:names:tc:DSML:2:0:core">
<xsl:template match="/">
<result>
<xsl:for-each
select="in:batchResponse/in:searchResponse/in:searchResultEntry">
<xsl:sort select="in:morrisonserialid"/>
<row>
<cn><xsl:value-of select="in:attr[@name='cn']/in:value"/></cn>
<birthdate><xsl:value-of
select="in:attr[@name='birthday']/in:value"/></birthdate>
<morrisonserialid><xsl:value-of
select="in:attr[@name='morrisonserialid']/in:value"/></morrisonserialid>
<fileAs><xsl:value-of
select="in:attr[@name='fileAs']/in:value"/></fileAs>
<startDate><xsl:value-of
select="in:attr[@name='morrisonpositionstartdate']/in:value"/></startDate>
</row>
</xsl:for-each>
</result>
</xsl:template>
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Veni, vidi, wiki (http://www.wikipedia.org)
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
