Re: W3C Schema to HTML form.Generic solution available?
amol <[email protected]> Wed, 3 Dec 2003 19:17:47 +0530
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
------=_NextPart_000_00D9_01C3B9D2.22F0E830
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks a lot guys. I am looking into XForms now...Will keep you posted.
yes. the xslt tutorial on w3school is a very good place to start. all =
the tutorials there are pretty informative and concise.
Thanks a lot once again.
----- Original Message -----=20
From: "Kwon J. Ekstrom" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 03, 2003 3:06 AM
Subject: Re: W3C Schema to HTML form.Generic solution available?
> Haven't read that book, but I generally find Wrox books to be
> beginnerish. The w3schools tutorial is IMHO enough to get you =
started,
> and from there a good reference is all you need. I'd highly recommend
> the O'Reilly XSLT books, they've always seemed more practical to me.
>=20
> Either way, it's been a long time since I've had to consult a book to
> write XSLT, considering I've been using it almost since it was a =
draft.
>=20
> Schema's on the list of need to learns, as you say... DTD is going =
away.
> But it's hardly a priority as there are many things higher on my =
list
> to learn.
>=20
> -- Kwon J. Ekstrom
>=20
> Mark Galbreath wrote:
>=20
> > Just grab the latest edition of Michael Kay's book - it's the bible =
of XSLT.
> > I have the 2d edition (Wrox 2001), which is probably the latest.
> >
> > As for learning XML schema, you better - DTDs are history.
> >
> > Mark
> >
> > -----Original Message-----
> > From: XML technologies in the Java Platform
> > [mailto:[email protected]]On Behalf Of Kwon J. Ekstrom
> > Sent: Tuesday, December 02, 2003 3:02 PM
> > To: [email protected]
> > Subject: Re: W3C Schema to HTML form.Generic solution available?
> >
> >
> > IMHO, XSLT is the best tool, I don't personally know XML Schema yet
> > (having not had a driving reason to learn it, although it's on the =
list).
> >
> > First off, since you mention some difficulty understanding how XSLT
> > works. From an OO perspective, think of the XML as a tree based =
data
> > source, and your XSLT as your application.
> >
> > Each template is essentially a function, which can be called by =
applying
> > on a matching node, or by being called directly by name.
> >
> > You can assume that each template is also an object with the =
properties
> > of the element it is being applied to.
> >
> > The xsl:param/with-param elements allow passing variables between
> > functions. Note that these can be viewed as "optional" arguments, =
with
> > a default specified by the child nodes, or the xpath contained in a
> > select attribute.
> >
> > XPath essentially acts as a search algorithm for any matching nodes.
> > It's really where I'd suggest concentrating XSL research. Most of =
the
> > power of XSL comes from XPath.
> >
> > This is a very rough explaination, and not entirely accurate, but =
should
> > serve to help you find some common ground.
> >
> > Since you don't have previous XSLT experience, I suggest you try to
> > write templates based on the direct output.
> >
> > Take a look at the example schema found at:
> > =
http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/xmlsdk=
/htm/
> > xsd_ref_01mb.asp
> >
> > At the end of this email, I've pasted in the xml on that page, along
> > with a template that works with it.
> >
> > However, you can use either a passed in parameter or the document =
xpath
> > function to load your schema as a second document. Assuming you =
wish to
> > try it, you can use a technique that I call cross-templating to =
write a
> > generic schema template.
> >
> > Although I doubt such an effort would be worth the results, as it =
would
> > handle building the forms and validation, but most likely wouldn't =
do so
> > in a user friendly manor (UI is the major concern here).
> >
> > The purpose here I assume is to increase productivity. If you'd =
like
> > more information, I'd be happy to post some examples.
> >
> > -- Kwon J. Ekstrom
> >
> > amol wrote:
> >
> >
> >>Thanks Roy.
> >>I did go through this series of articles but its too specific to the
> >>example xml document in the article.
> >>I guess the solution would be to write a XSL which transform the =
schema
> >>into xhtml form.
> >>But I am sure someone must have already done this since it looks =
like a
> >>common problem.
> >>yups..am basically OO programmer. Just today I went through the
> >>XSL tutorial on w3school (http://www.w3schools.com/xsl/) Pretty
> >>informative and concise.
> >>Still grappling for a solution.....
> >>
> >>
> >> ----- Original Message -----
> >> *From:* Roy Jacob <mailto:[email protected]>
> >> *To:* [email protected] =
<mailto:[email protected]>
> >> *Sent:* Tuesday, December 02, 2003 2:58 PM
> >> *Subject:* Re: W3C Schema to HTML form.Generic solution =
available?
> >>
> >> Hi.
> >> Have a look at this and the following articles.
> >> http://www.xml.com/pub/a/2003/04/30/editing.html
> >>
> >> It's not the answer you are looking for but it may help you =
develop
> >> your own solution. I'm in a similar boat to you and have been =
using
> >> these articles for referance. If your a classical OO programmer =
like
> >> me the XSL learning curve is V steep!
> >>
> >> Roy.
> >
> >
> > <?xml version=3D"1.0" encoding=3D"UTF-8" ?>
> > <xsl:stylesheet version=3D"1.0"
> > xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform">
> > <xsl:template match=3D"purchaseOrder">
> > <table>
> > <tr><td colspan=3D"2">Order Date: <xsl:value-of =
select=3D"@orderDate"
> > /></td></tr>
> > <tr>
> > <td>
> > <xsl:call-template name=3D"USAddress">
> > <xsl:with-param name=3D"addr" select=3D"shipTo" />
> > </xsl:call-template>
> > </td>
> > <td>
> > <xsl:call-template name=3D"USAddress">
> > <xsl:with-param name=3D"addr" select=3D"billTo" />
> > </xsl:call-template>
> > </td>
> > </tr>
> > <tr><td colspan=3D"2"><xsl:value-of select=3D"comment" =
/></td></tr>
> > <tr><td colspan=3D"2">
> > <xsl:apply-templates select=3D"items" />
> > </td></tr>
> > </table>
> > </xsl:template>
> >
> > <xsl:template match=3D"items">
> > <table width=3D"100%" border=3D"1" cellspacing=3D"1">
> > <tr>
> > <th>Part #</th>
> > <th>Product</th>
> > <th>Quantity</th>
> > <th>Price</th>
> > <th>Ship Date</th>
> > <th>Comment</th>
> > </tr>
> > <xsl:apply-templates select=3D"item">
> > <xsl:sort select=3D"USPrice" order=3D"descending" />
> > </xsl:apply-templates>
> > <tr>
> > <td></td>
> > <td></td>
> > <td><xsl:value-of select=3D"sum(item/quantity)" /></td>
> > <td><xsl:value-of
> > select=3D"format-number(sum(item/USPrice),'$#,##0.00')" /></td>
> > <td></td>
> > <td></td>
> > </tr>
> > </table>
> > </xsl:template>
> >
> > <xsl:template match=3D"item">
> > <tr>
> > <td><xsl:value-of select=3D"@partNum" /></td>
> > <td><xsl:value-of select=3D"productName" /></td>
> > <td><xsl:value-of select=3D"quantity" /></td>
> > <td align=3D"right">
> > <xsl:value-of select=3D"format-number(USPrice,'$#,##0.00')" />
> > </td>
> > <td>
> > <xsl:value-of select=3D"shipDate" />
> > <xsl:text disable-output-escaping=3D"yes">&nbsp;</xsl:text>
> > </td>
> > <td>
> > <xsl:value-of select=3D"comment" />
> > <xsl:text disable-output-escaping=3D"yes">&nbsp;</xsl:text>
> > </td>
> > </tr>
> > </xsl:template>
> >
> > <xsl:template name=3D"USAddress">
> > <xsl:param name=3D"addr" />
> > <xsl:value-of select=3D"$addr/name" /><br />
> > <xsl:value-of select=3D"$addr/street" /><br />
> > <xsl:value-of select=3D"$addr/city" />,
> > <xsl:text> </xsl:text><xsl:value-of select=3D"$addr/state" />
> > <xsl:text =
disable-output-escaping=3D"yes">&nbsp;&nbsp;</xsl:text>
> > <xsl:value-of select=3D"$addr/zip" />
> > </xsl:template>
> >
> > </xsl:stylesheet>
> >
> > =
-------------------------------------------------------------------------=
---
> > <?xml version=3D"1.0" encoding=3D"UTF-8" ?>
> > <?xml-stylesheet type=3D"text/xsl" href=3D"test1.xslt" ?>
> >
> > <purchaseOrder orderDate=3D"1999-10-20">
> > <shipTo country=3D"US">
> > <name>Alice Smith</name>
> > <street>123 Maple Street</street>
> > <city>Mill Valley</city>
> > <state>CA</state>
> > <zip>90952</zip>
> > </shipTo>
> > <billTo country=3D"US">
> > <name>Robert Smith</name>
> > <street>8 Oak Avenue</street>
> > <city>Old Town</city>
> > <state>PA</state>
> > <zip>95819</zip>
> > </billTo>
> > <comment>Hurry, my lawn is going wild!</comment>
> > <items>
> > <item partNum=3D"872-AA">
> > <productName>Lawnmower</productName>
> > <quantity>1</quantity>
> > <USPrice>148.95</USPrice>
> > <comment>Confirm this is electric</comment>
> > </item>
> > <item partNum=3D"926-AA">
> > <productName>Baby Monitor</productName>
> > <quantity>1</quantity>
> > <USPrice>39.98</USPrice>
> > <shipDate>1999-05-21</shipDate>
> > </item>
> > </items>
> > </purchaseOrder>
> >
> > -----------------------------------------------------
> > xml-interest: A list for discussing XML technologies in the Java =
Platform.
> > To post, mailto:[email protected]
> > Archives at: http://archives.java.sun.com/xml-interest.html
> > To unsubscribe, mailto:[email protected] the following message;
> > signoff xml-interest.
> >
> > -----------------------------------------------------
> > xml-interest: A list for discussing XML technologies in the Java =
Platform.
> > To post, mailto:[email protected]
> > Archives at: http://archives.java.sun.com/xml-interest.html
> > To unsubscribe, mailto:[email protected] the following message;
> > signoff xml-interest.
> >
>=20
> -----------------------------------------------------
> xml-interest: A list for discussing XML technologies in the Java =
Platform.
> To post, mailto:[email protected]
> Archives at: http://archives.java.sun.com/xml-interest.html
> To unsubscribe, mailto:[email protected] the following message;
> signoff xml-interest.
>=20
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.
------=_NextPart_000_00D9_01C3B9D2.22F0E830
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DVerdana size=3D2>Thanks a lot guys. I am looking into =
XForms=20
now...Will keep you posted.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>yes. the xslt tutorial on w3school is =
a very good=20
place to start. all the tutorials there are pretty informative and=20
concise.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Thanks a lot once again.</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DVerdana size=3D2>From: "Kwon J. Ekstrom" <</FONT><A =
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>[email protected]</FONT></A><FONT face=3DVerdana=20
size=3D2>></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>To: <</FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>[email protected]</FONT></A><FONT face=3DVerdana=20
size=3D2>></FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Sent: Wednesday, December 03, 2003 =
3:06=20
AM</FONT></DIV>
<DIV><FONT face=3DVerdana size=3D2>Subject: Re: W3C Schema to HTML =
form.Generic=20
solution available?</FONT></DIV></DIV>
<DIV><FONT face=3DVerdana><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DVerdana=20
size=3D2>> Haven't read that book, but I generally find Wrox books to =
be<BR>> beginnerish. The w3schools tutorial is IMHO enough to =
get you=20
started,<BR>> and from there a good reference is all you need. =
I'd=20
highly recommend<BR>> the O'Reilly XSLT books, they've always seemed =
more=20
practical to me.<BR>> <BR>> Either way, it's been a long time =
since I've=20
had to consult a book to<BR>> write XSLT, considering I've been using =
it=20
almost since it was a draft.<BR>> <BR>> Schema's on the list of =
need to=20
learns, as you say... DTD is going away.<BR>> But it's hardly =
a=20
priority as there are many things higher on my list<BR>> to =
learn.<BR>>=20
<BR>> -- Kwon J. Ekstrom<BR>> <BR>> Mark Galbreath =
wrote:<BR>>=20
<BR>> > Just grab the latest edition of Michael Kay's book - it's =
the=20
bible of XSLT.<BR>> > I have the 2d edition (Wrox 2001), which is =
probably=20
the latest.<BR>> ><BR>> > As for learning XML schema, you =
better -=20
DTDs are history.<BR>> ><BR>> > Mark<BR>> ><BR>> =
>=20
-----Original Message-----<BR>> > From: XML technologies in the =
Java=20
Platform<BR>> > [mailto:[email protected]]On Behalf Of =
Kwon J.=20
Ekstrom<BR>> > Sent: Tuesday, December 02, 2003 3:02 PM<BR>> =
> To:=20
</FONT><A href=3D"mailto:[email protected]"><FONT face=3DVerdana =
size=3D2>[email protected]</FONT></A><BR><FONT face=3DVerdana =
size=3D2>>=20
> Subject: Re: W3C Schema to HTML form.Generic solution =
available?<BR>>=20
><BR>> ><BR>> > IMHO, XSLT is the best tool, I don't =
personally=20
know XML Schema yet<BR>> > (having not had a driving reason to =
learn it,=20
although it's on the list).<BR>> ><BR>> > First off, since =
you=20
mention some difficulty understanding how XSLT<BR>> > works. =
From an=20
OO perspective, think of the XML as a tree based data<BR>> > =
source, and=20
your XSLT as your application.<BR>> ><BR>> > Each template =
is=20
essentially a function, which can be called by applying<BR>> > on =
a=20
matching node, or by being called directly by name.<BR>> ><BR>> =
>=20
You can assume that each template is also an object with the =
properties<BR>>=20
> of the element it is being applied to.<BR>> ><BR>> > =
The=20
xsl:param/with-param elements allow passing variables between<BR>> =
>=20
functions. Note that these can be viewed as "optional" arguments,=20
with<BR>> > a default specified by the child nodes, or the xpath =
contained=20
in a<BR>> > select attribute.<BR>> ><BR>> > XPath =
essentially=20
acts as a search algorithm for any matching nodes.<BR>> > It's =
really=20
where I'd suggest concentrating XSL research. Most of the<BR>> =
>=20
power of XSL comes from XPath.<BR>> ><BR>> > This is a very =
rough=20
explaination, and not entirely accurate, but should<BR>> > serve =
to help=20
you find some common ground.<BR>> ><BR>> > Since you don't =
have=20
previous XSLT experience, I suggest you try to<BR>> > write =
templates=20
based on the direct output.<BR>> ><BR>> > Take a look at the =
example=20
schema found at:<BR>> > </FONT><A=20
href=3D"http://msdn.microsoft.com/library/default.asp?url=3D/library/en-u=
s/xmlsdk/htm/"><FONT=20
face=3DVerdana=20
size=3D2>http://msdn.microsoft.com/library/default.asp?url=3D/library/en-=
us/xmlsdk/htm/</FONT></A><BR><FONT=20
face=3DVerdana size=3D2>> > xsd_ref_01mb.asp<BR>> ><BR>> =
> At the=20
end of this email, I've pasted in the xml on that page, along<BR>> =
> with=20
a template that works with it.<BR>> ><BR>> > However, you =
can use=20
either a passed in parameter or the document xpath<BR>> > function =
to load=20
your schema as a second document. Assuming you wish to<BR>> =
> try=20
it, you can use a technique that I call cross-templating to write =
a<BR>> >=20
generic schema template.<BR>> ><BR>> > Although I doubt such =
an=20
effort would be worth the results, as it would<BR>> > handle =
building the=20
forms and validation, but most likely wouldn't do so<BR>> > in a =
user=20
friendly manor (UI is the major concern here).<BR>> ><BR>> > =
The=20
purpose here I assume is to increase productivity. If you'd =
like<BR>>=20
> more information, I'd be happy to post some examples.<BR>> =
><BR>>=20
> -- Kwon J. Ekstrom<BR>> ><BR>> > amol wrote:<BR>>=20
><BR>> ><BR>> >>Thanks Roy.<BR>> >>I did go =
through=20
this series of articles but its too specific to the<BR>> =
>>example xml=20
document in the article.<BR>> >>I guess the solution would be =
to write=20
a XSL which transform the schema<BR>> >>into xhtml =
form.<BR>>=20
>>But I am sure someone must have already done this since it looks =
like=20
a<BR>> >>common problem.<BR>> >>yups..am basically OO=20
programmer. Just today I went through the<BR>> >>XSL tutorial =
on=20
w3school (</FONT><A href=3D"http://www.w3schools.com/xsl/"><FONT =
face=3DVerdana=20
size=3D2>http://www.w3schools.com/xsl/</FONT></A><FONT face=3DVerdana =
size=3D2>)=20
Pretty<BR>> >>informative and concise.<BR>> >>Still =
grappling=20
for a solution.....<BR>> >><BR>> >><BR>>=20
>> ----- Original Message -----<BR>>=20
>> *From:* Roy Jacob <</FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2>><BR>>=20
>> *To:* </FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2>=20
<</FONT><A href=3D"mailto:[email protected]"><FONT =
face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2>><BR>> >> *Sent:* Tuesday, =
December 02,=20
2003 2:58 PM<BR>> >> *Subject:* Re: W3C =
Schema to=20
HTML form.Generic solution available?<BR>> >><BR>>=20
>> Hi.<BR>> >> Have a =
look at=20
this and the following articles.<BR>> >> =
</FONT><A=20
href=3D"http://www.xml.com/pub/a/2003/04/30/editing.html"><FONT =
face=3DVerdana=20
size=3D2>http://www.xml.com/pub/a/2003/04/30/editing.html</FONT></A><BR><=
FONT=20
face=3DVerdana size=3D2>> >><BR>> >> =
It's not=20
the answer you are looking for but it may help you develop<BR>>=20
>> your own solution. I'm in a similar boat to =
you and=20
have been using<BR>> >> these articles for =
referance.=20
If your a classical OO programmer like<BR>> =
>> me the=20
XSL learning curve is V steep!<BR>> >><BR>>=20
>> Roy.<BR>> ><BR>> ><BR>> > =
<?xml=20
version=3D"1.0" encoding=3D"UTF-8" ?><BR>> > <xsl:stylesheet =
version=3D"1.0"<BR>> > xmlns:xsl=3D"</FONT><A=20
href=3D"http://www.w3.org/1999/XSL/Transform"><FONT face=3DVerdana=20
size=3D2>http://www.w3.org/1999/XSL/Transform</FONT></A><FONT =
face=3DVerdana=20
size=3D2>"><BR>> > <xsl:template =
match=3D"purchaseOrder"><BR>>=20
> <table><BR>> > <tr><td =
colspan=3D"2">Order Date: <xsl:value-of =
select=3D"@orderDate"<BR>> >=20
/></td></tr><BR>> > <tr><BR>>=20
> <td><BR>> > =20
<xsl:call-template name=3D"USAddress"><BR>>=20
> <xsl:with-param name=3D"addr"=20
select=3D"shipTo" /><BR>> > =20
</xsl:call-template><BR>> > =
</td><BR>>=20
> <td><BR>> > =20
<xsl:call-template name=3D"USAddress"><BR>>=20
> <xsl:with-param name=3D"addr"=20
select=3D"billTo" /><BR>> > =20
</xsl:call-template><BR>> > =
</td><BR>>=20
> </tr><BR>> > <tr><td=20
colspan=3D"2"><xsl:value-of select=3D"comment"=20
/></td></tr><BR>> > <tr><td=20
colspan=3D"2"><BR>> > <xsl:apply-templates =
select=3D"items"=20
/><BR>> > </td></tr><BR>> =
> =20
</table><BR>> > </xsl:template><BR>> ><BR>> =
>=20
<xsl:template match=3D"items"><BR>> > <table=20
width=3D"100%" border=3D"1" cellspacing=3D"1"><BR>> =
> =20
<tr><BR>> > <th>Part =
#</th><BR>>=20
> <th>Product</th><BR>>=20
> <th>Quantity</th><BR>>=20
> <th>Price</th><BR>> =
> =20
<th>Ship Date</th><BR>> > =20
<th>Comment</th><BR>> > =
</tr><BR>>=20
> <xsl:apply-templates select=3D"item"><BR>>=20
> <xsl:sort select=3D"USPrice" =
order=3D"descending"=20
/><BR>> > </xsl:apply-templates><BR>>=20
> <tr><BR>> > =20
<td></td><BR>> > =20
<td></td><BR>> > =
<td><xsl:value-of=20
select=3D"sum(item/quantity)" /></td><BR>> =
> =20
<td><xsl:value-of<BR>> >=20
select=3D"format-number(sum(item/USPrice),'$#,##0.00')" =
/></td><BR>>=20
> <td></td><BR>> =
> =20
<td></td><BR>> > </tr><BR>>=20
> </table><BR>> > =
</xsl:template><BR>>=20
><BR>> > <xsl:template match=3D"item"><BR>> =
> =20
<tr><BR>> > <td><xsl:value-of=20
select=3D"@partNum" /></td><BR>> > =20
<td><xsl:value-of select=3D"productName" =
/></td><BR>>=20
> <td><xsl:value-of select=3D"quantity"=20
/></td><BR>> > <td =
align=3D"right"><BR>>=20
> <xsl:value-of=20
select=3D"format-number(USPrice,'$#,##0.00')" /><BR>> =
> =20
</td><BR>> > <td><BR>>=20
> <xsl:value-of select=3D"shipDate" =
/><BR>>=20
> <xsl:text=20
disable-output-escaping=3D"yes">&amp;nbsp;</xsl:text><BR>>=
;=20
> </td><BR>> > =20
<td><BR>> > <xsl:value-of=20
select=3D"comment" /><BR>> > =
<xsl:text=20
disable-output-escaping=3D"yes">&amp;nbsp;</xsl:text><BR>>=
;=20
> </td><BR>> > =
</tr><BR>>=20
> </xsl:template><BR>> ><BR>> > <xsl:template=20
name=3D"USAddress"><BR>> > <xsl:param =
name=3D"addr"=20
/><BR>> > <xsl:value-of select=3D"$addr/name" =
/><br=20
/><BR>> > <xsl:value-of select=3D"$addr/street"=20
/><br /><BR>> > <xsl:value-of =
select=3D"$addr/city"=20
/>,<BR>> > <xsl:text>=20
</xsl:text><xsl:value-of select=3D"$addr/state" /><BR>>=20
> <xsl:text=20
disable-output-escaping=3D"yes">&amp;nbsp;&amp;nbsp;</xsl:t=
ext><BR>>=20
> <xsl:value-of select=3D"$addr/zip" /><BR>> =
>=20
</xsl:template><BR>> ><BR>> > =
</xsl:stylesheet><BR>>=20
><BR>> >=20
-------------------------------------------------------------------------=
---<BR>>=20
> <?xml version=3D"1.0" encoding=3D"UTF-8" ?><BR>> >=20
<?xml-stylesheet type=3D"text/xsl" href=3D"test1.xslt" ?><BR>> =
><BR>>=20
> <purchaseOrder orderDate=3D"1999-10-20"><BR>>=20
> <shipTo country=3D"US"><BR>> =
> =
<name>Alice=20
Smith</name><BR>>=20
> =
<street>123=20
Maple Street</street><BR>>=20
> =
<city>Mill=20
Valley</city><BR>>=20
> =20
<state>CA</state><BR>>=20
> =20
<zip>90952</zip><BR>> > =20
</shipTo><BR>> > <billTo=20
country=3D"US"><BR>>=20
> =
<name>Robert=20
Smith</name><BR>>=20
> =
<street>8 Oak=20
Avenue</street><BR>>=20
> =
<city>Old=20
Town</city><BR>>=20
> =20
<state>PA</state><BR>>=20
> =20
<zip>95819</zip><BR>> > =20
</billTo><BR>> > =
<comment>Hurry,=20
my lawn is going wild!</comment><BR>>=20
> <items><BR>>=20
> <item=20
partNum=3D"872-AA"><BR>>=20
> &nb=
sp; =20
<productName>Lawnmower</productName><BR>>=20
> &nb=
sp; =20
<quantity>1</quantity><BR>>=20
> &nb=
sp; =20
<USPrice>148.95</USPrice><BR>>=20
> &nb=
sp; =20
<comment>Confirm this is electric</comment><BR>>=20
> =
</item><BR>>=20
> <item=20
partNum=3D"926-AA"><BR>>=20
> &nb=
sp; =20
<productName>Baby Monitor</productName><BR>>=20
> &nb=
sp; =20
<quantity>1</quantity><BR>>=20
> &nb=
sp; =20
<USPrice>39.98</USPrice><BR>>=20
> &nb=
sp; =20
<shipDate>1999-05-21</shipDate><BR>>=20
> =
</item><BR>>=20
> </items><BR>> >=20
</purchaseOrder><BR>> ><BR>> >=20
-----------------------------------------------------<BR>> > =
xml-interest:=20
A list for discussing XML technologies in the Java Platform.<BR>> =
> To=20
post, </FONT><A href=3D"mailto:[email protected]"><FONT =
face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><BR><FONT =
face=3DVerdana=20
size=3D2>> > Archives at: </FONT><A=20
href=3D"http://archives.java.sun.com/xml-interest.html"><FONT =
face=3DVerdana=20
size=3D2>http://archives.java.sun.com/xml-interest.html</FONT></A><BR><FO=
NT=20
face=3DVerdana size=3D2>> > To unsubscribe, </FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2> the=20
following message;<BR>> > signoff xml-interest.<BR>> =
><BR>> >=20
-----------------------------------------------------<BR>> > =
xml-interest:=20
A list for discussing XML technologies in the Java Platform.<BR>> =
> To=20
post, </FONT><A href=3D"mailto:[email protected]"><FONT =
face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><BR><FONT =
face=3DVerdana=20
size=3D2>> > Archives at: </FONT><A=20
href=3D"http://archives.java.sun.com/xml-interest.html"><FONT =
face=3DVerdana=20
size=3D2>http://archives.java.sun.com/xml-interest.html</FONT></A><BR><FO=
NT=20
face=3DVerdana size=3D2>> > To unsubscribe, </FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2> the=20
following message;<BR>> > signoff xml-interest.<BR>> =
><BR>>=20
<BR>> -----------------------------------------------------<BR>>=20
xml-interest: A list for discussing XML technologies in the Java=20
Platform.<BR>> To post, </FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><BR><FONT =
face=3DVerdana=20
size=3D2>> Archives at: </FONT><A=20
href=3D"http://archives.java.sun.com/xml-interest.html"><FONT =
face=3DVerdana=20
size=3D2>http://archives.java.sun.com/xml-interest.html</FONT></A><BR><FO=
NT=20
face=3DVerdana size=3D2>> To unsubscribe, </FONT><A=20
href=3D"mailto:[email protected]"><FONT face=3DVerdana=20
size=3D2>mailto:[email protected]</FONT></A><FONT face=3DVerdana =
size=3D2> the=20
following message;<BR>> signoff xml-interest.<BR>> =
</FONT></BODY></HTML>
-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.
------=_NextPart_000_00D9_01C3B9D2.22F0E830--