Skip to content
Snippets Groups Projects
Commit 947fcbf515e2 authored by William M. Brack's avatar William M. Brack
Browse files

added test for namespace problem (Bug 129624)

* tests/docs/Makefile.am tests/docs/bug-138.xml
  tests/general/Makefile.am tests/general/bug-138*: added
  test for namespace problem (Bug 129624)
parent 591c0a666fb0
Branches
No related tags found
No related merge requests found
Sun Dec 21 20:33:27 HKT 2003 William Brack <wbrack@mmm.com.hk>
* tests/docs/Makefile.am tests/docs/bug-138.xml
tests/general/Makefile.am tests/general/bug-138*: added
test for namespace problem (Bug 129624)
Sun Dec 21 13:17:05 CET 2003 Daniel Veillard <daniel@veillard.com>
* xsltproc.c: fixed #129327 make sure parser flags get transmitted to
......
......@@ -137,6 +137,7 @@
bug-135.xml \
bug-136.xml \
bug-137.xml \
bug-138.xml \
character.xml \
array.xml \
items.xml
......
<?xml version="1.0"?>
<report>
<title>My Document</title>
<origin>someone</origin>
<form>
<code>1234</code>
<description note="min qty 5">A widget</description>
<qty>10</qty>
</form>
<form>
<code>99999</code>
<description note="add comment">Miscellaneous</description>
<qty>3</qty>
</form>
</report>
......@@ -143,6 +143,7 @@
bug-135.out bug-135.xsl \
bug-136.out bug-136.xsl \
bug-137.imp bug-137.out bug-137.xsl \
bug-138.out bug-138.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \
......
<?xml version="1.0"?>
<Message xmlns="http://me.envelope">
<Header>
<Title>My Document</Title>
<From>someone</From>
</Header>
<Body xmlns="http://me.content">
<Item>
<Ref>1234</Ref>
<Info desc="A widget">
<Note>min qty 5</Note>
</Info>
<Quantity>10</Quantity>
</Item>
<Item>
<Ref>99999</Ref>
<Info desc="Miscellaneous">
<Note>add comment</Note>
</Info>
<Quantity>3</Quantity>
</Item>
</Body>
</Message>
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://me.envelope"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="report">
<Message>
<Header>
<Title><xsl:value-of select="title"/></Title>
<From><xsl:value-of select="origin"/></From>
</Header>
<Body xmlns="http://me.content">
<xsl:for-each select="form">
<Item>
<Ref><xsl:value-of select="code"/></Ref>
<xsl:element name="Info">
<xsl:attribute name="desc">
<xsl:value-of select="description"/>
</xsl:attribute>
<Note><xsl:value-of select="description/@note"/></Note>
</xsl:element>
<Quantity><xsl:value-of select="qty"/></Quantity>
</Item>
</xsl:for-each>
</Body>
</Message>
</xsl:template>
</xsl:stylesheet>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment