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?

regards Jeremy
-------------- 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/20040315/cb5ec575/attachment.p7s
 

Reply via email to