Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: setProperty, selectionNamespaces, defaultNamespace

From: AlexanderSchneider@-----------.---------.---
To: NULL
Date: 11/2/2006 6:15:00 AM

Hi, 

sorry but it dit not work as descript.

> XPath 1.0 does not know anything like a default namespace thus the XPath 
> expression //element always selects elements with the local name 
> |element| in _no_ namespace.

I use a workaround and add for the default namespace the prefix "default". 
Now my "selection Namespace" property was set to

xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:sch="http://www.ascc.net/xml/schematron" 
xmlns:std="http://www.w3.org/2001/XMLSchema" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:smil20="http://www.w3.org/2001/SMIL20/" 
xmlns:smil20lang="http://www.w3.org/2001/SMIL20/Language" 
xmlns:default="http://www.w3.org/2001/XMLSchema"

but I can't select something like "//element" but "//default:element" works 
fine. My preview settings was the folling code snipe. You can see the 
declaration for the default namespace in the last row. As describte below it 
also does not work.

xmlns:xlink="http://www.w3.org/1999/xlink" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:sch="http://www.ascc.net/xml/schematron" 
xmlns:std="http://www.w3.org/2001/XMLSchema" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:smil20="http://www.w3.org/2001/SMIL20/" 
xmlns:smil20lang="http://www.w3.org/2001/SMIL20/Language" 
xmlns="http://www.w3.org/2001/XMLSchema"

Are there any ideas or succestions?

Thanks

Alexander


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent