Guoliang,

XSLTC assumes that the SAX 2 parser it gets from JAXP is namespace
aware by default, but unfortunately not all SAX parsers are. This
output is caused by XSLTC failing to enable namespace awareness.
This only happens with some parsers (it should not really happen
with any parser, as they are supposed to be namespace aware by
default), so it will help you to change to a different parser.

Morten


Guoliang Cao wrote:
> 
> Hi,
> 
> I'm following the instruction on Xalan-xsltc page to compile xsl files
> and do transformations. Although the compilation and execution don't
> throw any error, the result is far from correct. This is what I got by
> using todo.xsl to transform todo.xml. Does this reflecting the status
> of XSLTC? If I'm doing something wrong, please point it out. Thanks in
> advance.
> 
> Guoliang
> 
> ---------- todo-xalan.html ---------------
> 
> <?xml version="1.0" encoding="utf-8" ?>
> < xmlns="http://www.w3.org/1999/XSL/Transform"; version="1.0"><
> name="title" select="concat(todo/@project, ' ',
> todo/@major-version)"/>< match="/"><><><>< select="$title"/></>
> </>
> <><>< select="concat($title, ': ', todo/@title)"/></>
> <>< size="-1">See a
>          < name="a">< name="href">#developer-list</>
> <>list of developers/initials.</>
> </>
> </>
> </>
> < size="-1"><>Planned releases:
>            </>< select="todo/actions/target-release-description"><
> name="a">< name="href">#release-date-< select="date"/></>
> < select="date"/></>
> </></></>
> < name="a">< name="href">#release-date-completed</>
> <>Completed</>
> </>
> </>
> </>
> < select="todo">< select="actions"><
> select="target-release-description"><></></>
> </>
> < select="action">< test="normalize-space(.)"><></>) </><
> test="@*"></></>
> < select="@*"/></>
> </>
> </>
> </></>
> < select="completed">< name="a"><
> name="name">release-date-completed</>
> <>Completed: </>
> </>
> < select="action">< test="normalize-space(.)"><></>) </><
> test="@*"></></>
> < select="@*"/></>
> </>
> </>
> </></>
> < name="developer-list"/></>
> </>
> </>
> </>
> < match="action/@*"><>< select="name(.)"/>:</>
> </><>< test="name(.)='who'">< name="a">< name="href">#personref-<
> select="."/></>
> < select="."/></>
> </>
> <>< select="."/></>
> </>
> < test="not (position()=last())"><>, </>
> </>
> </>
> < match="target-release-description/date">< name="a"><
> name="name">release-date-< select="."/></>
> <><>For release: </>
> < select="."/></>
> </>
> </>
> < match="issue"></><>Issue </>
> <>[</>
> < select="@id"/><>]: </>
> </></>
> < match="target-release-description/level"><>, </>
> </></>
> < match="target-release-description/goal"></><>Goal </>
> <>[</>
> < select="@type"/><>]: </>
> </></>
> < name="developer-list"><>< name="a">< name="name">developer-list</>
> <>Developers:</>
> </>
> </>
> <>A list of some of people currently working on working on <
> select="/todo/@project"/>:</>
> <>< select="devs/person"><>< href="mailto:";>< select="@name"/></>
> < name="a">< name="name"><>personref-</>
> < select="@id"/></>
> <> (</>
> < select="@id"/><>)</>
> </>
> </>< select="."/></>
> </>
> </>
> </>
> </>

Reply via email to