Subject: [xsl] Namespace problems From: "Ricardo Saraiva" <rss@xxxxxxxxxx> Date: Tue, 21 Sep 2004 16:48:44 +0100 |
Hi, I'm having some problems related to namespaces (I think). The source file for the transformation: <rdf:RDF xml:base="http://a.com/ontology" xmlns="http://a.com/ontology#" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> ... <Products rdf:ID="id_9000.271151"> <BelongsToSeries rdf:resource="#ids_Robusta"/> <has_Finishing rdf:resource="#idf_BrancoTexturado"/> <BelongsToCollection rdf:resource="#idc_CamasMesasCabeceira"/> <Reference rdf:datatype="http://www.w3.org/2001/XMLSchema#string">9000.271151</Referenc e> <Name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ESTANTE ROBUSTA 66 BR</Name> </Products> ... On the xsl I'm trying to enter the Products element but with no sucess... <xsl:stylesheet version="1.0" xmlns="http://a.com/ontology#" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base="http://a.com/ontology" exclude-result-prefixes="rdf rdfs owl"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <rdf:RDF xmlns="http://a.com/ontology#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xml:base="http://a.com/ontology"> ... <xsl:apply-templates/> </rdf:RDF> </xsl:template> <xsl:template match="Products"> <xsl:element name="Product_class"/> </xsl:template> </xsl:stylesheet> I can't create the Product_class element because the template is not being applied... Why is it happening? What am I doing wrong? Can somebody help? Thank you, Regards, Ricardo Saraiva.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] content spanning pages, Kevin McMahon | Thread | Re: [xsl] Namespace problems, Bruce D'Arcus |
Re: [xsl] a Real Quickie, David Carlisle | Date | Re: [xsl] Namespace problems, Bruce D'Arcus |
Month |