Re: odd hadling of v:n in hcard2rdf.xsl (vCard/RDF)

/ Dan Connolly <connolly@w3.org> was heard to say:
| Norm, why am I getting so many v:n's?

Because there was a bug where 'given-name', 'family-name', etc. that
appeared inside 'n' were processed more than once.

I think it's fixed now.

$ xsltproc http://www.w3.org/2006/vcard/hcard2rdf.xsl http://www.w3.org/2001/sw/grddl-wg/td/card.html
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:v="http://www.w3.org/2006/vcard/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:h="http://www.w3.org/1999/xhtml">
  <v:VCard>
    <v:org rdf:parseType="Resource">
      <rdf:type rdf:resource="http://www.w3.org/2006/vcard/ns#Organization"/>
      <v:organization-name>Data Access Technologies</v:organization-name>
    </v:org>
    <v:fn>
    Cory B. Casanave</v:fn>
    <v:n rdf:parseType="Resource">
      <rdf:type rdf:resource="http://www.w3.org/2006/vcard/ns#Name"/>
      <v:given-name>Cory</v:given-name>
      <v:family-name>Casanave</v:family-name>
      <v:additional-name>B.</v:additional-name>
    </v:n>
    <v:title>President &amp; CEO</v:title>
    <v:adr rdf:parseType="Resource">
      <rdf:type rdf:resource="http://www.w3.org/2006/vcard/ns#Address"/>
      <v:extended-address>Suite 505</v:extended-address>
      <v:street-address>8605 Westwood Center Drive</v:street-address>
      <v:locality>Vienna</v:locality>
      <v:region>VA</v:region>
      <v:postal-code>22182</v:postal-code>
      <v:country-name>USA</v:country-name>
    </v:adr>
    <v:tel rdf:resource="tel:+1-123-456-7890"/>
    <v:tel rdf:resource="tel:+1-111-555-7890"/>
    <v:fax rdf:resource="tel:+1-111-111-1234"/>
    <v:email rdf:resource="mailto:cory@example"/>
  </v:VCard>
</rdf:RDF>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

Received on Thursday, 7 December 2006 19:14:49 UTC