MichielCM / xsd2html2xml

Generates plain HTML5 forms from XML schemas (XSDs). Transforms filled-in forms into XML.
MIT License
95 stars 42 forks source link

Add data-xsd2html2xml-depth #29

Open robert-abram opened 4 years ago

robert-abram commented 4 years ago

Helo, How to add extra attribute with information about depth.

I tried to add to complex-elements.xsl this, but it will not work:


<!-- wrap complex elements in section elements -->
<xsl:element name="section">
<xsl:attribute name="data-xsd2html2xml-depth"><xsl:value-of select="count(ancestor::*)"/></xsl:attribute>