Subject: RE: Normalizar una ontologia
From: "Scott Trenda" <Scott.Trenda@xxxxxxxx>
Date: Mon, 17 Mar 2008 13:36:10 -0500
|
Izaskun,
Do you just need to normalize the text in the ontologies? (strip leading
and trailing spaces, collapse all other runs of spaces to a single
space?) You could use this:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="* | comment() | processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute name="{name()}">
<xsl:value-of select="normalize-space()" />
</xsl:attribute>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="normalize-space()" />
</xsl:template>
</xsl:stylesheet>
~ Scott
-----Original Message-----
From: B Tommie Usdin [mailto:btusdin@xxxxxxxxxxxxxxxx]
Sent: Monday, March 17, 2008 12:30 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Normalizar una ontologia
It would surprise me if this question were in scope for XSL-List.
Please find a more appropriate place to ask general questions such as
this one. If, after you have a better understanding of what you want
to do, you find that you have specific XSL questions on how to do a
transformation, you are welcome to bring those XSL-related questions
back to XSL-List.
-- Tommie
>Hello everybody!
>
>I am working with Ontologies (OWL Language). OWL is RDF or XML format.
>
>In OWL there are several forms to define classes and properties and I
>need normalice the ontologies to work with them.
>
>Somebody knows any form to normalice ontologies?
>
>Regards,
>
>Izaskun
--
======================================================================
B. Tommie Usdin mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Phone: 301/315-9631
Suite 207 Direct Line: 301/315-9634
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in XML and SGML
======================================================================
|