473,387 Members | 1,573 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Namespace Not Being Inherited

An element node is supposed to inherit the namespace of its parent. But one
of mine is not inheriting.

If I declare

<xsl:stylesheet
xmlns:cm="urn:schemas-Professional-Plug-in:P2:ClipMetadata:v3.0">

then I should be able to prefix any node reference with "cm:" For example,

<xsl:value-of select="cm:P2Main/cm:ClipName" />

And, indeed, that does work in every parser I've tested, except... the Xalan
parser used by FileMaker is complaining

"XML parsing error: Attribute Œxmlns:cm¹ is not declared for element
ŒFMPXMLRESULT².

But it is declared--in the very first line of the XSLT document!

The complaining element lives in this template

<xsl:template match="/cm:P2Main/cm:ClipContent">
<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">
<ERRORCODE>0</ERRORCODE>
<PRODUCT BUILD="07/1/2006" NAME="FileMaker Pro" VERSION="8.0v1" />

<RESULTSET>
<xsl:attribute name="FOUND">
<xsl:value-of select="14" />
</xsl:attribute>
<xsl:call-template name="records" />
</RESULTSET>

</FMPXMLRESULT>

I have tried to insert that xmlns:cm declaration everywhere in the document,
but FileMaker still keeps complaining that it is an undeclared attribute.

Any ideas?

Jul 1 '06 #1
1 1108
I just had to add an "exclude-result-prefixes='cm'" to my declaration. It
wasn't the parser that was complaining, it was FileMaker.

Fenton Jones solved this one for me.

Jul 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: kj | last post by:
Consider the following XML document: <?xml version='1.0' encoding='UTF-8'?> <bar:foo xmlns:bar='someuri'> <baz/> </bar:foo> What namespace does baz belong to? What is this namespace bound...
3
by: thechaosengine | last post by:
Hi all, Can anyone tell me if it is advisable (or even possible) to define a namespace across 2 or more assemblies? For example, consider the namespace SampleApplication.Data.Providers ...
1
by: Larry | last post by:
Given the "includer" xml file: <?xml version="1.0"?> <test-includer xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:testns="http://www.w3.org/TR/REC-xml-names"...
2
by: Steve | last post by:
I have a general routine in a windows app to get an embedded resource using GetManifestResourceStream, Is it possible for when I call my routine to use some kind of reflection to get the current...
2
by: Ian | last post by:
I've inherited some xml that doesn't have a namespace and doesn't have a reference to the schema. The schema doesn't have a targetNamespace attribute. I'm trying to build a test tool, in C#, which...
18
by: jacksu | last post by:
I have a simple program to run xpath with xerces 1_2_7 XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); XPathExpression xp = xPath.compile(strXpr);...
1
by: Peter Stojkovic | last post by:
I have a form named form2 Everything is ok now. I can work in codeview and designerview But when I program a namespace like above _____________________________ NameSpace namespace1 public...
13
by: toton | last post by:
Hi, I have some enum (enumeration ) defined in some namespace, not inside class. How to use the enum constant's in some other namespace without using the whole namespace. To say in little...
13
by: Axel Dahmen | last post by:
Hi, I've got a question on namespaces. After reading http://www.w3.org/TR/xml-names11 I still don't understand how namespaces are applied to attributes - particularly in regard to how processing...
1
by: Alexander Widera | last post by:
hello, is it possible to completly inherit a namespace? something like "MyNewNamespace : MyNameSpaceBase" i want to access all classes in the MyNameSpaceBase by the namespace...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.