XSD Type match for XSLT templates

Help
David Lee
2010-09-27
2012-10-08
  • David Lee

    David Lee - 2010-09-27

    If I were using one of the Schema Aware versions of Saxon, would this enable
    any kind of feature or expression where I could create a template that matched
    by XSD type instead of element name ?

    My goal is I would like to generate a XSLT from an XSD and part of the
    information driving the output may be the type, not the element, so the
    'obvious' way would be to do something like

     
  • Michael Kay

    Michael Kay - 2010-09-27

    Yes, this can be a useful thing to do. The syntax you want is

    match="element(*, mytype)"

    Michael Kay
    Saxonica

     

Log in to post a comment.