I cannot reproduce the problem using attached files.

I suspect that your problem comes from the fact that your documents 
conform to a DTD. If this is the case, remember that XXE is not 
namespace aware when you use a DTD.

That is, when a DTD is used, "xl:label" means "{}xl:label" and not 
"{http://www.w3.org/1999/xlink}label";.

If you do use a DTD:

[1] Remove "@namespace xl url(http://www.w3.org/1999/xlink);" from the CSS.

[2] Specify "xl|label" as "xl\:label" in the CSS.

If you do not use a DTD (that is you use an XML-Schema or no grammar at 
all), I need a complete example in order to be able to help you.

---
PS: I have not answered your questions contained in your email titled 
"namespaced attributes" because I think it is the same problem.



Jeremy Quinn wrote:
> 
> Here is a snippet of xml from a document of mine (which has declared 
> xmlns:xl="http://www.w3.org/1999/xlink";).
> 
> <ref
>     xl:href="faq/howdeep.xml"
>     xl:label="faq.howdeep"
>     xl:title="I heard this rebreather is limited in depth. How deep does 
> it go?"
>     <name>How Deep?</name>
> </ref>
> 
> I am trying to add an editing field for @xl:label with this snippet of CSS:
> 
> @namespace xl url(http://www.w3.org/1999/xlink);
> 
> ref:before {
>     display: inline;
>     content: content("  ",
>         collapser(
>             collapsed-icon, icon(pop-right),
>             expanded-icon, icon(pop-down)
>         ),
>         " <", element-name(), "/>  ",
>         text-field(attribute, xl|label, columns, 10), "  "
>     );
>     font-size: 11pt;
>     font-style: normal;
>     font-weight: bold;
>     padding-left: 8;
> }
> 
> When it draws, all of the text-fields are empty.
> If I fill one in and save the document, the snippet above becomes this :
> 
> <ref
>     xl:href="faq/howdeep.xml"
>     xl:label="faq.howdeep"
>     xl:title="I heard the KISS is limited in depth. How deep does the 
> KISS go?"
>     ns:label="faq.howdeep"
>     xmlns:ns="http://www.w3.org/1999/xlink";>
>     <name>How Deep?</name>
> </ref>
> 
> Instead of using the prefix declared in @namespace, it appears to be 
> hardcoding one.
> Is this what is stopping any namespaced-atrributes from working in any 
> of the content functions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ref.xml
Type: text/xml
Size: 282 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040315/51180c19/attachment.xml
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ref.css
Type: text/css
Size: 532 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040315/51180c19/attachment.css
 

Reply via email to