Purpose
tld2xsc
is a script that converts a JSP Tag Library Descriptor XML file
into a skeleton XIST namespace module. The tld file is read from stdin and
the namespace module is printed to stdout.
Options
tld2xsc
supports the following options:
-s
,--shareattrs
(none
,dupes
,all
)Should attributes be shared among the elements?
none
means that each element will have its own standaloneAttrs
class directly derived fromll.xist.Elements.Attrs
. Fordupes
each attribute that is used by more than one element will be moved into its ownAttrs
class. Forall
this will be done for all attributes.-m
,--model
(no
,simple
,fullall
,fullonce
)Add model information to the namespace.
no
doesn't add any model information.simple
only addsmodel = False
ormodel = True
(i.e. only the information whether the element must be empty or not).fullall
adds all.xist.sims
model object to each element class.fullonce
adds full model information to, but reuses model objects for elements which have the same model.