x.go 557 B

1234567891011121314151617181920212223242526
  1. package xlink
  2. import (
  3. "github.com/kpmy/odf/model"
  4. "github.com/kpmy/odf/xmlns"
  5. )
  6. const (
  7. Href model.AttrName = "xlink:href"
  8. Type model.AttrName = "xlink:type"
  9. Show model.AttrName = "xlink:show"
  10. Actuate model.AttrName = "xlink:actuate"
  11. )
  12. const Simple = "simple"
  13. const Embed = "embed"
  14. const OnLoad = "onload"
  15. func init() {
  16. xmlns.Typed[Type] = xmlns.ENUM
  17. xmlns.Typed[Show] = xmlns.ENUM
  18. xmlns.Typed[Actuate] = xmlns.ENUM
  19. xmlns.Enums[Type] = []string{Simple}
  20. xmlns.Enums[Show] = []string{Embed}
  21. xmlns.Enums[Actuate] = []string{OnLoad}
  22. }