Which is the valid attribute declaration when attribute values can contain "external entity reference" reference?
1)< !attlist myelement myattribute="myentity">
2)< !attlist myelement myattribute="&myentity;">
I think 1.
When is a multistep XSL transformation step preferable?
1)When processing logic is highly modular
2)When processing logic is highly interrelated
3)When XML documents are extremely large
4)When XML documents are extremely small 5)None of the above
I think 3.
Consider an application that transforms XML data into various target XML vocabularies. In this application there is a need to regularly update the transformations due to frequent changes in the target XML vocabularies. In this case, which of the following approaches is BEST suited for re-purposing the XML data?
a) Program the transformations via the DOM.
b) Employ highly parameterized XSL style sheets.
c) Use an HTML/CSS syntax that is common to all browsers.
d) Use an XML DTD to model the transformation.
I think answer should be a.
To which of the following formats can XML Signature be applied?
a) Binary encoded data (e.g., GIFs, JPEGs)
b) XSLT transform nodes
c) GetDocumentFragment() nodes
d) Character encoded data (HTML)
Answer is a and d.
what is true about xsl:variable and xsl param
1)The xsl:variable is limited to a single style sheet.
2)The scope of the xsl:variable has no defined limit.
3)The scope of the xsl:variable is limited to the entire style sheet.
4)None of the above
First, the ATTLIST's syntax is wrong in the two options.
The specification says -
Well-formedness constraint: No External Entity References
Attribute values cannot contain direct or indirect entity references to external entities.
Well-formedness constraint: Parsed Entity
An entity reference must not contain the name of an unparsed entity. Unparsed entities may be referred to only in attribute values declared to be of type ENTITY or ENTITIES.
I think the fist constraint refers to external parsed entities when speaking about external entities.
Unparsed entity, in the second constraint, must mean 'external unparsed entity'.
So, an attribute can refer to an external unparsed entity in the following way -
The DTD will have -
<!ATTLIST myelement myattribute ENTITY #IMPLIED>
<!ENTITY e SYSTEM "...e.gif" NOTATION ..>
In the XML instance -
I hope it helps,
[ October 12, 2002: Message edited by: Dan Drillich ]