On 15 Mar 2004, at 12:52, Hussein Shafie wrote:

> 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.

This works.

Many thanks for the tip.

regards Jeremy



> 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?
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/css" href="ref.css"?>
> <ref xmlns:xl="http://www.w3.org/1999/xlink";
>   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>
> @namespace xl url(http://www.w3.org/1999/xlink);
>
> ref {
>     display: block;
>     collapsible: yes;
>     not-collapsible-head: 1;
> }
>
> 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;
> }
>
> name {
>     display: block;
> }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2377 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040316/34f769b7/attachment.p7s
 

Reply via email to