OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office-metadata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [office-metadata] Export / Import of metadata


This is in fine for me, as xsl:value-of does create a literal based on 
the XPATH string() function.
Therefore you want a type that is called 'xml' representing the complete 
xml node set (subtree) and - let's assume there is nothing inbetween - 
the are simply annotations of a literal, like being a 
date/string/integer/etc.
Until no-one protests I assume the default type is 'String'.

Svante

Bruce D'Arcus wrote:
>
>
> Just to clear, I'm talking about simple XSLT logic something like (not 
> tested or validated; just for illustration):
>
> <xsl:template match="//*[@meta:property]">
>   <xsl:variable name="property">...</xsl:variable>
>   <rdf:Description rdf:about="{@meta:about}">
>     <xsl:element name="{$property}">
>       <xsl:choose>
>         <xsl:when test="@meta:data-type='xml'">
>           <xsl:attribute name="rdf:parseType">Literal</xsl:attribute>
>           <xsl:copy-of select="."/>
>         </xsl:when>
>         <xsl:otherwise>
>           <xsl:value-of select="."/>
>         </xsl:otherwise>
>       </xsl:choose>
>     </xsl:element>
>   </rdf:Description>
> </xsl:template>
>
> Bruce


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]