xsl-list
[Top] [All Lists]

RE: [xsl] Normalizar una ontologia

2008-03-17 11:37:02
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(_at_)mulberrytech(_dot_)com] 
Sent: Monday, March 17, 2008 12:30 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


-- 

======================================================================
B. Tommie Usdin                        
mailto:btusdin(_at_)mulberrytech(_dot_)com
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
======================================================================

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>