[oXygen-user] How to set language to self defined element?

Oxygen XML Editor Support support at oxygenxml.com
Thu Mar 29 04:07:35 CDT 2012


Hi Roderick,

Basically to allow "xml:lang" as an accepted attribute in your custom 
XML Schema you would first have to import:

> <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>

then in the place where you define your complex type, you would make a 
reference like:

> <xs:attribute ref="xml:lang"/>

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 3/27/2012 4:32 PM, Roderik Dernison wrote:
> Hi,
>
> I try to add an xml:lang attribute to an element in my schema. There is
> some (very short) explanation how this should be done in xml.xsd, but
> that doesn’t work out for me.
>
> I have some elements that extend the ph-element. Can you please explain
> to me how to set the xml:lang attribute so spell check can be done on
> these elements?
>
> Eg. <example xml:lang=”nl”>Dit is een voorbeeld</example>
>
> <word xml:lang=”frisian”>Dit is een woord</word>
>
> Kind regards,
>
> Roderik Dernison
>
>
> ------------------------------------------------------------------------
>
> ----------------------------------------------------------
> Aan dit bericht kunnen geen rechten worden ontleend.
> Het bericht is alleen bestemd voor de geadresseerde.
> Indien het bericht niet voor u is bestemd, verzoeken wij
> u dit aan ons te melden en het bericht te verwijderen.
>
> This message shall not constitute any obligations.
> This message is intended solely for the addressee.
> If you have received this message in error, please
> inform us and delete the message.
> ----------------------------------------------------------
>
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user


More information about the oXygen-user mailing list