Jump to content

sauronlord

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sauronlord

  • Rank
    Newbie
  1. I'm sorry for being vague.What I mean is that I have a schema that defines default values for certain attributes or elements, but the XML document that I provide omits these attributes/elements --> and I want to be able to grab the default values as if they were actually present in the XML document.For example:Say I have defined the element:<xs:element name="shipto"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="address" type="xs:string"/> <xs:element name="city" type="xs:string"/> <xs:element name
  2. Hi,I'm new to XML, XSD and XSLT.I was wondering if there is a way to "fill out" an XML document with its default values, as if "expanded" so that my XSLT processor could use these defaults in generating the output.I think if I had a schema-aware XSLT processor (SAXON-SA), then I could get this done easily as the transformation would be done against an XML document validated against an XSD.That is not an option for my company for various reasons.Is there a 2-stage process I can execute (in Java SAX/DOM?) that will "fill out" the required default values for elements or attributes?I see there are
  3. Hi,I'm new to XML, XSD and XSLT.I was wondering if there is a way to "fill out" an XML document with its default values, as if "expanded" so that my XSLT processor could use these defaults in generating the output.I think if I had a schema-aware XSLT processor (SAXON-SA), then I could get this done easily as the transformation would be done against an XML document validated against an XSD.That is not an option for my company for various reasons.Is there a 2-stage process I can execute (in Java SAX/DOM?) that will "fill out" the required default values for elements or attributes?I see there are
×
×
  • Create New...