[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Namespace problems

Subject: Namespace problems
From: "Ricardo Saraiva" <rss@xxxxxxxxxx>
Date: Tue, 21 Sep 2004 16:48:44 +0100
rdf xsl namespace
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.