0
저는 Xalan과 Java를 사용하여 스타일 시트를 확장하고 있습니다. XSLT/Xalan : Java 확장 내에서 apply-templates 호출
(비슷한 예 내가 거기 뭐하는 거지에 : Dictionary example)내 태그는 <xsl:apply-templates/>
을 할 수 있도록 투쟁.
<xsl:template match="sometag">
<my-java:tag>
<xsl:apply-tempates/>
</my-java:tag>
</xsl:template>
방법 tag(XSLProcessorContext context, ElemExtensionCall elem)
를 포함하는 내 자바 클래스는 다음과 같이 문맥에 공급하는 요소 myElem
빌드 : :이 얻고 자하는
context.outputToResultTree(context.getStylesheet(), myElem);
을하지만 난에 스타일 시트에 정의 된 템플릿을 적용 할 하위 요소는 myElem
입니다.
내 Java 클래스에서 <xsl:apply-templates/>
을 어떻게 내야합니까? 가능한가? Xalan에에서 I는
TransformerImpl transf = context.getTransformer();
for (int i = fromValue; i <= toValue; i++) {
setInt(variable, i);
transf.executeChildTemplates(elem, true);
}
아이디어는 그 X 시간 안에 반복 코드 (및 끝 값) 루프 실행하는하고있어
마침내 텀블 위드! – glmxndr